Guide for developers · part 3 of 5
What AI review catches
Both built-in reviews found six planted bugs when the rules were written down. Without them, Codex missed one or two in every run. Write the rules where the reviewer reads them.
Updated 2026-10-18 · 12 test runs by us, each with its log
Agents write more changes than people can read, and the changes carry more problems. CodeRabbit compared 470 pull requests in December 2025: those written with AI had 10.83 issues each, those written by people alone 6.45. Logic and correctness issues were 75% more common in the AI-written ones. An AI reviewer is the obvious help. The question is what it catches.
What we saw
We planted six bugs in a pull request of just over 100 changed lines that passes its own tests: SQL built with an f-string, codes stored without upper-casing, a code that expires a day early, totals that can go below zero, one default list shared by every cart line, and an exception swallowed. Then we ran each tool's built-in review on it.
When the README states the rules four of those bugs break, both reviews found all six in every run: Claude Code's /code-review in 3 of 3, codex review in 3 of 3.
With the rules removed from the README, the code and the bugs stayed the same. Claude still found all six in 3 of 3 runs. Codex found 4–5 of 6 planted bugs per run. Each of its reviews missed the code that expires a day early: with nothing written down, today < ends is only a bug if you know the business meant the last day to count.
The reviews also differed in how much else they reported. Claude listed 4 other findings per run, such as a discount kind with a typo being treated silently as a fixed amount (useful) or a remark that the tests were thin (an opinion). Codex listed 0 beyond the six. More findings catch more, and give you more to read.
Our test · 2026-10-18
Six known bugs in one pull request
How many of six planted bugs does each tool's built-in review find, with and without the rules written down?
A branch adds discount codes to a small cart module (just over 100 changed lines) and passes its own three tests. We planted six bugs: SQL built with an f-string, codes stored without upper-casing, the end date excluded, totals below zero, one default list shared by every cart line, and an exception swallowed. In one version README.md states the rules that four of the bugs break; in the other it does not. We matched each finding to the six by hand; every review is in its log.
- Rules written in README
- 3 of 3 found all six
- planted bugs found: 6 of 6
- other findings: 4
- time: 31–54 sec
- Rules not written
- 3 of 3 found all six
- planted bugs found: 6 of 6
- other findings: 4
- time: 39–41 sec
- Rules written in README
- 3 of 3 found all six
- planted bugs found: 6 of 6
- other findings: 0
- time: 61–76 sec
- Rules not written
- 3 of 3 missed some
- planted bugs found: 4–5 of 6
- other findings: 0–1
- time: 70–80 sec
What this test cannot show
- A small change; bugs in a large pull request are harder to find.
- The six are common, well-known kinds of bug.
- We matched findings to bugs ourselves; each review is in its log so you can check our matching.
- Other findings are not scored as right or wrong: some were useful, some were opinions.
All 12 runs, with their logs
- claude-rules-1.txt found all six · planted bugs found: 6 · other findings: 4 · time: 31 sec
- claude-rules-2.txt found all six · planted bugs found: 6 · other findings: 4 · time: 47 sec
- claude-rules-3.txt found all six · planted bugs found: 6 · other findings: 4 · time: 54 sec
- claude-norules-1.txt found all six · planted bugs found: 6 · other findings: 4 · time: 39 sec
- claude-norules-2.txt found all six · planted bugs found: 6 · other findings: 4 · time: 41 sec
- claude-norules-3.txt found all six · planted bugs found: 6 · other findings: 4 · time: 39 sec
- codex-rules-1.txt found all six · planted bugs found: 6 · other findings: 0 · time: 76 sec
- codex-rules-2.txt found all six · planted bugs found: 6 · other findings: 0 · time: 64 sec
- codex-rules-3.txt found all six · planted bugs found: 6 · other findings: 0 · time: 61 sec
- codex-norules-1.txt missed some · planted bugs found: 4 · other findings: 0 · time: 73 sec
- codex-norules-2.txt missed some · planted bugs found: 5 · other findings: 1 · time: 70 sec
- codex-norules-3.txt missed some · planted bugs found: 5 · other findings: 0 · time: 80 sec
The bugs to review for are the agent's own
When we had agents write the same feature from scratch at six settings (part 4), every run passed all 14 hidden acceptance tests, with or without the rules written down. None made the mistakes we planted here. The mistakes we did see agents make were different: changing a test so that it passes (part 1) and editing a file git does not track (part 2). Point your own review at those, because a reviewer reading the diff does not see a change to a file outside git.
Large changes are where AI review misses
In ImpossibleBench, a language model reading an agent's transcript caught 86–89% of the cheating on single-function tasks, but 42–50% on tasks from real, multi-file repositories. Our pull request was small. The larger the change, the less a clean AI review tells you.
How to run the reviews we tested
On the branch, with the changes committed:
claude -p "/code-review high" # Claude Code's built-in review of the branch
codex review --base main # Codex's built-in review against main
Claude's review took 31–54 sec and Codex's 61–76 sec on this change.
What to do
- Write the rules where the reviewer reads them: in the README, the spec or a docstring next to the code. In our test that decided whether Codex found the bug.
- Run the AI review before you read the diff, and read its findings first.
- Check test changes yourself, with the commands in part 1.
- Keep changes small enough that a review can see all of them.
- Treat extra findings as a list to sort, not a list to apply.
Tools
Sources
- Our new report: AI code creates 1.7x more problems (CodeRabbit, read 2026-10-18)
- ImpossibleBench: Measuring LLMs' Propensity of Exploiting Test Cases (arXiv (Zhong, Raghunathan, Carlini), read 2026-10-18)