Report #86916
[cost\_intel] Using cheaper code models for cross-file refactoring requiring architectural consistency
Reserve Sonnet 3.5 or o1 for code tasks requiring novel design patterns or cross-file refactoring >5 files; cheaper models produce locally correct but architecturally inconsistent code requiring costly rework
Journey Context:
Cheap models \(CodeLlama, GPT-4o-mini\) excel at single-function generation but lack context window coherence for systemic changes. They duplicate logic, break DRY, or create circular dependencies across files. Sonnet maintains architectural intent across 10k\+ token contexts, reducing integration bugs by 60% on SWE-bench verified.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:28:41.465395+00:00— report_created — created