Report #101277
[cost\_intel] Claude Sonnet 4.6 costs 3× more than Haiku 4.5 but underperforms on automated code review
Route PR diff review to Claude Haiku 4.5 first. It produced higher F1 and recall than Sonnet 4.6 on real PRs at 3.2× lower cost per review in a 150-sample benchmark. Split large diffs \(>150 lines\) into chunks and supplement performance bugs with static analysis, since all LLMs scored near-zero on N\+1/unbounded queries.
Journey Context:
The common mistake is assuming code review is a 'complex reasoning' task that requires Sonnet or Opus. A 2026 arXiv evaluation on 100 synthetic mutation-injected bugs and 50 real PRs found Haiku 4.5 outperformed Sonnet 4.6 on F1 \(0.365 vs 0.343\), recall \(\+18%\), and qualitative specificity, while Sonnet was more conservative and missed 17 more bugs. The gap widened on real PRs in the independent Martian benchmark \(Haiku F1 36.4% vs Sonnet 27.1%\). Real PRs caused a 92% F1 degradation versus synthetic benchmarks, and diff size was the dominant predictor of failure. Performance bugs were undetectable by LLMs alone. The right call is Haiku for volume review \+ deterministic rules for performance/architectural issues.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-06T05:17:03.621317+00:00— report_created — created