Skip to content
Max Narditdata & ai systems
← Articles
10 mindev

Claude Opus 5.5 as a code reviewer: medium effort matched high, and the passes often named the defect

The effort flag turned out to be the small decision. On 90 Django patches, Opus 5.5 gave almost the same verdicts at medium and high, about two and a half cents apart in cost per review. The bigger one is what your pipeline reads from the review, because many passes of wrong patches had the defect written in their own feedback.

Contents

A paper posted to arXiv on November 25 ran Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5 as code reviewers inside Claude Code, at --effort low, medium and high, on 90 agent-written Django patches. Fifty-five of the patches were wrong in a way the benchmark’s own tests missed.

For Opus, medium gave almost the same verdicts as high for about 2.5 cents less per review, and every tested setting still passed at least 45% of the wrong patches. A third number matters more for anyone wiring a reviewer into CI. Of the 290 reviews that passed a wrong patch, 111 had the tested defect written in their own feedback. The effort flag is the small decision. What your pipeline reads from the review is the larger one.

The numbers below are the paper’s. My own part is three runs, one per level, on a seeded bug in a scratch repository: enough to check the command and the output, and nothing about rates.

What did the arXiv study of Claude Opus 5.5 code review test?

Whether raising effort makes a reviewer reject more plausible-but-wrong patches without rejecting good ones. The patches came from public agent submissions to SWE-bench Verified, Django only. “Wrong” started as a test split: the patch passes the Verified tests and fails the stronger SWE-ABS tests. A relabeling pass after the runs moved eight patches from wrong to correct and three the other way, leaving 55 wrong and 35 correct.

The reviewer was Claude Code 2.1.311 in non-interactive mode with a clean configuration, no plugins and no saved settings. It got the issue text and a generic review prompt that fails a patch only for an unmet requirement or a functional defect that matters. It could read files, run shell commands and write its own tests, in a container with no internet access beyond the model API, so it could not look up the upstream fix. Each patch was reviewed once per model at each level: 810 reviews, about $33 at list price, inside $50.69 for the whole experiment.

Only the Opus arm was preregistered, on OSF on November 2, before the first main-run review. The Sonnet and Haiku results are exploratory.

Which effort level should a Claude Opus 5.5 reviewer run at?

Medium, on this paper’s labels and among the three levels it tested; xhigh and max were not in the design. Here is Opus on the 55 wrong patches (accepted) and the 35 correct ones (rejected):

Opus 5.5 effortWrong patches acceptedCorrect patches rejectedMean cost per reviewMedian time
low37 (67%)2 (6%)$0.0440.37 min
medium26 (47%)2 (6%)$0.0950.65 min
high25 (45%)2 (6%)$0.1200.82 min

Low was worse: it accepted 22 points more wrong patches than high, and that preregistered hypothesis held. The primary one, that medium is no more than 15 points worse than high, held too: the difference was 1.8 points, 95% interval from minus 6.5 to plus 10.8. Medium cost about 20% less than high by the paper’s geometric-mean measure. The authors had predicted at least 30%, so their third preregistered hypothesis failed. Their summary is that medium “is a sound default: it costs less than high and gave almost the same verdicts”.

Medium is also what you get by default. Opus 5.5 runs at medium when nothing sets a level, on the API and in Claude Code, one notch below Opus 5’s high. A reviewer script that moved from Opus 5 and never set effort has already dropped a level.

Four caveats apply to that table:

  • The labels are contested. For 32 of the 55 wrong patches, the issue may not require what the failing test checks; some failing tests check a helper name or message text from the official fix that the issue never specifies. That call was made post hoc by a Claude model. Without those 32, only 23 wrong patches remain, and the reduced sample supports neither accuracy hypothesis for any model.
  • No independent audit. The authors resolved the label changes themselves, and the qualitative codings were done by Claude models with no human check. The paper also says an Opus 5.5 agent wrote the analysis scripts.
  • The first author has a stake. Zax Shen develops Trust My Bot, an agent harness that gates every push with a model reviewer, and paid for the experiments.
  • Recall is possible. From the issue text alone, Opus reproduced every scored changed line of the official fix for 38 of 67 probed issues. These are public Django issues; your private code is not.

