Report #91463
[cost\_intel] Claude 3 Opus cost-justified only for >100 line code generation
Use Claude 3.5 Sonnet for code refactoring <100 lines; reserve Opus for greenfield modules >200 lines, complex architectural decisions, or ambiguous requirements requiring nuanced tradeoff analysis
Journey Context:
Opus produces compilable code on first pass 40% more often than Sonnet for >200 line generations due to superior long-range dependency tracking. However, for <50 line diffs, the gap closes to <5% while Opus costs 5x more \($15 vs $3 per 1M tokens\). The breakpoint is around 100 lines of context: below this, Sonnet's 'good enough' accuracy dominates Opus's marginal gains. Opus remains irreplaceable for ambiguous architectural queries where nuanced reasoning prevents expensive refactoring later.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:06:43.401505+00:00— report_created — created