# Diff and Code Review

> The commands that check work before it ships. Read changes with /diff, look for bugs with /code-review, and watch the app run with /verify.

**Course:** [Claude Code Commands](https://learn.benibix.com/learn/ai-claude-code-commands)  
**Time:** 12 min

**After this lesson you can:**

- Pick the review command that fits the question
- Set how wide /code-review looks
- Hand a very large change to /batch

## How to check a change before it ships

Claude Code has five commands that check work before it ships. /diff shows each change in your files, Claude's and yours, line by line. /code-review looks for bugs. /simplify tidies. /security-review looks for ways in. /autofix-pr watches a pull request and pushes fixes. In the fullscreen view, /diff opens beside the chat.

/code-review looks for bugs. With no target, it reviews your branch's new commits and anything not yet committed. Name a pull request number, a branch or a path to review that instead. /review is another name for it. It reports what it found, and it changes nothing unless you ask.

A level from low to max sets how wide it looks. The low level reports fewer findings it is sure of. The max level reports more, and a few of them may be wrong. --fix applies the findings, and --comment posts them on the pull request. ultra sends a deep review to the cloud, with 3 free runs on a personal Claude plan.

/simplify asks a different question: could this be cleaner? Four review helpers work at once, on reuse, simpler code, speed, and whether the change sits at the right level. Then it makes the fixes, and it does not look for bugs. /security-review asks a third: can someone break in? It reads only your branch's changes against origin's default branch.

/autofix-pr keeps watch after you open a pull request. It starts a cloud session for the branch you have checked out. When a CI check fails or a reviewer comments, it pushes a fix. Pass a prompt to narrow it, such as only fix lint errors. It needs the gh tool.

/run and /verify check by using the app, not by reading code. /run builds your project's app, opens it and drives it the way a person would. /verify does the same to judge one change, and reports what it saw. /run-skill-generator writes the project skill both of them use to learn how your app starts.

/batch is for one change too big for one chat, such as moving src from JavaScript to TypeScript. It reads the code and splits the work into 5 to 30 parts. Each part can be done alone. Once you say yes to the plan, each part gets its own helper and worktree. The helper runs the tests and opens a pull request.

## The review commands side by side

| Command | The question it asks | Does it change code? |
| --- | --- | --- |
| /code-review | Is it broken? | Only with --fix |
| /simplify | Could it be cleaner? | Yes |
| /security-review | Can someone break in? | No |
| /verify | Does it work when used? | No |

![Three boxes. /code-review asks is it broken? and gives bugs, then a report. /simplify asks could it be cleaner? and gives cleanups, then the fixes. /security-review asks can someone break in? and gives the security risks in the diff. A note says none of them changes how the others work, so run the one that asks your question.](https://learn.benibix.com/diagrams/cmd-review-commands.svg)

### Example: Emma reviews before she opens a pull request

Emma's branch touches 14 files. She runs /code-review high and gets 3 findings, one of them a missed check for an empty value.

She runs /code-review high --fix, then /security-review, which finds nothing. /diff now shows 2 more changed lines than before: the fix she asked for.

**Words in this lesson:** [/diff Command](https://learn.benibix.com/term/ai/diff-command), [/code-review Command](https://learn.benibix.com/term/ai/code-review-command), [/simplify Command](https://learn.benibix.com/term/ai/simplify-command), [/security-review Command](https://learn.benibix.com/term/ai/security-review-command), [/autofix-pr Command](https://learn.benibix.com/term/ai/autofix-pr-command), [/run Command](https://learn.benibix.com/term/ai/run-command), [/verify Command](https://learn.benibix.com/term/ai/verify-command), [/batch Command](https://learn.benibix.com/term/ai/batch-command)

> **Pick by the question.** /code-review hunts bugs and changes nothing unless told to. /simplify tidies and changes code. /security-review hunts for ways in. Run the one whose question you are asking.

**Question:** Which command looks for bugs, not for cleanups?

**Answer:** /code-review. /code-review looks for bugs. /simplify looks for cleanups and makes them, and it does not look for bugs at all.

---

Source: https://learn.benibix.com/learn/ai-claude-code-commands/diff-and-code-review
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
