Loading

Claude's summary of a task can be true and still leave out changes you'd want to know about. The session that wrote the code isn't the best judge of it either. So check a change twice before you keep it. Read the diff yourself, then have Claude review it from a clean context, without this session's history.

Read the diff

Start with the diff, which shows the lines removed and added, file by file. Run /diff to see your uncommitted changes. It can also show what each of Claude's turns changed.

/diff

If it opens above the prompt, use the up and down arrows to move between files and Enter to open one. If it opens as a panel beside the conversation, click a file to jump to it. The panel hides test files and generated files until you click their count line.

A new file that isn't added to git yet shows as untracked, without its lines. To read it, open it in your editor.

As you read, look for three things every time:

  • Changes you didn't ask for, such as an edited config value or a rewritten helper.
  • Tests that got weaker because they were skipped, deleted, or loosened until they passed.
  • New packages and hard-coded values, such as a dependency added for one function or a key written into the code.

Try it on a small signup-form task, where three of the eight files deserve a second look. You don't need to follow every line. Start with the file names, then compare the removed and added lines.

Loading

Undo a wrong change

If the whole change is wrong, run /rewind. You can also press Esc twice on an empty prompt. Pick the prompt that produced the change, then choose "Restore code and conversation."

Rewind rolls back the files Claude edited with its file editing tools in your conversation. It also undoes changes that shell commands made to those files afterward. It doesn't roll back files changed only by shell commands, such as a package install.

Ask for a second opinion

Your own read is the first check. The second is the reviewer that the Explore → Plan → Code → Commit lesson asked for. A long session carries everything it has read and decided, which is history you don't want in a reviewer. /code-review starts from a clean context, with none of that history. It reports what it finds and edits nothing unless you ask.

/code-review

The review runs in the background for seconds to a few minutes, then its findings arrive in your conversation. It counts against your usage like any other task, so save it for changes that deserve it.

You can also ask in plain words. If Claude answers inline and doesn't start a review, run the command yourself.

Review the changes you just made. Report problems; don't fix anything yet.

For the signup-form change, the review came back with four findings:

Loading

Decide what to do with each finding

Not every finding needs a fix, so sort each one into one of three piles:

  1. Fix now. The problem is real and it matters.
  2. Ask why. You can't confirm the finding, or it seems off. A reviewer reading the change cold can miss things too.
  3. Leave it. The problem is real but small, so batch it with others for a later session.

Try sorting the four findings from the signup-form review:

Loading

To ask why, quote the finding back and have Claude check again:

You reported that isValidEmail doesn't trim spaces, but line 4 calls trim(). Check again and tell me whether the finding stands.

When you ask for a fix, ask for evidence with it:

Fix the first finding: don't skip the empty-email test and restore the original assertion. Then run the tests and show me the output.

If a fix grows into a large change of its own, run the review again.

When to do both checks

A one-line change often needs only a glance at the diff. Do both checks when a change is big, risky, or about to be shared:

  • It's too big to hold in your head.
  • It touches something sensitive or does something destructive.
  • You're about to hand the work to a teammate.

Recap

  • Read the diff with /diff before you trust the summary.
  • Get a second opinion from a clean context with /code-review.
  • Fix, ask why, or leave each finding, and ask for evidence with every fix.

If the reviewer keeps flagging the same issue, write a rule for Claude to read at the start of every session. That rule goes in CLAUDE.md, which is next.