Report #93101
[cost\_intel] Haiku 3.5 vs Sonnet 3.5 for TypeScript React boilerplate generation
Use Haiku 3.5 for presentational components under 200 lines with fewer than 5 props and simple TypeScript types; reserve Sonnet 3.5 for hooks with complex dependency arrays, conditional return types, or generic constraints crossing more than two boundaries.
Journey Context:
Haiku 3.5 catches 95% of PropType and basic interface errors that Sonnet catches in boilerplate code, but drops to 60% accuracy when inferring conditional ReturnTypes or mapped generic types. The cost difference is $0.80 vs $15 per 1,000 components. The quality cliff appears abruptly when type definitions require crossing more than two generic boundaries or conditional type inference.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:51:31.070475+00:00— report_created — created