Report #90213
[agent\_craft] Agent overthinks simple API calls and hallucinates non-existent parameters
Disable chain-of-thought \(CoT\) reasoning for deterministic code generation tasks involving well-documented standard libraries; use zero-shot direct completion instead of 'Let's think step by step'.
Journey Context:
CoT triggers spurious reasoning paths where the model invents constraints or parameters that don't exist in the actual API \(e.g., hallucinating a 'timeout' parameter for a simple HTTP GET\). For deterministic coding tasks with clear specifications, CoT adds noise. Research shows CoT can hurt performance on tasks requiring factual recall or single-step deduction by introducing confabulated intermediate steps.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:01:05.179146+00:00— report_created — created