skip to content

In Claude Code Review, how do REVIEW.md and CLAUDE.md differ in shaping what a pull request review flags?

level: middleimportance: nice to knowfreq 6%

answer

  1. one file for every task, one for reviews
  2. repository root, freeform markdown
  3. default severity of a CLAUDE.md breach
  4. severity, nit caps, skip rules
  5. the local review command skips one

basics

~20 s

CLAUDE.md is project context for every Claude Code task, and Code Review flags new violations of it as nits. REVIEW.md, at the repository root, is review-only instruction for the reviewing agents: severity definitions, nit caps, skip rules, mandatory checks.

solid answer

~50 s

Code Review reads both files but weighs them differently. `CLAUDE.md` is shared project instruction for all Claude Code work; the reviewer reads every `CLAUDE.md` in the hierarchy (a subdirectory's rules apply only under that path) and reports newly introduced violations as **Nit**, and it also flags a PR that makes a `CLAUDE.md` statement outdated. `REVIEW.md` is freeform markdown at the repository root that only Code Review uses: the agents that find and verify findings receive it as the repository's review instructions, and the agents that rank and report consult it before settling severity. Use it to redefine **Important**, cap nits, skip generated paths, add must-check rules and set a verification bar. Keep it short, since length dilutes it. Both are guidance: neither makes the review block a merge, and the local `/code-review` command reads `CLAUDE.md` but not `REVIEW.md`.

code

markdown · 16 lines
markdown
# Review instructions

## What Important means here
Reserve Important for findings that break behavior, leak data or block a
rollback. Style, naming and refactoring suggestions are Nit at most.

## Cap the nits
Report at most five Nits per review; count the rest in the summary.

## Do not report
- Anything CI already enforces: lint, formatting, type errors
- Generated files under `src/gen/` and any `*.lock` file

## Always check
- New API routes have an integration test
- Database queries are scoped to the caller's tenant

go deeper

for a junior

Recall that CLAUDE.md is for every task while REVIEW.md, at the repository root, is read only by Code Review.

for a middle

Explain that CLAUDE.md violations default to nits, that subdirectory CLAUDE.md files apply under their path, and what REVIEW.md can tune: severity, nit caps, skips, checks.

for a senior

Tune a noisy reviewer with REVIEW.md rather than CLAUDE.md, keep the file short, and remember the local /code-review command will not see it.

for a principal

Separate guidance from enforcement: decide which rules belong in review instructions and which need a blocking CI check that no instruction file can provide.

## Two files, two scopes **Claude Code Review** is Anthropic's managed pull request reviewer for GitHub, in research preview for Team and Enterprise plans. It posts findings tagged **Important**, **Nit** or **Pre-existing**. Two files in your repository tune what it flags, and they differ in reach and in strength. | | `CLAUDE.md` | `REVIEW.md` | | - | - | - | | Used by | every Claude Code task | Code Review only | | Location | repository root and any subdirectory | repository root | | Role in a review | project context | the repository's review instructions | | Default effect | new violations reported as Nit | whatever you instruct, severity included | | Read by the local `/code-review` command | yes | no | ## CLAUDE.md in a review `CLAUDE.md` is the shared project instruction file Claude Code loads for all work: conventions, commands, architecture notes. Code Review reads the `CLAUDE.md` files **at every level of the directory hierarchy**, so a rule in `services/billing/CLAUDE.md` applies only to files under that path. Two behaviours follow: - a **newly introduced violation** of a `CLAUDE.md` rule is reported as a **Nit** by default; - the check is **bidirectional**: if the PR changes code so that a `CLAUDE.md` statement becomes outdated, Claude flags that the documentation needs updating too. Because `CLAUDE.md` also steers every interactive session, review-only rules placed there make every session carry them. That is the reason `REVIEW.md` exists. ## REVIEW.md `REVIEW.md` is **freeform markdown** at the repository root. The agents that **find and verify** findings receive its contents as your repository's review instructions, alongside Code Review's default guidance, and the agents that **rank and report** consult it before settling severity and writing the review. Because it reaches every finding and verification agent directly, a rule there lands more reliably than the same rule in a long `CLAUDE.md`. What it is most often used for: 1. **Severity**: redefine what Important means; a docs or config repository may want a much narrower definition. You can also escalate, for example treating any `CLAUDE.md` violation as Important. 2. **Nit volume**: cap how many nits one review posts, such as "at most five, the rest as a count in the summary". 3. **Skip rules**: paths, branch patterns and categories to stay silent on: generated code, lockfiles, vendored code, anything CI already enforces. 4. **Repo-specific checks**: rules to check on every PR, such as "new API routes have an integration test". 5. **Verification bar**: evidence required before a finding is posted, such as a `file:line` citation for any behaviour claim. 6. **Re-review convergence**: after the first review, post only Important findings, so a small fix does not trigger round after round of style comments. 7. **Summary shape**: a one-line tally at the top of the review body. ## Keep it focused A useful test for each line: would it change what a reviewer posts, or at what severity? Conventions, build commands and architecture notes fail that test and belong in `CLAUDE.md`. Length has a cost: a long `REVIEW.md` dilutes the rules that matter most. Keep only instructions that change review behaviour, and leave general project context in `CLAUDE.md`, where every session can use it. ## What neither file does - **Neither enforces anything.** Both shape what the reviewer flags and how it words and ranks findings. Code Review's findings still don't approve or block a pull request, and its check run still ends neutral; a line in `REVIEW.md` saying "block the merge" changes nothing. Gating merges takes a job in your own CI that reads the check run's severity counts. - **`REVIEW.md` is not read by the local `/code-review` command.** That command, run in a terminal session, follows `CLAUDE.md` like any Claude Code session but ignores `REVIEW.md`, so a team relying on review rules locally must put them somewhere that session reads. - **Neither file is a schema.** There are no required keys or headings; anything you can phrase as a review instruction is in scope. - **`REVIEW.md` lives at the repository root.** The docs describe one file at the root, not one per directory as with `CLAUDE.md`, so scope a rule to a path by naming the path inside the file, as in "in `scripts/`, only report if near-certain and severe".

  • A documentation repository gets Important findings for wording choices from Code Review. What goes in REVIEW.md?
    Narrow Important to what actually breaks things for that repository, such as a wrong command or a broken link, and state that wording and style are Nit at most. Cap the number of nits per review, and list paths or generated files to skip. Because the ranking agents consult `REVIEW.md` before settling severity, this recalibrates what reaches the PR.
  • Why would a rule in REVIEW.md land more reliably than the same rule in a long CLAUDE.md?
    `REVIEW.md` reaches every finding and verification agent directly as the repository's review instructions, and the ranking agents consult it for severity. `CLAUDE.md` is general project context: a violation of it defaults to a Nit, and one rule competes with everything else in the file. A short, focused `REVIEW.md` keeps review rules from being diluted.

CLAUDE.md is the staff handbook every employee reads on day one; REVIEW.md is the inspection checklist handed only to the inspectors. Put a rule meant for inspections in the handbook and it is one line among many that inspectors treat as background; put it on the checklist and every inspector works from it, yet neither document can stop a shipment by itself.

  • Once REVIEW.md exists, Code Review stops reading CLAUDE.md
  • A new CLAUDE.md violation is reported as Important by default
  • Writing block the merge in REVIEW.md makes the check run fail
  • The local /code-review command in a session also follows REVIEW.md
  • REVIEW.md needs a fixed schema of keys and headings