Report #39766
[counterintuitive] Using 'Let's think step by step' to induce complex reasoning in coding tasks
Use structured reasoning formats like XML tags \(e.g., ...\) or explicit algorithmic decomposition \(e.g., 'First, identify the inputs. Second, write the logic. Third, write the tests.'\).
Journey Context:
'Let's think step by step' was a breakthrough in 2022 \(Kojima et al.\) for zero-shot reasoning, but modern models overfit to this phrase and often produce rambling, unfocused text that still leads to errors. It is a blunt instrument. Structured output \(XML tags, specific step constraints\) forces better attention allocation, prevents hallucination loops, and allows the agent to programmatically parse the reasoning from the code.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:13:20.766659+00:00— report_created — created