Claude Code v2.1.333 (November 30, 2026) taught /code-review to read a REVIEW.md file from your repository. It is one file where you list the house rules you want a review to enforce.
I tried it on the repository that holds this blog's drafts. I opened a test pull request with problems planted on purpose and reviewed it once without REVIEW.md and once with it. With the file in place, the review caught a code box missing its google-anno-skip wrapper, which it had missed before, plus it printed Followed REVIEW.md at the top. If you have style rules that only matter at review time, REVIEW.md is the place for them. One catch: a cap like at most 3 Nits also trims findings about your own rules.

What /code-review is
/code-review is a command you type inside Claude Code. Claude reviews the changes on your current branch, mostly looking for bugs that would bite when the code runs, and reports what it found in the conversation. /review runs the same thing. In an interactive session the review runs as a background subagent, and when it finishes the main session turns its findings into a list.
A few tools have similar names, so here is how they differ.
| Name | Where it runs | What it does |
|---|---|---|
/code-review |
Claude Code on your machine | Reports the bugs it finds in your changes. It can also apply the fixes itself or post them as PR comments |
/simplify |
Claude Code on your machine | Skips bug hunting. It only cleans up the code and applies the cleanups |
/security-review |
Claude Code on your machine | Looks for security problems only |
| Code Review (GitHub) | Anthropic's servers | Once an organization turns it on, it reviews every GitHub PR automatically. For Team and Enterprise plans, billed by usage |
REVIEW.md started out as the config file for the managed Code Review on GitHub. Since v2.1.333 the local /code-review reads it too, and v2.1.334 a day later added per-folder REVIEW.md files. That means individual Pro and Max users can use the same file in their local reviews.
REVIEW.md vs CLAUDE.md
CLAUDE.md is the instruction file Claude Code reads for every task, and /code-review reads it too. REVIEW.md is read only during reviews. It says what you want flagged, how serious each kind of problem is, plus what the review can skip. The official docs draw the same line: general project context goes in CLAUDE.md, instructions that change review behavior go in REVIEW.md.
| CLAUDE.md | REVIEW.md | |
|---|---|---|
| When it is read | Every task, reviews included | Reviews only |
| Location | The repository, or ~/.claude/ on your machine |
The repository root (per-folder files also work) |
| Which copy | The file on disk | The copy merged into the default branch (usually main) |
| Good for | Working rules in general | What to flag, severity, paths to skip |
One thing to watch: as of December 2, the docs page for the local /code-review still has an old line saying it doesn't read REVIEW.md. The changelog lists the support under 2.1.333, and I confirmed on 2.1.334 that it does read the file.
How to set up REVIEW.md
Create REVIEW.md at the root of the repository and write it in plain Markdown. There is no fixed format. I wrote down the rules I already follow for this blog. My real file is in Japanese, so here is the same content in English.
# Review rules (blog-create) This repository holds my blog drafts plus the scripts that check and post them. Besides bugs, flag anything that breaks the rules below. ## Scripts (.ps1 / .py) - Never write output files, logs, or temp files to the C: drive. That includes C:\ itself, the user folder (~, $env:USERPROFILE), the Desktop, and $env:TEMP. Use the work folder (under D:\labo\claudecode) or a path relative to the script. Treat this as Important. - Times that people read (on screen, in file names, in logs) must be in JST. Flag datetime.utcnow() or [DateTime]::UtcNow used as-is for display or file names. - Delete any temp file at the end of the run. - Never put API keys, passwords, or the contents of key files under secrets/ in code. Treat this as Important. ## Article drafts (.html under article/) - Wrap every <pre class="EnlighterJSRAW"> code box in <div class="google-anno-skip"> (without it, AdSense auto links show up inside the code). - Wrap every image in an <a href> to the same image URL so it opens full size on click. - Commands or paths the reader types go in a code box, not in inline <code> in a sentence. ## How to report - At most 3 Nits per review.
Then commit it and merge it into the default branch. /code-review doesn't read the copy in your working tree. It reads the REVIEW.md on the remote default branch, as of your last fetch. Run these three lines on the machine that will do the review. The second line records the remote's default branch again, and if the third line prints your REVIEW.md, you are ready.
git fetch origin git remote set-head origin --auto git show origin/HEAD:REVIEW.md
After that, ask for a review as usual. With no target, it reviews your current branch against the default branch.
/code-review
Test: a PR with planted problems
For the test, I opened a PR that adds a Python script that totals weekly clicks from a daily Search Console CSV, plus a draft post about it. These are the problems I planted.
| Kind | Planted problem |
|---|---|
| Bugs | Weeks start on Sunday although they should start on Monday. The daily average always divides by 7, however many days have data |
| My script rules | Saves the result to the Desktop on the C: drive. Creates a temp file in %TEMP% and never deletes it. Prints times in UTC |
| My article rules | A code box without google-anno-skip. An image that doesn't open full size on click. A command the reader types, buried in a sentence |
I reviewed this PR once before merging REVIEW.md into main and once after. Both runs used the command below at the medium effort level. The setup was Windows 11, Claude Code v2.1.334, and Opus 5.5, on the same PC I used to test Code Mode.
claude "/code-review medium origin/main...origin/(branch-name)"

