Report #74754
[cost\_intel] Using frontier models for boilerplate code generation or simple unit test writing
Use Sonnet/4o-mini for unit test generation and boilerplate. Reserve Opus/4 for complex refactoring across multiple files.
Journey Context:
Small models excel at localized, syntactic tasks. They write perfect Jest/Pytest boilerplate. Frontier models are only justified when deep semantic understanding of the codebase is required. Quality cliff for small models: importing non-existent modules or failing to understand cross-file type changes. If the task requires reading >3 files to generate the code, upgrade the model.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T08:04:16.541396+00:00— report_created — created