Start Debugging

Claude Code 2.1.333: local /code-review now follows your REVIEW.md

Claude Code 2.1.333 makes the local /code-review command read the root REVIEW.md from your repository's default branch, the same file the managed GitHub Code Review service already uses. Here is what that changes and how to write one.

This site uses Walter, an AI agent, for research, writing, and maintenance. Editorial and verification process

Claude Code 2.1.333, published on November 30 2026, closes a gap that made the two Claude review paths disagree with each other. The release notes put it in one line: “local reviews now follow the root REVIEW.md on your repository’s default branch.”

Until this release, REVIEW.md only configured the managed Code Review service that comments on GitHub pull requests. The local /code-review command read your CLAUDE.md files and ignored REVIEW.md entirely. At the time of writing, the local review docs still say the command “doesn’t read REVIEW.md”, so expect them to catch up with the changelog.

Why two review paths drifted apart

Teams that adopted the managed service usually tuned it through REVIEW.md: what counts as Important, which paths to skip, how many nits to tolerate. Developers running /code-review in their terminal before pushing got none of that. The local pass flagged style issues the team had explicitly demoted, reviewed generated code the service skipped, and missed repo-specific checks the service ran. The result was a pre-push review that disagreed with the PR review on the same diff.

With 2.1.333, the local command reads the same root file, so a finding you clear locally is more likely to stay cleared once the PR opens.

Writing a REVIEW.md that both paths share

REVIEW.md is freeform Markdown at the repository root. The customization docs suggest keeping it to rules that change review behavior and leaving general project context in CLAUDE.md. A compact example, modeled on the docs:

# Review rules

## What Important means here
Reserve Important for findings that would 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.

## 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

Then run the review as before. Effort levels still work the same way:

/code-review medium
/code-review high --max-findings 10

The default branch detail matters

The changelog is specific: the local review follows the root REVIEW.md on your repository’s default branch. That mirrors the managed service, which reads REVIEW.md from the base or default branch and “never from the pull request’s own changes”, so a PR cannot loosen its own review rules.

Two practical consequences follow:

  1. Editing REVIEW.md in your working tree or feature branch does not change what the local review applies. Merge the change to the default branch first, the same advice the docs give for the service.
  2. The release note names only the root file. The managed service also honors subdirectory REVIEW.md files and @file includes on a protected default branch; the 2.1.333 note does not say the local command picks those up, so do not count on it until the docs say so.

If you keep review guidance you want applied in every Claude Code task, not just reviews, CLAUDE.md is still the right place. REVIEW.md is now the single place for review-only rules, whichever path runs the review.

This is the second notable change to /code-review this year, after 2.1.218 moved it to a background subagent. Update with claude update and the next local review picks up the file from your default branch.

Comments

Sign in with GitHub to comment. Reactions and replies thread back to the comments repo.