Bible Network Crypto DeFi Onchain RWA AI Agent Stablecoin Chain SAFU CryptoTax DeFAI AGI Claude Me Claude Skill Claude Design Claude Cowork
Independent Media
Not affiliated with any project
Learn Claude Skills. Do Everything Better.
claudeskill-me.com
LATEST
When Subagents Actually Help — and When They're Just Overcomplicating a Simple Task  ·  How Skills and Subagents Divide Labor: Not Either/Or, But Who "Knows" vs Who "Executes"  ·  CLAUDE.md Said So, but Claude Still Skipped It? Use Hooks to Turn a Request into a Guarantee  ·  Reviewing Superpowers: A TDD Framework That Literally Deletes Code Written Before Tests Exist  ·  CLAUDE.md, Rules, Skills, Hooks, Subagents — Which One? Anthropic's Official Seven-Method Decision Framework  ·  Reviewing Anthropic's Frontend Design Skill: Why Is It Installed 57× More Than the Runner-Up?
Glossary · Prompt Engineering

Chain-of-Thought Prompting

Prompt Engineering beginner

30-Second Version · For the impatient
Prompting the model to write out intermediate reasoning steps before giving a final answer, rather than jumping straight to the answer, to improve accuracy on complex reasoning tasks.
Full Explanation +
01 · What is this?

What is Chain-of-Thought Prompting, and how does it differ from just asking the model directly for an answer?

Chain-of-Thought Prompting (CoT) is a technique that asks the model to write out its intermediate reasoning process in text before producing a final answer. The simplest way to trigger it is appending a phrase like "let's think step by step" to the end of a prompt — the model then unfolds a sequence of reasoning steps before arriving at the final answer, rather than jumping straight to a conclusion.

The difference from directly asking the model "just give me the answer" is that the latter asks the model to complete all its reasoning internally in one shot and just output the result, while the former makes the reasoning process explicit, turning it into part of the visible text. This difference isn't very noticeable on simple tasks, but on tasks requiring multi-step logical derivation (math word problems, complex conditional judgments), the gap becomes clear — externalizing the reasoning process gives the model a chance to check whether each step makes sense along the way, rather than handling every logical leap simultaneously in one generation pass.

02 · Why does it exist?

Why does Chain-of-Thought Prompting improve accuracy — what's the underlying mechanism?

When Wei et al. published the original 2022 paper proposing this technique, the core observation was: complex multi-step problems (especially math reasoning, commonsense reasoning) are prone to a model making an error somewhere in the middle of the logic when asked to generate an answer directly in one shot — and that error goes unchecked, directly reflected in the wrong final answer. But if the model writes out its reasoning steps first, it's effectively breaking a large problem into a sequence of smaller intermediate steps, each requiring only a relatively simple logical judgment, which naturally reduces the chance of error.

Worth noting: Chain-of-Thought Prompting offers limited benefit for small models. The paper's experiments found this technique's benefit mainly becomes significant once model scale is large enough — which is also why Chain-of-Thought Prompting is often classified as one of the "emergent abilities" of large language models. For models below a certain scale, applying the same prompting technique yields relatively limited improvement.

03 · How does it affect your decisions?

What are the different ways to use Chain-of-Thought Prompting, and how do their use cases differ?

The most basic form is Zero-Shot-CoT — with no examples provided at all, simply adding "let's think step by step" to the prompt causes the model to automatically unfold its reasoning steps. This is the simplest, lowest-cost way to use it.

A more advanced form combines Chain-of-Thought with Few-Shot Prompting — providing one or more examples of "question + full reasoning process + answer" in the prompt, letting the model mimic the reasoning style of those examples when handling a new question. This combination generally outperforms pure Zero-Shot-CoT, but requires effort to design sufficiently high-quality examples. There are also variants like "Tabular Chain-of-Thought," which asks the model to output its reasoning process as a table, using a structured output format to further improve the reasoning's organization. What all three approaches share is "unfold reasoning before giving an answer" — the difference lies in whether examples are provided as guidance and how the reasoning process is presented.

04 · What should you do?

When I'm talking to Claude, when should I actively use Chain-of-Thought Prompting?

If a task is simple enough that the answer needs almost no intermediate reasoning (looking up a fact, a simple format conversion), there's no need to explicitly request Chain-of-Thought — it might actually make the response unnecessarily long. The situations where you should actively use it are tasks involving multi-step logical judgment, weighing multiple conditions, or when you notice the model tends to jump straight to a wrong answer on a certain type of task without reasoning it through — in these cases, explicitly asking Claude to "lay out your reasoning steps before giving a conclusion" gets you not just an answer, but visibility into where in the middle the logic went wrong, making it easier to judge whether the answer is trustworthy and whether it needs further correction.

For code debugging, complex planning tasks, or decisions that require weighing multiple options against each other, the benefit of Chain-of-Thought Prompting is especially clear — the externalized reasoning process doesn't just improve accuracy, it also lets you, the user, trace the model's judgment logic instead of receiving a black-box answer.

Real-World Example +

In the original 2022 paper, Wei et al. tested a math word problem comparing two prompting approaches: when asked to give the answer directly, the model miscalculated the remaining number of apples; when Chain-of-Thought Prompting was used instead and the model was asked to unfold its reasoning steps first, it correctly listed each addition and subtraction in sequence before arriving at the correct answer. This simple arithmetic example became a widely cited case study in subsequent papers and tutorials demonstrating the effect of Chain-of-Thought Prompting.

Common Misconceptions +
✕ Misconception 1
× Misconception: adding "think step by step" to a prompt will noticeably improve accuracy on any task, when actually: the original paper's experiments found the benefit of Chain-of-Thought Prompting mainly becomes significant once model scale is large enough, and for tasks that are already simple and don't require multi-step reasoning, the effect is minimal and may just make the response longer
✕ Misconception 2
× Misconception: Chain-of-Thought Prompting is the same as asking the model to "explain your answer," when actually: the order differs — Chain-of-Thought Prompting requires the reasoning to appear before the answer, letting the reasoning guide the final conclusion; if the answer comes first and an explanation is requested afterward, the model's explanation is likely just post-hoc rationalization of an answer already generated, without actually influencing reasoning quality
The Missing Link +
Direct Impact

The advantage of Chain-of-Thought Prompting is a noticeable accuracy improvement on complex, multi-step reasoning tasks, and reasoning that's visible and inspectable, making it easier for users to judge whether an answer is trustworthy. The drawback is longer responses and higher token cost, minimal benefit on tasks that are already simple and don't need reasoning, and an effect that's highly dependent on model scale, with limited improvement on smaller models.

Ask a Question
Please enter at least 10 characters
More Related Topics