You open a pull request and the AI reviewer leaves twelve comments. Two are real. The other ten are about code that is fine, so you scroll past them all, including the two that mattered.
That is what I wanted to fix. I planted real bugs and harmless traps in one commit, ran reviews with and without a rule list, and counted.
Here is how to reduce false positives in AI code review: give the reviewer a written rule list that names each bug type and also says when not to report it, plus one line telling it to stay silent when unsure. In my test, that cut a cheap model’s false alarms from 9 to 0 across 3 runs. The price: it missed 2 of 18 real bugs. A free open source rule pack writes most of the list for you, and a noisy reviewer is usually an instructions problem, not a model problem.

Why AI code review flags so many false positives

Because “find bugs” rewards flagging, and the model often cannot see enough to know a line is safe.
Start with what the reviewer reads. Git can show a diff (only the lines you added and removed in a change). Most AI reviewers send that diff to a model and ask it to find problems.
Now think about what the model sees. A line like f"SELECT ... ORDER BY {column}" looks exactly like SQL injection (an attack where user input rewrites your database query). Whether it is dangerous depends on where column came from, and that may be ten lines away or in another file.

So the model guesses. And a model told to “find bugs” leans toward reporting, because a report looks like work. You get a smoke alarm that goes off every time you make toast.
Two words help here. Recall is how many of the real bugs the reviewer catches. Precision is how many of its warnings are real. Noisy reviewers trade precision for recall, and low precision is what makes people stop reading.
Five instruction fixes that cut the noise
Tell the reviewer what counts as a bug, what does not, and that silence is allowed.
Most noise comes from gaps in the instructions. Close them and the noise drops:
- Name the bug types. “Mutable default arguments”, “
isused on strings”, “shell commands built from user input”. A checklist beats “find bugs”. - Add a “do not report when” line to each one. For SQL: only flag it when the input is actually attacker-controlled, not a trusted constant.
- Allow silence. One opening line: only raise an issue when you are confident, and stay quiet when the context is unclear.
- Let it read the whole file. A rule like “confirm the data source before flagging” only works if the reviewer can open the file, not just the diff.
- Split blocking from minor. Security and correctness block a merge. Style is a suggestion.
That is a lot to write by hand for every language. The good news: someone already wrote it.
A free rule list: Open Code Review
Open Code Review ships one per language under the Apache-2.0 license, and prints it with one command.
Open Code Review is a command-line code reviewer that started inside Alibaba and is now open source. Apache-2.0 means you can use it at work and change it without paying anyone. You install it with npm install -g @alibaba-group/open-code-review and run it as ocr. It needs Git 2.41 or newer. I used version 1.14.4, and the commands below are from the project’s GitHub README.
Its best part is not the reviewer itself. It is the rule sheet. Run ocr delegate rule --commit HEAD <files> and it prints the exact checklist it would use for each changed file, with no model call and no API key.

The Python sheet opens with a line telling the model to favor precision over recall and stay silent when unsure. Then it lists bug families, each with a “do not report” clause. “Do not report when the function never mutates the argument.” “Confirm the input is actually attacker-controlled rather than a trusted constant.” That second kind of line is exactly what a plain prompt is missing.
You can use the sheet three ways:
- Inside Claude Code:
/plugin marketplace add alibaba/open-code-review, then/plugin install open-code-review@open-code-review, then/open-code-review:delegate-review. - With any agent: run
ocr delegate previewandocr delegate rule, and paste the output into Codex, Cursor or your own prompt. - On its own:
ocr reviewsends your diff and the rules to a model you configure, which is how you run it in CI (the server that checks every push).

Start with delegation mode (OCR picks files and rules, your coding agent does the reading). It needs no OCR key because the agent uses the model you already pay for.
The test: 6 real bugs, 6 traps, 12 reviews
On a cheap model, the rules took false alarms from 9 to 0. On a strong model, they changed nothing.
The question: does a rule list make a model’s review quieter without making it blind?
The setup: a small Python shop app with one commit that adds 6 real bugs and 6 traps. These were the real bugs:
- a password reset token made with
randominstead ofsecrets - a crash from comparing two kinds of timestamps
- a retry loop that tries one time fewer than it should
- failed payments reported as success
- a progress bar stuck at 0%
- a shell command built from a customer’s uploaded file name
Traps are lines that look scary but are safe. One is that f-string SQL query, whose column comes from a fixed list. Another is a random call that only picks an A/B test variant. A third is a shell command whose only input is a file path fixed in the code.
Then I ran Claude Code in headless mode (no chat window, just a command that returns the answer). Each setup ran 3 times. One prompt simply said “review the latest commit”. The other pasted in Open Code Review’s rule sheet.

Here is what each setup found across its 3 runs:
- Strong model (Claude Opus), plain prompt: 18 of 18 real bugs, 0 traps flagged.
- Strong model, with rules: 18 of 18 real bugs, 0 traps flagged.
- Cheap model (Claude Haiku), plain prompt: 18 of 18 real bugs, 9 traps flagged.
- Cheap model, with rules: 16 of 18 real bugs, 0 traps flagged.
What it means: the cheap model on its own flagged three harmless lines in every single run. With the rules, it flagged none. The strong model never took the bait either way.
The catch: with the rules, the cheap model missed the retry off-by-one twice. That is precision costing recall, in a real run. And 12 planted issues in 4 files is a small test. Real pull requests are messier.
Strong model or cheap model with rules?
It works, but it costs about twenty times more per review than a cheap model with good rules.
The strong model was clean with or without help. So why bother with rules? Price. Reviewing this commit cost about 17 cents on the strong model and under a cent on the cheap one, in about the same 20 seconds.
That gap adds up fast when a reviewer runs on every push from every developer. There are good reasons to pay it anyway. If your code handles money or logins, the two bugs the cheap model missed are worth 16 extra cents.

For everyday pull requests, a cheap model plus a strict rule list is the better trade. Put the strong model on the branches that matter.
What a quieter reviewer misses
It will sometimes stay quiet about a real bug, and in delegation mode its line numbers can drift.
The missed retry bug was not a fluke of one run. A reviewer told to stay silent when unsure will sometimes be unsure about something real. Keep tests and a human pass on anything that touches money or logins.
Line numbers are the other trap. In one delegation run, the agent reported two correct bugs at the wrong lines, because it counted lines in the combined diff output instead of the file. Check a finding before you paste it into a ticket.
That human pass is still yours. The habits in how to review AI-generated code faster still apply. Rules in a CLAUDE.md file shape what Claude writes, and guardrails that stop Claude Code deleting files limit what it touches.
A review rule list is the same idea pointed at the other end: what the AI is allowed to complain about. If cost is your worry, how Claude Code token costs add up shows where the money goes.
Run ocr delegate rule on your last commit and read the “do not report” lines.