Claude Code /code-review Reads the Real Pull Request and Reviews the Whole Branch
Claude Code 2.1.329 makes /code-review <pr number> read the pull request with gh pr diff instead of sometimes reviewing the checked-out branch. With no target it reviews the whole branch against the default branch on most models, and it no longer stops for a permission prompt over a missing ~/.claude/CLAUDE.md. (Separate from the existing prod entry on bugs-only severity labels.)
Key Takeaways
- PR reviews use
gh pr diff, not the local branch. - Failures are explicit: it stops and says so.
- No-target reviews cover the full branch against the default branch.
- Multi-commit branches keep their diff.
- No phantom prompt for a missing
~/.claude/CLAUDE.md. - Effort labels on the findings card are correct.
Reviewing the Right Code
/code-review <pr number> could review the checked-out branch instead of the named pull request without saying so. It now reads the pull request with gh pr diff and says when it cannot. /code-review <pr number> --fix and /code-review with a pull request URL stop without reviewing when gh pr diff is refused or fails.
Whole-Branch Default
With no target, /code-review on most models now reviews the whole branch against the default branch, and no longer loses the diff on multi-commit branches.
Fewer Interruptions and Better Labels
/code-review stopped at a permission prompt on most models to look for a ~/.claude/CLAUDE.md that did not exist; that is fixed. The findings card also often showed "high" for a review that ran at medium; it now shows the right level.