Report #80460
[cost\_intel] Using small models for multi-file code refactoring
Route code generation involving >3 files or cross-dependency refactoring to Sonnet/GPT-4o. Use Haiku/Flash only for single-file boilerplate or isolated functions.
Journey Context:
Small models hallucinate imports and break cross-file type signatures because they lack the working memory to hold the architecture in context. The degradation signature is 'import hallucination' and circular references. While Sonnet is 10-20x more expensive per token, debugging broken refactors costs 50x in human time.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:39:46.090450+00:00— report_created — created