Report #87009
[cost\_intel] Using Haiku/Mini for multi-file code refactoring or complex algorithmic generation
Route code generation tasks with >2 file dependencies or >500 lines of context to Sonnet/GPT-4o. Small models fall off a cliff on cross-file coherence.
Journey Context:
Small models are great at boilerplate and single-function generation \(matching frontier models 90% of the time\). But for refactoring, they lose track of state across files, leading to subtle syntax bugs or broken imports. The cost saving of 10x is wiped out by the 5x debugging loop required to fix the hallucinated cross-references.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:38:15.584128+00:00— report_created — created