Report #73935
[cost\_intel] Using Flash/Haiku for multi-file refactoring or complex algorithm implementation
Reserve Sonnet/GPT-4o for multi-file refactors; small models fall off a quality cliff \(30%\+ error rate\) when context requires tracking state across files.
Journey Context:
Small models are great at boilerplate and single-function generation \(costing ~$0.001 per function vs $0.01 for Sonnet\). But for refactoring, they lose track of imported types and cross-file dependencies, leading to hallucinated imports. The cost of debugging these hallucinations exceeds the upfront savings.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:41:45.892144+00:00— report_created — created