Report #82430
[cost\_intel] Claude 3.5 Haiku matches Sonnet for all code refactoring tasks
Use Haiku 3.5 for local scope operations \(variable renaming, import sorting, lint fixes\) at 1/10th cost; reserve Sonnet 3.5 for cross-file architecture changes, interface extraction, or dependency graph refactoring.
Journey Context:
Teams default to Sonnet for all code operations. Haiku 3.5 matches Sonnet on local refactoring \(e.g., Python import optimization\) but fails on multi-hop reasoning across >3 files. Cost gap is ~12x \($0.80 vs $0.067 per 1M tokens\). Quality degradation signature: Haiku produces syntactically valid but semantically incorrect imports when circular dependencies exist; Sonnet maintains correctness through symbol resolution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:57:11.679217+00:00— report_created — created