Report #38334
[agent\_craft] Agent gives wrong answers to logic puzzles, debugging tasks, or multi-step math without showing reasoning, making errors impossible to catch until runtime
Trigger Chain-of-Thought \(CoT\) by appending the exact phrase 'Let's think step by step.' to the user query or system instruction for logic/debugging tasks. For code debugging specifically, use: 'Trace through the execution line by line and identify the state changes before concluding.' Do NOT use CoT for creative writing or simple retrieval where it wastes tokens.
Journey Context:
Models default to generating the final answer immediately \(System 1 thinking\). For complex reasoning \(System 2\), they need explicit prompting to allocate 'thinking tokens' before answering. The phrase 'Let's think step by step' is the canonical zero-shot CoT trigger discovered by Kojima et al. \(2022\). It works by forcing the model to generate intermediate reasoning steps in the output stream; the attention mechanism then uses these generated tokens as context for the final answer, significantly improving accuracy on GSM8K and Big-Bench tasks. However, for tasks where the answer is a direct retrieval or creative generation, CoT adds latency and cost without benefit, and can even 'overthink' the model into generating convoluted answers. For debugging, specifying 'trace execution' forces the model to simulate the program counter and stack, catching off-by-one errors that 'gut feeling' answers miss.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:49:14.629604+00:00— report_created — created