TL;DR
AI coding agents write code faster than humans can review it, pushing engineering teams to deploy AI code reviewers as automated gatekeepers. This paper tests how much "reasoning effort" Claude 5.5 models actually need to catch sneaky, plausible-but-broken code patches—finding that cranking up the effort helps every model, though smaller models need max effort to shine while the largest model plateaus early. Even at full throttle, however, AI reviewers wave through at least 45% of flawed patches, proving they are a helpful complement to, rather than a replacement for, solid test suites.
What Problem Does This Paper Address?
Software development has a new bottleneck: AI agents generate pull requests at blistering speeds, and human review time hasn't kept pace. A natural fix is using a second AI model to review patches before merging.
Modern reasoning models offer an "effort" knob that trades compute cost for diligence—shaping how much thinking, tool-calling, and testing the model does before rendering a verdict. The authors ask a practical question: how much effort does an AI reviewer actually need—and across what model sizes—to catch "plausible-but-wrong" patches? These are tricky, agent-written code changes that pass standard developer test suites, fooling basic benchmarks into thinking an issue is solved, yet fail under stricter scrutiny.
Methods
The authors ran a paired, within-patch experiment across 810 total reviews. Three models—Claude Opus 5.5 (preregistered, confirmatory), Sonnet 5.5, and Haiku 5.5 (both exploratory)—each reviewed the exact same 90 patches at low, medium, and high effort settings using the Claude Code CLI.
Each review happened inside a sealed, internet-blocked Docker container so the reviewer couldn't look up the GitHub issue or the official upstream fix. Armed with the verbatim issue text and the repository, the AI reviewer had tools to read code, run shell commands, and write its own tests before outputting a strict pass or fail verdict.
The researchers also ran clever diagnostic checks: a "recall probe" (asking Opus to write the official fix from the issue text alone to measure training-data memorization) and LLM-based coding of the review transcripts to verify whether rejections actually named the real underlying bug.
Datasets
The evaluation used 90 public, agent-generated patches for the Django web framework, drawn from SWE-bench Verified. To establish ground truth, the authors relied on SWE-ABS (which strengthens weak benchmark tests using the official fix) alongside manual rule-based rechecking. By the final corrected labels, 55 patches were wrong (passed original Verified tests, failed stricter checks) and 35 were correct (passed both).
Key Insights and Ideas
- Diminishing returns depend on model scale: For flagship Opus 5.5, almost all accuracy gains happened going from
lowtomediumeffort. Smaller Sonnet and Haiku models, however, needed the jump frommediumtohigheffort to do their best work. - Low effort invites "rubber-stamping": At
loweffort, Opus and Sonnet occasionally skipped their internal thinking block entirely—and every single review without thinking tokens resulted in an automaticpass, even on broken patches. Curiously, tiny Haiku never skipped thinking and generated the most thinking tokens at every level. - Memorizing the fix backfires: Because SWE-bench issues predate 2024, Opus recalled many official fixes from pretraining. Counterintuitively, when Opus fully recalled an upstream fix, it accepted wrong patches more often (e.g., 64% false success vs. 27% at medium effort). Recognizing superficial similarities to a remembered fix may lull the reviewer into skipping rigorous verification.
- "Seen, yet accepted": In 111 of the 290 instances where a reviewer accepted a broken patch, its written feedback explicitly described the exact defect—it just decided the flaw wasn't severe enough to fail the patch.
Key Results
- Effort reduces missed bugs: Moving from
lowtohigheffort lowered false success (the share of wrong patches accepted) across the board: from .67 to .45 for Opus, .65 to .49 for Sonnet, and .78 to .51 for Haiku. False alarms (rejecting good patches) stayed low, mostly between .06 and .11 (peaking at .20 for Haiku at medium). - Cost vs. performance: Opus at
mediumwas statistically non-inferior tohigh(catching 29 vs. 30 of 55 wrong patches) while costing 20% less in geometric mean ($0.0805 vs. $0.1009), falling just short of a preregistered 30% savings target. - Best value per dollar: While Opus at
mediumorhighagreed best with the ground-truth labels (balanced agreement of .735 and .744), Haiku athigheffort achieved .688 balanced agreement while costing less than a cent per review ($0.0078 mean)—roughly 8% of Opusmedium's price. - No silver bullet: Even the best configuration still let 45% of plausible-but-wrong patches slip through.
Limitations and Future Work
The biggest caveat lies in what "wrong" means. Because SWE-ABS derives stronger tests from the official fix, tests can demand implementation details the original GitHub issue never asked for. Post-hoc coding suggested 32 of the 55 wrong patches failed tests that might exceed the issue's actual requirements; when those 32 are removed, none of the effort accuracy hypotheses hold statistically. Additionally, Sonnet and Haiku runs were exploratory, limited to a single Python repository (Django), and much of the qualitative transcript coding relied on Claude models without human validation.
Future work should bring in human raters to audit test strictness, evaluate fresh private codebases free from training-data contamination, test whether high-effort Haiku formally matches medium-effort Opus under cost-weighted metrics, and explore richer reviewer setups like checklists and multi-agent voting.
Summary updated