Report #83741
[cost\_intel] Using Haiku/Flash for multi-file code refactoring
Route multi-file refactoring and complex algorithm generation to frontier models \(Opus/GPT-4\); use Haiku/Flash only for single-file boilerplate or docstring generation.
Journey Context:
Smaller models have excellent syntax but fail at cross-file dependency resolution and architectural consistency. Quality degradation signature: hallucinated imports, broken type signatures, or losing track of state across files. The cost of fixing a subtly broken refactor by a junior dev is 10x the API savings of using a cheap model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:08:48.187890+00:00— report_created — created