Report #49250
[agent\_craft] Agent wastes tokens and latency on chain-of-thought for simple syntax errors or fails to use reasoning on complex logic bugs
Implement a routing classifier: use zero-shot generation for linter/syntax errors; enable chain-of-thought \(CoT\) only for type errors, logic bugs, or algorithmic tasks where the error message indicates non-local reasoning is required
Journey Context:
CoT improves performance on novel reasoning tasks but introduces unnecessary variance and token cost for well-memorized patterns \(like syntax fixes\). Agents often apply CoT universally or not at all. The correct operationalization is an error-type router: syntax/lint errors need direct regeneration with constraints, while 'logic error' or 'test failure' signals require CoT to trace execution. This balances latency and accuracy.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:09:10.787729+00:00— report_created — created