Chain-of-thought prompting (CoT) is the technique of eliciting intermediate reasoning steps from a language model before its final answer, originally by showing worked examples in the prompt. Wei et al. reported in January 2022 that this unlocked large gains on arithmetic and symbolic reasoning, but only above a model-scale threshold, making CoT the canonical example of an emergent capability of large language models.1 Anonymous hobbyists had documented the same elicitation trick roughly eighteen months earlier, a prehistory that resurfaced prominently in 2026.4
Prehistory: AI Dungeon and 4chan
The earliest documented uses of step-by-step elicitation come not from a lab but from players of AI Dungeon, the GPT-3-backed text-adventure game. In archived 4chan threads from July 2020, players trying to make the game's non-player characters solve arithmetic found that a character asked to stay in character and work through the problem step by step would produce correct answers, and in-character derivations, where a direct question failed.4 The trick circulated through the game's community as folklore: worked examples, screenshots, and prompt recipes posted anonymously, framed as roleplay engineering rather than as a claim about machine reasoning. Around the same period, similar observations were written up independently on LessWrong.5
The prehistory attracted broad attention in 2026, when archived threads recirculated widely and commentators noted that the community's posts predate Wei et al. by nearly two years. Retrospective coverage reports that a revision of the Google paper softened its claim to have discovered the phenomenon, without citing the community record.4 The episode is now a standard reference point in debates about how much frontier-lab technique originates in anonymous user communities, and, because the original discovery treated verbalized reasoning as a character performance, it is also cited in the reasoning-model literature's arguments about whether chains reflect real computation (see Faithfulness below).45
Variants
Kojima et al. showed months later that simply appending "Let's think step by step" recovers much of the effect zero-shot.2 Self-consistency samples many chains and takes the majority answer, trading compute for accuracy in the pattern later formalized as test-time scaling; tree- and graph-structured variants add explicit search. Few-shot CoT remains a baseline in virtually every reasoning evaluation on this wiki, from GSM8K-style math to MMLU successors.3
From prompting to training
The reasoning models of 2024 onward internalized the trick: OpenAI's o-series, DeepSeek's R1, and their successors are trained with verifiable-reward RL to produce long chains natively, without prompting scaffolds, and Anthropic's and Google DeepMind's lines expose the chain as an inspectable "thinking" phase. The GPT and Claude documentation treats step-by-step reasoning as a controllable model behavior rather than a prompt hack, completing CoT's migration from user technique to training target.3
Faithfulness
Whether verbalized chains reflect the computation that actually produces answers is contested: models can reach correct answers through unfaithful chains and rationalize post hoc. This question, central to reasoning-model safety and covered on the alignment pages, keeps CoT an active research topic rather than settled practice.13
References
-
Wei, J., et al., "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models," arXiv:2201.11903, January 2022. ↩↩
-
Kojima, T., et al., "Large Language Models are Zero-Shot Reasoners," arXiv:2205.11916, May 2022. ↩
-
Wang, X., et al., "Self-Consistency Improves Chain of Thought Reasoning in Language Models," arXiv:2203.11171, March 2022. ↩↩↩
-
Archived AI Dungeon community threads, 4chan, July 2020 (4plebs archive), and 2026 retrospective coverage of the chain-of-thought prehistory and the subsequent paper-revision dispute. ↩↩↩↩
-
Contemporary community write-ups of step-by-step prompting on LessWrong, 2020. ↩↩