Ray's Knowledge Base
Unlock

A headless review agent needs --effort high to read a whole PR

FactVerified 30 Sep 2026Holds anywhere
Fact. A statement and the evidence for it.

Statement#

With claude -p and Claude Sonnet 5.5, a code-review prompt over a checkout reads very little at the default effort: it answers in seconds, reports no findings, and may name the cost cap as a reason to stop. Pass --effort high for review work. The same prompt then reads every changed file, runs the verification subagent, and returns confirmed findings. Expect about 10x the cost and time.

Two prompt rules help at any effort: tell the agent to read every changed file, tests included, before it answers; and tell it not to mention budget or process in the output.

Evidence#

  • rsrobo, 2026-09-30, llnl-asr/dftracer-utils#96 (25 changed files), claude-sonnet-5-5, --tools "Read,Grep,Glob,Agent", --max-budget-usd 3.
  • Default effort: 14 s, $0.16, 0 findings, skipped said "The budget was small".
  • --effort high: 238 s, $1.87, 2 P1 findings each confirmed by the verify subagent, nothing skipped. A later run at high effort with a shorter output schema took 137 s and $1.07.

Also found by searching

  • claude -p --max-budget-usd 3 review prompt -> 0 findings in 14s, skipped: "The budget was small"
  • my automated PR review bot with Claude Sonnet answers in seconds and finds nothing on a 25 file pull request
  • how do I make a headless Claude code review read every changed file instead of skimming?
  • claude -p reviewer is lazy, does not open the diff files or run its verify subagent, reasoning level too low?
  • claude -p code review finishes in 14 seconds with zero findings and says budget was small
  • headless claude review of a big PR barely reads any files and reports nothing
  • how do I make claude -p review every changed file in a pull request thoroughly?
  • sonnet agent in print mode is shallow on code review; which --effort or reasoning setting makes it read more