Yesterday I updated Claude Code and read the changelog like I always do. One line stopped me: /code-review now reads a REVIEW.md from your repository.
I run /code-review on my branches constantly, mostly on Claude Code Templates, and it is good at finding real bugs. But it kept reporting the same things I already know about, and there was no clean way to tell it to stop.
That is what REVIEW.md fixes. I tested it in a few scenarios, and there is one design decision in there I really like. Let me break it down.
What is REVIEW.md?
It is a plain Markdown file at the root of your repo. No schema, no special syntax. You write what you want reviews to flag, how serious each thing is, and what to leave alone.
The simplest way to think about it: CLAUDE.md says what your project is and how to work in it. REVIEW.md says what to look for when reviewing code.
// Detect dark theme var iframe = document.getElementById('tweet-2127793699383886304-602'); if (document.body.className.includes('dark-theme')) { iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2127793699383886304&theme=dark" }
Here is the part that matters. Claude reads REVIEW.md from your repository default branch, not from the branch you are standing on, and not from your uncommitted changes.
So a pull request cannot quietly loosen the rules that review it. You have to merge the change first.
How to set it up
- Update Claude Code. REVIEW.md support landed in v2.1.333, so run
claude updateand check withclaude --version. - Create a file called
REVIEW.mdat the root of your repo. - Write your rules in plain English. Headings and bullets, nothing fancy.
- Commit it and merge it into your default branch. Until it is there, reviews will not see it.
- Run
/code-reviewon a branch with changes.
This is the shape the docs use, and it is a good starting point:
Four things cover most of what people need:
- Redefine what counts as an important finding in your repo
- Cap how many nits a single review posts
- List the paths and categories to skip, like generated files or anything CI already checks
- Add the checks your team actually cares about
If the file grows, you can split it. Put a line with only @ and a file name on it, like @review-security.md, and Claude pulls that file in. Keep those files next to REVIEW.md at the root. You get up to eight of them, 150,000 bytes combined.
What I found when I tested it
- REVIEW.md on the default branch: the rules are followed
- REVIEW.md only on a feature branch: ignored
- Uncommitted edits to it: ignored
- Rules changed on the remote: you need a
git fetchfirst - Symlinks, and files your Read permissions block: not followed
Since v2.1.334 you can also put a REVIEW.md inside a folder, and reviews follow the ones sitting above a committed change.
// Detect dark theme var iframe = document.getElementById('tweet-2127859454339428586-382'); if (document.body.className.includes('dark-theme')) { iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2127859454339428586&theme=dark" }
Is it worth it?
Yes, if you review the same repo often. Ten minutes writing the file pays for itself the first time a review stops reporting the lint errors your CI already catches.
One thing to know before you try it: the /code-review docs page still says the command does not read REVIEW.md. The changelog for 2.1.333 says it does, and that is what I saw on my own repo. The docs just have not caught up yet.
And REVIEW.md only shapes reviews. It will not change how Claude writes code during a normal session. That is still the job of CLAUDE.md.
If reviews in your repo keep telling you things you already know, go write the file. It is the best ten minutes I have spent on a changelog line in a while.
Links
- REVIEW.md documentation: https://code.claude.com/docs/en/code-review-customize
- Claude Code changelog: https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md
- My project: https://github.com/davila7/claude-code-templates
- More Claude Code components: https://www.aitmpl.com
You can follow me on my social media:
- Twitter (English): https://x.com/dani_avila7
- LinkedIn (Spanish): https://www.linkedin.com/in/daniel-avila-arias/
- Youtube (Spanish): https://www.youtube.com/@daniiielsan
- Instagram (Spanish): https://www.instagram.com/danielsan_avila/
