Report #73556
[cost\_intel] Using small models for code tasks involving cross-file dependencies and implicit invariants
Use frontier models for any code task requiring understanding 3\+ files, project conventions, or cross-module invariants. Small models handle single-function generation within 5-10% of frontier quality but drop 30-50% on multi-file coordination tasks. This is a non-linear cliff, not a gradual slope.
Journey Context:
The quality curve for code generation has a phase transition, not a linear degradation. Small models perform adequately on: single function generation, well-specified bug fixes with clear error messages, boilerplate code, and unit test writing. They fail catastrophically on: refactoring that touches multiple files, implementing features requiring understanding of project architecture, and debugging issues involving cross-module interactions. The reason: these tasks require maintaining a coherent model of the codebase in context, and smaller models have weaker attention over long contexts and poorer reasoning about implicit constraints. The degradation signature: small models generate locally correct but globally inconsistent code — each file looks fine in isolation but integration breaks. They import from modules that don't exist, violate project naming conventions visible only in other files, and create circular dependencies. This is the opposite of gradual degradation; it is a cliff that activates once cross-file coordination is required.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:03:29.821060+00:00— report_created — created