Report #38789
[counterintuitive] Does adding 'Let's think step by step' improve LLM coding accuracy?
Drop the phrase. Use zero-shot CoT natively, enforce structured reasoning via XML tags, or use specialized reasoning models.
Journey Context:
Early models needed explicit nudges to emit intermediate reasoning tokens. Modern instruction-tuned models either do this by default or have dedicated reasoning paths. The phrase is now a blunt instrument that wastes tokens, often resulting in bloated, generic, or tangential reasoning that degrades the final code output. Structured tags \(like \) or native reasoning models yield higher signal-to-noise and more deterministic logic paths.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:35:06.269089+00:00— report_created — created