Zenaique

How does ReAct differ from pure chain-of-thought, and what does interleaving reasoning with acting provide?

Short answer·Medium·4.0 · 0·~3 min·Asked atDroomIntuitRunway·Relevant atAnthropic
Attempt it

Explain the structural difference between a pure chain-of-thought (CoT) trace and a ReAct trace. What does interleaving Thought → Action → Observation steps buy over a CoT trace that only reasons?

Free · 2 AI evals / day
TL;DR

ReAct interleaves Thought, Action, and Observation, so each step reasons over a real tool result instead of a hallucinated continuation the way pure chain-of-thought does.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine doing a long math word problem two ways. In the first way you sit in a quiet room and reason it out entirely in your head, never checking anything against the real world. If you misremember one number on line two, every line after it inherits that mistake and you never notice. In the second way, after each step you actually look something up, run a quick calculation, or check a fact, and then continue reasoning from what you really found. The second person stays anchored to reality. Chain-of-thought is the first person, reasoning in pure imagination. ReAct is the second person, thinking a little, acting to gather a real fact, looking at the result, then thinking again with that fact in hand.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Chain-of-thought and ReAct are both ways to make a language model reason in steps, but they differ in one structural property that changes everything downstream. Chain-of-thought is a single uninterrupted generation. The model is prompted to think out loud, and it emits a reasoning trace where every token is conditioned only on the prompt and the tokens it has already produced. After the prompt, no information from outside the model ever enters the trace.

ReAct breaks that single trace into a repeating cycle of three step types. A Thought is the model reasoning. An Action is a tool invocation. An Observation is the real result that tool returned, written back into the context by the runtime rather than generated by the model. The phrase that captures the whole idea is interleaving: reasoning and acting alternate, so the model never reasons very far without checking its work against the world.

That one change is why ReAct is treated as the foundational agent pattern rather than a prompting trick. The interview question is really probing whether you understand where information enters a reasoning trace, and what follows from controlling that entry point. Everything below unpacks that single distinction and its consequences for accuracy, recovery, and cost.

The structural difference: one trace versus interleaved triples

In a pure chain-of-thought trace, the model receives the question and generates a continuous block of reasoning that ends in an answer. The trace is autoregressive end to end. Token 500 depends on tokens 1 through 499, all of which the model itself produced. The world is consulted exactly once, at the prompt, and never again.

ReAct rewrites this as a loop. The model emits a Thought, then an Action such as search(query) or calculator(expr). The runtime executes that Action and appends the genuine result as an Observation. The model then emits the next Thought, which now reads that Observation as part of its context. In practice the three step types are usually delimited by literal labels in the prompt format, so the runtime can parse out the Action, run it, and splice the Observation back in before handing control to the model again.

The load-bearing detail is who writes the Observation. The model does not generate it. The runtime injects it. That single fact is the entire difference between reasoning in imagination and reasoning grounded in fact, and it is the thing many candidates miss when they describe ReAct as merely chain-of-thought with tools attached.

It is worth being precise about what stays the same. Both traces are still produced one token at a time by the same model, and both still benefit from the model thinking before answering. ReAct does not replace reasoning, it punctuates it. The Thought steps in ReAct are exactly chain-of-thought reasoning. What changes is that those reasoning bursts are now separated by genuine tool results, so the model alternates between proposing and verifying instead of proposing all the way to a conclusion it never checks.

Why interleaving grounds the reasoning
Why interleaving beats plan then act
The cost: one LLM call per step
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • LangGraph's prebuilt ReAct agent wraps Anthropic or OpenAI tool calling in a state graph, looping Thought, Action, and Observation until the model emits a final answer.
  • Claude Opus 4.7 in agentic search interleaves reasoning with web search tool calls, so each new query is shaped by the snippets the last search actually returned.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QIf ReAct grounds each step, why do ReAct agents still hallucinate and loop on bad tool results?
A

Grounding only helps if the model reads the Observation correctly. Discuss misread errors, noisy tool output, and the need for repeated action detection plus verification of claimed answers before accepting them.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Describing ReAct as just chain of thought with tools bolted on. The point is interleaving, so each Thought reasons over a real Observation rather than a guessed one.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Contrast what feeds each step in chain of thought versus a ReAct trace.

  • Name the three token types ReAct interleaves and where each comes from.

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
What is the Model Context Protocol (MCP) and what problem does it solve?
MCQ·Easy