How Much Effort Does an AI Code Reviewer Need? Evidence from Claude 5.5 Models on Plausible-but-Wrong Patches
Organizations: Trust My Bot Los Angeles, California, USA · Trust My Bot Hong Kong, Hong Kong · Independent Researcher Orlando, Florida, USA
Abstract
AI coding agents write code faster than people can review it, so teams add AI reviewers. Reasoning models let such a reviewer trade cost for diligence through an effort setting. We asked how much effort a reviewer needs to catch plausible-but-wrong patches, which pass a benchmark's tests but fail stronger ones. Claude Opus 5.5 (preregistered), Sonnet 5.5 and Haiku 5.5 (exploratory) each reviewed the same 90 agent-written Django patches from SWE-bench Verified at low, medium and high effort. By strengthened SWE-ABS tests, 55 patches were wrong and 35 correct. In every model, high effort accepted fewer wrong patches than low (false success .45 against .67 for Opus, .49 against .65 for Sonnet, .51 against .78 for Haiku), a supported difference for Opus and Haiku. For Opus, medium was non-inferior to high within 15 percentage points (difference .018, 95% CI [-.065, .108]) and cost 20% less, short of the preregistered 30%. For Sonnet and Haiku, medium cost 39% and 51% less than high but was not shown non-inferior. Opus at medium or high agreed best with the labels; Haiku at high cost about 8% as much per review as Opus at medium, accuracy difference unresolved. Exploratory coding showed that most rejections named the tested defect and that effort added such rejections. No setting is a strong gate: each accepted at least 45% of wrong patches. For 32 of the 55 wrong patches the issue may not require what the failing test checks; without them, neither accuracy hypothesis holds for any model.
Figures & tables
| Item | Opus study | Sonnet and Haiku studies |
|---|---|---|
| 270 reviews analyzed per model | 23.30 | 10.00 (Sonnet 8.77, Haiku 1.23) |
| Pilot on patches outside the sample | 5.04 | 1.06 |
| Recall tests: 20 probe issues and 74 issues before the main run, 68 issues after | 5.57 (0.54 + 2.67 + 2.36) | Not run |
| Repeated reviews at high effort (20) | 3.07 | Not run |
| Failed attempts and an uncounted re-run | 0.55 | 0.01 |
| Smoke test of the harness | 0.55 | 0.00 (free probe) |
| # | What the plan said | What happened | Why it matters |
|---|---|---|---|
| 1 | The three Opus reviews of each patch run one right after another, so that any change in the model over time affects all three efforts equally. | 32 reviews failed because the account hit its API spending limit. They were re-run later in separate batches, apart from the other reviews of the same patch. | For those 32 reviews, drift over time is not balanced across efforts. The 3 failed attempts that had already cost money ($0.55) are in the spend. |
| 2 | The recall test, a memory probe in which the model writes the official fix from the issue text alone with no code or tools, runs once before the main run and is reported. | It ran before the main run as planned, but the run record did not report it and the plan’s spend total left out its $2.67. A second run after the main run was the one reported at the time. | Neither run can affect a verdict, because the reviewer never saw them. The paper uses the first run. The two runs put 9 of 67 issues in different recall groups, so groupings by recall are noisy. |
| 3 | Before any review, record for each wrong patch whether the issue actually requires the behavior its failing strengthened test checks. | This was coded only after the Opus run, by one Claude Opus 5.5 coder that did not see per-patch verdicts but knew the overall results. | The split by this coding (Section 4.6 ) is exploratory; a person should redo the coding. |
| 4 | A mediation analysis ( Imai et al., 2010 ) : a test of whether effort lowers false success by making the reviewer check more (more thinking, tool calls and test runs). | Not done; no reason was recorded at the time. Behavior is reported only as the manipulation check (Section 4.1 ). In hindsight the analysis would have added little: it needs sequential ignorability ( Imai et al., 2010 ) , which patch difficulty likely breaks, since a harder patch draws both more checking and a different verdict; and the 14 wrong patches whose Opus verdict differed between low and high are too few to estimate an indirect effect precisely. | The paper reports that more effort came with more checking, but does not claim that the checking caused the better verdicts. |
| 5 | Blind coders flag Opus reviews in which memory of the upstream fix drove the verdict. | The coders were Claude Opus 5.5, the same model under test, and no person checked their flags. | The flags are a model’s judgment, and a coder of the same model may share the reviewer’s blind spots about what it remembers. |
| 6 | A drawn patch is replaced only if its label fails to reproduce when both test suites run locally. | A bug in our label check read only Django’s per-test status lines and missed failures that Django reports only in its failure summary at the end of the log, such as a failing subtest. Three wrong patches whose label did reproduce were therefore replaced by reserve patches. | The excluded patches were not a random loss: they were one kind of wrong patch, those whose failure shows only in Django’s failure summary, so the sample lacks that kind. After the main run all three models reviewed the three patches at every effort (27 reviews, supplement Section D.8); swapping them back in changes no hypothesis decision for any model (Section 4.5 ). |
| Effort | False success (55 wrong) | False alarm (35 correct) | Balanced agreement | Mean cost | Geometric-mean cost | Wall time | Output tokens | Thinking tokens | Reviews with any thinking | Tool calls | Shell test runs | Malformed verdicts |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Opus 5.5 (preregistered) | ||||||||||||
| Low | 37 (.67) | 2 (.06) | .635 | 0.0441 | 0.0397 | 0.37 | 1,106 | 216 | 72 | 3 | 1 | 0 |
| Medium | 26 (.47) | 2 (.06) | .735 | 0.0946 | 0.0805 | 0.65 | 2,243.5 | 598 | 89 | 4 | 2 | 0 |
| High | 25 (.45) | 2 (.06) | .744 | 0.1202 | 0.1009 | 0.82 | 2,948.5 | 1,068 | 90 | 4 | 2 | 0 |
| Sonnet 5.5 (exploratory) | ||||||||||||
| Low | 36 (.65) | 2 (.06) | .644 | 0.0232 | 0.0210 | 0.28 | 1,136.5 | 303 | 85 | 2.5 | 1 | 2 |
| Hypothesis or limit | Estimate | 95% CI | One-sided p | Holm threshold | Supported |
|---|---|---|---|---|---|
| Opus 5.5 (preregistered) | |||||
| H1: high false success low | Difference .218 ( b = 13, c = 1) | [ .350, .101] | .0009 (exact McNemar) | .0083 | Yes |
| H2: medium false success high + .15 | Difference .018 ( b = 2, c = 1) | [ .065, .108] | .0052 (Tango) | .0125 | Yes |
| H3: cost ratio medium/high .70 | Ratio .798 | [.750, .849] | .999 (Wilcoxon) | .025 | No |
| Guardrail: medium rejects 4 correct patches that high accepts | 0 | Held | |||
| Ceiling: 6 false alarms at medium and high | 2 and 2 | Held | |||
| Check | Opus 5.5 (preregistered) | Sonnet 5.5 (exploratory) | Haiku 5.5 (exploratory) |
|---|---|---|---|
| Original labels: false success (60 wrong) | 43 / 33 / 33 (.72 / .55 / .55) | 41 / 39 / 35 (.68 / .65 / .58) | 48 / 39 / 34 (.80 / .65 / .57) |
| Original labels: false alarm (30 correct) | 3 / 4 / 5 | 2 / 4 / 6 | 2 / 6 / 5 |
| Original labels: balanced agreement | .592 / .658 / .642 | .625 / .608 / .608 | .567 / .575 / .633 |
| Original labels: decisions | H1, H2 (unchanged) | H3 (unchanged) | H1, H3 (unchanged) |
| Three replaced patches swapped back in | .673 / .491 / .473; decisions unchanged | .655 / .600 / .491; decisions unchanged | .782 / .636 / .527; decisions unchanged |
| Malformed verdicts counted as acceptance | No malformed verdicts | Decisions unchanged (H1 exact p = .0287) | Decisions unchanged (H2 p = .3612) |
| Effort | Required (6) | Unclear (14) | Not required (32) | No failing test (3) | All wrong patches (55) |
|---|---|---|---|---|---|
| Opus 5.5 (preregistered) | |||||
| Low | 2 (.33) | 9 (.64) | 24 (.75) | 2 (.67) | 37 (.67) |
| Medium | 1 (.17) | 7 (.50) | 17 (.53) | 1 (.33) | 26 (.47) |
| High | 1 (.17) | 7 (.50) | 17 (.53) | 0 (0) | 25 (.45) |
| Sonnet 5.5 (exploratory) | |||||
| Low | 1 (.17) | 8 (.57) | 24 (.75) | 3 (1.00) | 36 (.65) |
| Model | Effort | Rejected | Named, of 55 [95% CI] | Named, of rejections [95% CI] | Partial | Other | Accepted | Feedback named the defect | Specific concern, passed |
|---|---|---|---|---|---|---|---|---|---|
| Opus | Low | 18 | .22 [.13, .34] | .67 [.44, .84] | 2 | 4 | 37 | 11 | 22 |
| Opus | Medium | 29 | .38 [.27, .51] | .72 [.54, .85] | 3 | 5 | 26 | 12 | 16 |
| Opus | High | 30 | .40 [.28, .53] | .73 [.56, .86] | 3 | 5 | 25 | 14 | 16 |
| Sonnet | Low | 19 | .24 [.14, .36] | .68 [.46, .85] | 3 | 3 | 36 | 12 | 19 |
| Sonnet | Medium | 22 | .33 [.22, .46] | .82 [.61, .93] | 3 | 1 | 33 | 9 | 15 |
| Sonnet | High | 28 | .40 [.28, .53] | .79 [.60, .90] | 2 | 4 | 27 | 12 | 18 |
| Type | Opus | Sonnet | Haiku | All |
| Functional: logic | 44 | 46 | 39 | 129 |
| Functional: interface | 15 | 11 | 18 | 44 |
| Functional: check | 16 | 11 | 13 | 40 |
| Functional: resource | 7 | 10 | 9 | 26 |
| Functional: larger defects | 9 | 10 | 1 | 20 |
| Functional: support | 0 | 1 | 0 | 1 |
Automated Code Review
Automated code review uses software analysis and AI to find defects, assess changes, and support pull-request decisions.
See all 60 papers