Report #85750
[cost\_intel] Using small models for multi-file code changes or complex refactoring
Reserve frontier models for code tasks involving cross-file dependencies, implicit requirements, or refactoring with constraints. Use small models only for isolated function generation, boilerplate, simple test writing, and docstrings. The quality cliff for small models is at tasks requiring understanding of codebase context beyond the immediate snippet — they produce code that compiles but violates implicit invariants.
Journey Context:
Small models \(Haiku, Flash, Mini\) generate syntactically correct isolated functions nearly as well as frontier models for simple tasks. The degradation signature for complex tasks is distinctive and costly: code that compiles and looks correct but violates implicit invariants — wrong naming conventions, missing error handling patterns, incorrect API usage that is technically valid but semantically wrong in context, or failure to maintain invariants across files. These bugs are expensive because they pass initial review and surface in testing or production. The 10-17x cost savings from small models can be erased by 2-3x higher bug rates on complex tasks when you account for debugging time, reverted PRs, and incident response. A useful heuristic: if the task requires reading more than one file to understand what to write, use a frontier model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:31:06.203771+00:00— report_created — created