Skip to content
←All articles
AI Development8 min read

REVIEW.md in Claude Code: making /code-review follow your rules, locally and on GitHub

Since v2.1.333 the changelog says local /code-review follows REVIEW.md, but the docs say it does not. What to put in the file and what to verify.

REVIEW.md is the file that tells Claude Code what to flag in a review and what to ignore. Until recently only the Code Review service on GitHub pull requests read it. According to the Claude Code changelog, from v2.1.333 (November 30, 2026) the local /code-review command follows it too, and from v2.1.334 (December 1, 2026) so do the files in subfolders. The dedicated documentation page still says the opposite, so check before you rely on it.

In sintesi

  • The Claude Code changelog says local /code-review follows the root REVIEW.md on the default branch (v2.1.333) and folder-level REVIEW.md files (v2.1.334).
  • The documentation pages on /code-review and Code Review say the local command reads CLAUDE.md and not REVIEW.md. The two Anthropic sources contradict each other, and I did not test which one is current.
  • The managed GitHub service (Team and Enterprise plans) reads REVIEW.md only from a base or default branch, never from the PR itself, and exclusions only work when that branch is protected.
  • Verifiable limits: at most 8 included files, 150,000 bytes in total, 64 Markdown links, 30,000 bytes for an included SKILL.md.
  • Rule of thumb: instructions you want everywhere go in CLAUDE.md, PR-review-specific ones in REVIEW.md.

Two files, two tools, one expectation to check

The Customize Code Review page gives the files different jobs. CLAUDE.md holds project instructions that Claude Code reads for every task, reviews included. REVIEW.md holds instructions for reviews only: what to flag, at what severity, what to skip.

There are two review tools, and the difference matters:

ToolWhere it runsWho can use itWhat it reads, per the docs
Code Review (managed service)Anthropic infrastructure, on every GitHub PRTeam and Enterprise plans, once an Owner turns it onCLAUDE.md and REVIEW.md
/code-review (local command)Your Claude Code sessionAny planCLAUDE.md. The Review locally page says it does not read REVIEW.md

By default the managed service focuses on correctness: bugs that would break production. The file moves that bar. For the service overall and the approval-policy side, see the article on Claude Approvals.

What the changelog says and what the docs say

The changelog is plain. For v2.1.333 it reads: "Added REVIEW.md support to /code-review: local reviews now follow the root REVIEW.md on your repository's default branch". For v2.1.334 it adds: "Added folder-level REVIEW.md support to /code-review: local reviews also follow REVIEW.md files in folders above a committed change". The same text appears on the changelog page and in the repository's CHANGELOG.md.

The documentation pages I read today say something else. The local command page states the review "follows your CLAUDE.md" and "doesn't read REVIEW.md". The customization page says the command "reads your CLAUDE.md files and not REVIEW.md".

I did not run the command on a test repository, so I cannot say which version describes real behavior. The most reasonable guess is that the docs lag two releases shipped in the last three days. It remains a guess. A simple test settles it, described in "What to do now".

What to write in a REVIEW.md

The file is free-form Markdown and does not change the format of the review, only its content. The example below comes from the documentation: it redefines what "Important" means, caps nits, skips generated files, and adds repository-specific checks.

# Review instructions

## What Important means here

Reserve Important for findings that would break behavior, leak data,
or block a rollback: incorrect logic, unscoped database queries, PII
in logs or error messages, and migrations that aren't backward
compatible. Style, naming, and refactoring suggestions are Nit at
most.

## Cap the nits

Report at most five Nits per review.

## Do not report

- Anything CI already enforces: lint, formatting, type errors
- Generated files under `src/gen/` and any `*.lock` file
- Test-only code that intentionally violates production rules

## Always check

- New API routes have an integration test
- Log lines don't include email addresses, user IDs, or request bodies
- Database queries are scoped to the caller's tenant

The same page maps each symptom to a kind of instruction:

