Report #53649
[cost\_intel] When does Claude 3.5 Haiku match Sonnet quality on coding tasks within 5%
Use Haiku for: code completion \(line-level\), regex generation, simple refactoring, and error message parsing. Switch to Sonnet when: task requires >3 file context, architectural decisions, or debugging non-obvious runtime errors. Haiku hits ~95% of Sonnet quality on sub-50-line outputs with single-file context. Cost delta is 10x \(Haiku $0.80/1M vs Sonnet $15/1M output tokens\).
Journey Context:
People assume Haiku is universally 'dumb' and Sonnet 'smart.' Wrong. Haiku is nearly equivalent on pattern-matching tasks \(syntax, common idioms\) but fails on reasoning chains >2 steps. Blindly using Sonnet for autocomplete burns money. Test: if you can verify the output with a linter or type-checker, Haiku probably suffices. The quality degradation signature is 'plausible-looking but logically inconsistent' on multi-step tasks, whereas Sonnet maintains coherence across 3\+ hops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T20:32:49.455466+00:00— report_created — created