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.
/diffIf 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.
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-reviewThe 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.
For the signup-form change, the review came back with four findings:
Decide what to do with each finding
Not every finding needs a fix, so sort each one into one of three piles:
- Fix now. The problem is real and it matters.
- Ask why. You can't confirm the finding, or it seems off. A reviewer reading the change cold can miss things too.
- 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:
To ask why, quote the finding back and have Claude check again:
When you ask for a fix, ask for evidence with it:
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
/diffbefore 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.