SymptomInstruction to add
Too many findings marked ImportantList which classes of problem are Important and which are Nit at most
Too many nitsSet a cap, for example five per review
Comments on generated files or on what CI already checksList paths and categories to skip, or raise the bar: "in scripts/, only report if near-certain and severe"
A team rule is not being checkedWrite it as a standing check, for example "new API routes must have an integration test"
Findings that turn out to be wrongRequire evidence before posting, for example a file:line citation

The page advises keeping only review-changing instructions in REVIEW.md and leaving general project context to CLAUDE.md.

Folders, includes and limits

On the managed service, a REVIEW.md in a subfolder adds checks for changes under that folder, on top of the root file. An example layout:

your-repo/
├── REVIEW.md            # general rules
├── services/
│   └── billing/
│       └── REVIEW.md    # checks only for services/billing/
└── src/

The root file can include others with a line containing only @ and the file name:

# Review instructions

Report at most five Nits per review.

@review-security.md
@review-api.md

The limits the documentation gives, all for the managed service:

  • at most eight included files, and REVIEW.md plus included files under 150,000 bytes combined;
  • a file that would push past the limit is skipped whole, not cut short;
  • @ includes only work for files in the root next to REVIEW.md, with one exception for .claude/skills/<folder>/SKILL.md, which has its own 30,000-byte limit;
  • at most 64 Markdown links (http, https, mailto and # do not count). Past the limit, the review skips the whole root REVIEW.md;
  • subfolder REVIEW.md files do not apply inside folders named tests, fixtures, examples, generated, vendor, node_modules and similar: the root file covers those paths;
  • subfolder REVIEW.md files total at most 150,000 bytes, root file excluded.

Why a protected branch changes the outcome

The service reads REVIEW.md from the PR's base branch or the default branch, never from the PR's own changes. Whoever opens a PR cannot rewrite the rules it will be judged by.

There is a condition. According to the documentation, lowering severity, excluding paths and capping nits only works when the file is read from a protected default branch (a classic protection rule or a ruleset). If the default branch is unprotected, only the root file is read, without includes or folder files. If the service cannot confirm the protection settings, it reads nothing. This applies to the GitHub service: for the local command the changelog says "default branch" with no further detail, and I have no more information.

What to do now

  1. Update Claude Code to at least v2.1.334 with your install method and check with claude --version.
  2. Create a test branch with a root REVIEW.md containing a recognizable rule, for example "Report at most one Nit per review" or "Treat any change under scripts/ as Important". Merge it into the default branch, since the changelog says that is where it reads from.
  3. On a second branch, make a change that breaks the rule and run /code-review. If the review applies it, the changelog describes real behavior. If it ignores it, the docs are current and the rules you want locally belong in CLAUDE.md.
  4. If you use the GitHub service, protect the default branch with a rule or ruleset before counting on exclusions and nit caps.
  5. Put shared rules (security, conventions) in CLAUDE.md and keep only severity, exclusions and standing checks in REVIEW.md. That way the review works even if one of the two reading paths changes.

Rayo's view: until the two Anthropic pages agree, a rule that must hold locally belongs in CLAUDE.md, which both sources say is read.

Sources

FAQ

Where do I put the REVIEW.md file? In the repository root, and for the managed service also in subfolders (with exclusions for names like tests or vendor). To be read it has to be merged into the default branch, because the review never reads the file from the PR's own changes.

Are REVIEW.md and CLAUDE.md the same thing? No. CLAUDE.md holds the project instructions Claude Code uses for every task. REVIEW.md applies only to reviews and sets severity, exclusions and checks. Rules you want everywhere go in CLAUDE.md.

Does local /code-review read REVIEW.md? The changelog says yes from v2.1.333, with folder files from v2.1.334. The documentation says no. I could not run the command, so the test above is how you find out on your own repository.

Do I need a paid plan? The /code-review command works on any plan, per the documentation. The service that comments on every GitHub PR needs a Team or Enterprise plan and an Owner of the organization to turn it on.

Can a REVIEW.md let a PR through unchecked? It can lower severity or exclude paths, so yes, an overly broad rule hides real problems. Anthropic also warns that a review with no findings does not mean the code is error-free or secure.

Città di Castello, Umbria, ItalyOpen in Google Maps