How to make Claude Code's local /code-review follow your REVIEW.md rules
From Claude Code 2.1.333 (November 30), the /code-review command you run on your own machine follows REVIEW.md too. It reads the root REVIEW.md on your repository's default branch. Until now only the Code Review service, which reviews GitHub pull requests, read this file; the local command read only CLAUDE.md.
-
Update to 2.1.333 or later with
claude update. -
Create REVIEW.md at the repository root and write in Markdown what to flag and what to skip.
# Review instructions
## Do not report
- Anything CI already enforces: lint, formatting, type errors
- Generated files under `src/gen/`
## Always check
- New API routes have an integration test
-
Merge it into the default branch. Local reviews read REVIEW.md from the default branch, so editing the rules only on a working branch has no effect.
-
Run it as usual.
/code-review
Local /code-review works on any plan. If you also use the pull request review service, one file now sets the bar for both. The local review docs still say it doesn't read REVIEW.md (the 2.1.333 changelog changed that). The changelog doesn't say whether local reviews also follow subdirectory REVIEW.md files or @ include lines.
Sources
Get notified when a new tip lands
Tip alerts only go out in the app. Install it and turn notifications on.