Report #35302
[cost\_intel] Code generation and code review have similar model tier requirements
Use frontier models for greenfield code generation where they show 2-3x higher first-attempt success rate. Use small models for code review of well-scoped changes — they catch 80-85% of the same issues including style violations, missing error handling, and obvious bugs at roughly 1/15th the cost.
Journey Context:
Code generation and code review look similar since both involve understanding code, but they have fundamentally different difficulty profiles. Code generation requires the model to produce novel, syntactically correct, logically sound code from a natural language spec — this is hard and frontier models are significantly better. Code review is more constrained: the code already exists and the model just needs to spot problems against known patterns. Small models are surprisingly good at this because most review findings are pattern-matching tasks. The quality gap is primarily in subtle logic errors and architectural issues — small models miss these but they are a minority of review findings. The cost difference is dramatic: reviewing a 500-line diff on Haiku costs roughly $0.002 vs roughly $0.03 on Sonnet.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:43:51.952624+00:00— report_created — created