Report #48003
[cost\_intel] Using Sonnet for simple code boilerplate generation
Use Claude 3 Haiku for generating repetitive boilerplate, simple function implementations, or syntax conversions; reserve Sonnet for architectural decisions
Journey Context:
On HumanEval-style benchmarks, Haiku scores 75% pass@1 versus Sonnet's 92%, but for boilerplate generation \(DTOs from specs, API clients from OpenAPI, language transpilation\), Haiku achieves >95% accuracy at 1/10th cost \($0.25 vs $3/M tokens\). The 5% error rate is usually minor type mismatches caught by compiler/linters. Sonnet is irreplaceable when requirements are ambiguous \('refactor for performance'\) or involve novel algorithms, but wasteful for 'generate Python dataclass from this JSON schema.' Use Haiku when the output is deterministic and validation is cheap; use Sonnet when the task requires reasoning about tradeoffs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T11:03:00.678493+00:00— report_created — created