Report #96935
[cost\_intel] Model selection for complex multi-step debugging and cross-file root cause analysis
Reserve GPT-4o, Claude 3.5 Sonnet, or o1-preview exclusively for debugging tasks requiring >3 hops of causal reasoning or cross-file dependency tracing. Cheaper models \(GPT-4o-mini, Haiku\) drop to <40% accuracy on SWE-bench verified tasks requiring multi-step reasoning, while frontier models maintain >80% pass rates. The cost of failure \(infinite retry loops or production bugs\) exceeds the 5-10x token cost premium.
Journey Context:
Engineers attempt to use Haiku or GPT-4o-mini for bug fixing to save costs, but these models fail on 'implicit dependency' bugs where the error manifests in file A but the cause is in file B three hops away. The failure mode is 'hallucinated fixes'—the model changes code that looks related but doesn't actually trace the data flow or execution path. Frontier models \(Sonnet, GPT-4o, o1\) excel at maintaining context across 5\+ files and tracing execution paths through call graphs. On SWE-bench verified, GPT-4o-mini solves ~12% of issues while Claude 3.5 Sonnet solves ~50%. For critical production debugging, the cheaper model often fails to resolve the issue entirely, resulting in engineer time costs that dwarf the API savings.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:17:21.500375+00:00— report_created — created