Report #42845
[cost\_intel] Can I safely use Claude 3.5 Haiku for automated code refactoring to cut costs?
Restrict Haiku to additive code changes \(adding types/logging\). Never use it for transformative refactoring; its 15% hallucination rate on complex refactoring vs Sonnet's 2% eliminates cost savings through bug fixes.
Journey Context:
Haiku costs 1/10th of Sonnet but exhibits 'confident hallucination' on complex refactoring tasks like 'extract class' or 'convert to async'. The cost of debugging Haiku-generated code exceeds the token savings. However, Haiku is reliable for additive, local changes where validation is trivial.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:22:58.046290+00:00— report_created — created