That leaves one careful data point about one setup: a stock Claude Code reviewer, the issue text, a generic prompt, functional defects only. It says nothing about security or design review.

How do Claude Sonnet 5.5 and Haiku 5.5 do as code reviewers?

Worse at medium, closer at high, and exploratory either way. Sonnet accepted 60% of the wrong patches at medium and 49% at high ($0.047 a review); Haiku 64% and 51% ($0.008). Medium’s non-inferiority to high could not be shown for either, which is not the same as showing high is better: both paired intervals include zero. If you route the reviewer to a smaller model, test high against medium on your own changes before picking.

Haiku at medium is the one to avoid. Seven of the 35 correct patches did not get a pass (20%), against 2 for Opus at any level. Five were explicit failures and two were malformed verdicts, which the study counted as rejections, so a pipeline needs a rule for unusable output either way. The authors suggest that a team that must cut cost could consider Haiku at high, and add that its equivalence to Opus at medium is untested. The smaller models also ran on a newer harness version, so read every cross-model comparison as configuration against configuration. The effort trade-offs for Haiku 5.5 as a subagent apply here too.

How often does a Claude reviewer pass a patch after naming its defect?

Often. Across all models and levels, 163 of the 290 reviews that passed a wrong patch named a specific functional concern, and 111 named the actual tested defect in their feedback. For Opus, 12 of the 26 accepted wrong patches at medium had the defect named in the review, and 14 of 25 at high. The paper counts this without explaining it, and calls it “a different failure from never noticing it”.

If you copy the study’s prompt, note one rule in it: a pass had to come with an empty list of structured findings, so these concerns sat in the free-text feedback. A pipeline that reads only the verdict, or only the findings field, drops exactly that text. The paper doesn’t report how often a concern on a correct patch was noise, so treat the feedback on a pass as a lead for a human, not a second verdict.

One rule to try, my inference and untested here: when the review text on a pass names a functional defect and gives a reproduction, send the change to a human whatever the verdict line says. Asking the reviewer for findings with file and line makes each one quick to check.

How do you set the effort of a Claude Code reviewer?

Pin it on the command line and make sure nothing above it in the precedence order overrides it. The Claude Code model configuration docs resolve the session’s level in this order, first match wins: the CLAUDE_CODE_EFFORT_LEVEL environment variable, a level picked in the session, the --effort flag, saved settings, then the model’s default. A maxEffortLevel setting or an organization cap can still lower the result.

So a CI reviewer that passes --effort but inherits an exported CLAUDE_CODE_EFFORT_LEVEL runs at the variable’s level. Clear it explicitly. This is what I ran on Claude Code 2.1.332 (the paper used 2.1.311), from inside the checkout of the branch under review, with the issue text in ISSUE.md:

You are reviewing the change on this branch against main (git diff main...HEAD).
The issue it claims to fix is in ISSUE.md. You may read files, run the tests and write
your own tests. Fail the change only for an unmet requirement of the issue or a
functional defect that matters. End with exactly one line: VERDICT: PASS or VERDICT: FAIL.
shell
cd review-demo   # the checkout under review; the prompt file sits one level up
env -u CLAUDE_CODE_EFFORT_LEVEL claude -p "$(cat ../review-prompt.txt)" \
  --model claude-opus-5-5 --effort medium \
  --setting-sources project --strict-mcp-config --no-session-persistence \
  --allowedTools "Read,Grep,Glob,Bash,Write,Edit" \
  --output-format json < /dev/null > ../review.json

Without the closed stdin, claude -p waited three seconds for input and printed a warning in my runs. The run exits successfully whatever the verdict (is_error was false on all three), so read the last line of .result and treat a missing verdict as a failure of the review, not a pass.