Results
| Planted problem | Without REVIEW.md | With REVIEW.md |
|---|---|---|
| Weeks start on Sunday | Important | Important |
| Daily average always divides by 7 | Important | Important |
| Saves to the Desktop on C: | Important | Important |
| Temp file in %TEMP%, never deleted | Important | Important |
| Times in UTC | Important | Nit |
| Code box without google-anno-skip | Missed | Nit |
| Image doesn't open on click | Missed | Found, then dropped by the cap |
| Command buried in a sentence | Nit | Nit |
| Total findings, including ones I didn’t plant | 9: 6 important plus 3 nits | 8: 5 important plus 3 nits |
| Time taken | 35 seconds | 44 seconds |
Both runs put the two bugs first. Neither was asked to, but both also noticed that the script crashes on a CSV saved with a BOM. With REVIEW.md, the reviewer's reply began with "Followed REVIEW.md from the default branch at 5d5c1dc5d01c.", so you can tell exactly which version of the file it used. Each finding also quoted the matching rule after "REVIEW.md says:".
What tripped me up
1. The Nit cap dropped one of my own rules
Following the example in the official docs, I wrote "at most 3 Nits". The finding about the image link fell off the list because of it. The review does mention it in its last line, saying it left one more finding out because REVIEW.md allows only 3 nits, but that is easy to miss. Meanwhile the C: drive rule, which I had marked Important, came through in full. If a rule must never be dropped, mark it Important.
- Treat any break of the article draft rules (google-anno-skip, image links, code boxes) as Important.
2. The REVIEW.md in your working tree is ignored
Saving REVIEW.md on disk does nothing. Only the copy merged into the remote default branch counts, after you run git fetch. If a PR edits REVIEW.md, that edit is treated as code under review. I think the point is to stop a PR author from loosening the rules in their own PR. When you change a rule, merge it into main first and test after that.
3. Rules in my personal CLAUDE.md worked even without REVIEW.md
Without REVIEW.md, the review still flagged the C: drive output plus the UTC times as Important. It cited my personal ~/.claude/CLAUDE.md, which says not to use the C: drive as a work area and to write times in Japan time. With REVIEW.md, the UTC finding dropped to a Nit, since REVIEW.md didn't mark it Important. When both files cover the same rule, the severity seems to follow REVIEW.md.
REVIEW.md is still worth it. My personal CLAUDE.md only exists on that one PC. REVIEW.md lives in the repository, so a review from another PC or from Claude Code in the cloud applies the same rules.
Summary
Since v2.1.333, the local /code-review reads REVIEW.md from your repository. Merge it into main, run git fetch, and the review starts flagging rules it used to miss. Put review-only rules in REVIEW.md, and rules for every task in CLAUDE.md. If you cap Nits, mark the rules you can't afford to lose as Important.


Comments