Sonnet 5 vs Opus 4.8 in Coding Benchmarks
bisonbear2 · reddit · 2026-07-15
The author tested Sonnet 5 and Opus 4.8 using 24 real-world open-source repository tasks in Claude Code, running a head-to-head comparison across five reasoning effort levels. Patch quality was evaluated using GPT-5.4 as a pointwise judge.
Key Findings
- At high reasoning efforts, Sonnet generates patches with more checks and longer paths; the judge frequently rates them as "clear and explicit in intent."
- Opus tends to output "simple, robust, minimal diff" patches, resulting in smaller diffs in most cases.
- Cost differences are also notable: Sonnet is cheaper at low/medium tiers, but at the max tier, it becomes more expensive than Opus.
More from coding & agent
- Gergely Orosz: Shipping 10x PRs With AI Agents, Sites Fill With Small Regressions — ducha_aiki · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11
- agents-best-practices: a provider-neutral Agent Skill for designing and auditing agentic harnesses — tom_doerr · 2026-09-11
- Cognition's SWE-2 uses a KKT duality argument in RL to shift the effort Pareto curve — YouJiacheng · 2026-09-11