This grants the reviewer shell and write access, and --setting-sources project still loads the branch’s own .claude/settings.json, hooks included. That is fine in a scratch repository. For pull requests from anyone else, run it in a disposable container with network limited to the model API, as the study did.

Two settings traps from the docs: max is not accepted in the effortLevel or modelSettings keys, and a top-level effortLevel in your user settings file does not count for Opus 5.5. For a reviewer defined as a subagent, put effort: medium in its frontmatter; otherwise it inherits the session’s level on the same model, and on another model that level does not apply.

On the Messages API, effort is output_config.effort at the top level of the request:

json
{
  "model": "claude-opus-5-5",
  "max_tokens": 16000,
  "output_config": { "effort": "medium" },
  "messages": [{ "role": "user", "content": "Review this diff against the issue..." }]
}

The local /code-review command takes a level too, as in /code-review high main...my-feature, but it is a different knob. The docs describe it as trading coverage for confidence: at low the review reports only its most confident findings, and from medium up it broadens coverage. Typed interactively, a level is remembered and reused by later runs, even in a new session; a level passed in a -p run is not saved, and with no level ever typed the review uses the session’s effort. When I tested it on 2.1.302, passing medium left the review’s own prompt at high effort. In anything scripted, pass the level every time and don’t assume it maps to --effort.

How do you check which effort a Claude Code review actually ran at?

You can’t, from the output alone. The paper says the CLI “does not report the effort applied”, and the authors confirmed delivery by capturing a request before the run. The JSON from claude -p --output-format json had no effort field in my runs either; it reports the model, cost, turns and token counts. In an interactive session, /effort status shows the level set for the session, which is a configuration, not proof of what a given review used.

The output does show thinking. My three runs used 52, 105 and 124 thinking tokens at low, medium and high, consistent with the flag reaching the model, though not proof of it. The paper adds a signal worth alerting on: “Every review that used no thinking tokens returned a pass.” At least one of them still ran tools and two test runs before passing, so a zero-thinking pass is not proof that nothing was checked. It is a reason to open the trace before trusting the pass.

What does a Claude code reviewer catch, and what still needs a test?

It is on firmest ground when the requirement is written down. In my runs, the issue asked for combined durations like 1h30m and said invalid input must still raise ValueError. The patch handled 1h30m, passed the existing tests, and quietly returned 300 for 5mxyz. Opus 5.5 failed it at all three levels, each time with bad inputs it had tried itself, for about $0.09 to $0.12 per review at list price. One run per level on one easy bug; it shows the setup works.

The paper’s hard cases are the opposite: behavior the official fix has and the issue never asks for. A reviewer given only the issue has no basis to demand it, and that is the same gap behind the contested labels. If a behavior matters, write it into the issue or, better, into a test, which a maintainer can rerun on every change. The authors land in the same place: a review gate of this kind “complements tests rather than replacing them”.

So use the reviewer as a filter that finds things worth a human look, and keep the gate in the checks that run the code. That is the order in the review layers you can copy on any plan: required CI first, AI findings advisory.

Claude Opus 5.5 reviewer setup: what to change this week

  1. Pin --effort medium for an Opus 5.5 reviewer. For Sonnet or Haiku, compare medium and high on your own changes. Not low.
  2. Clear CLAUDE_CODE_EFFORT_LEVEL in the reviewer’s environment, and run reviews of other people’s branches in a disposable container.
  3. Treat a missing or malformed verdict as a failed review, and open the trace of any pass with zero thinking tokens.
  4. Read the feedback on passes, not only the verdict line, and route a named functional defect with a reproduction to a human.
  5. Turn every requirement the reviewer has to enforce into a test or an explicit line in the issue.

The paper’s prompt, harness command and data are in its research artifacts and the OSF filing, if you want numbers from your own repository.

Effort took Opus from passing 67% of the wrong patches to passing 45%, and medium got nearly all of that. In 111 of the 290 misses across the three models, the defect was already in the review text. Set the flag once, then spend the time on what reads the review.

01 / Discussion

No comment section here — all discussions happen on X.

Max Nardit@mnardit

02 / More articles