Code Review Benchmark
150 real code changes with 6 to 8 realistic bugs planted in each, plus clean changes that catch an AI reviewer inventing problems. Every task has an answer key and a sample review.
- Python
- TypeScript
- Go
- JavaScript
- Java
- review tasks
- 150
- realistic bugs in each change, at least one high severity
- 6–8
- kinds of task: seeded, clean and existing bugs
- 3
- languages (Python, TypeScript, Go, JavaScript, Java)
- 5
- Client
- An AI lab, through an AI data platform
- Our role
- Writer & reviewer
- Focus
- Python (about 44), TypeScript (about 37), Go (about 31), JavaScript (about 23), Java (about 15)
An AI lab, through an AI data platform
We built this work for an AI lab, through the data platform it uses to source expert tasks. Our engineers took part in every stage, from designing and writing tasks to reviewing them and making sure they hold up against the strongest models. The lab wanted to know whether an AI code reviewer can be trusted: whether it finds the real bugs, rates them correctly and stays quiet when there is nothing to report.
We work under NDA, so the client, the platform and the project's internal name are not shown. The numbers and the sample below are published with that in mind.
A benchmark for AI code reviewers
AI code reviewers now comment on pull requests at many companies. This benchmark tests whether an AI can review a code change like a senior engineer, find the real bugs, say how serious each one is and not report problems that aren’t there.
- Real changes that build and run
Pull requests from open source projects in Python, TypeScript, Go, JavaScript and Java, set up in containers.
- Planted bugs across seven kinds
Broken contracts, local logic errors, changes not carried through, spec and test gaps, design problems, security issues and style.
- Clean changes
Some tasks have no bugs at all, to catch a reviewer that reports problems that aren’t there.
- An answer key and a sample review
Each bug with its location and severity.
An AI reviewer is only useful if you can trust it. The clean changes show whether it invents problems, which matters as much as catching the real ones.
Every task had to pass these checks
- Every bug reproduced
Each answer key entry was reproduced in a container, so every bug is real and observable.
- Severity checked by a second reviewer
A second reviewer confirmed how serious each bug is.
- Grader control checks
We confirmed the grader rewards a good review and penalises false or missing reports.
- Sample review checked
Our own sample review was checked against the answer key before delivery.
- Unlisted findings reproduced
When a model reported a bug that wasn’t in the key, a reviewer reproduced it before it was scored either way.
How the tasks were tested
- Reviewer model
- GPT-6 Astra.
- AI judge
- An AI judge compared each review with the answer key.
- Attempts per task
- Several independent review runs per task.
- Independent sessions
- Yes. Each run was a separate session in its own sandbox, which was cleaned up after the run.
- Pass bar
- A task was accepted only if strong reviewers rarely produced a complete, accurate review.
Three kinds of task
Approximate number of tasks
- Seeded
- Bugs added to a clean, real code change.
- about 115
- Clean
- No bugs at all, to catch the AI making things up.
- about 20
- Existing bugs
- Real bugs that were already in the change.
- about 15
- Two findings missing from our key came up in 6 of 8 runs each. Both were real bugs, and we added them to the key.
- Bug types by share: broken contracts 20%, local logic 17%, changes not carried through 16%, spec and test gaps 14%, design 13%, security 11%, style 9%.
Review this pull request
A simplified example for illustration. It is not a task from the client’s set.
- Setup
- A real open source pull request with the repository, the PR description and the diff. 6 to 8 bugs are planted across files and bug types, at least one of them high severity. Clean variants have none.
- Why models get it wrong
- A good reviewer has to find the real problems, rate them correctly and stay quiet when the code is fine, all at once.
- How it is graded
- Findings are compared with the answer key.
- False reports count against the reviewer.
- Unlisted findings are reproduced by a person before they count either way.
What the project taught us
- 01Trust needs clean controls
Clean changes show whether a reviewer invents problems, which matters as much as catching real ones.
- 02Severity is the hard part
Finding a bug is only half the job; rating how serious it is takes careful calibration.
- 03Sometimes the model is right
Two unlisted findings came up in 6 of 8 runs each. Both were real bugs, so we added them to the key.
Need a code review benchmark your lab can rely on?
We plant realistic bugs in real changes, reproduce every one and calibrate severity, with clean controls that catch false alarms.