How does ReAct differ from pure chain-of-thought, and what does interleaving reasoning with acting provide?
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?
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.
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.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Start with the structural contrast: chain-of-thought is one autoregressive trace, ReAct is repeated Thought-Action-Observation triples with the Observation injected by the runtime. Then explain grounding and recovery, why interleaving beats plan then act, the hallucination drift failure of long pure reasoning, and the concrete cost of one LLM call per step.
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.
- Perplexity's research mode runs a ReAct style loop, reasoning about a question, issuing a real retrieval, and refining the next sub query from the documents it found.
- HotpotQA multi-hop benchmarks were where ReAct first beat pure chain-of-thought, because each Wikipedia lookup grounds the next reasoning hop instead of guessing the bridge entity.
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?
QWhen would you prefer plan then act over ReAct despite ReAct's recovery advantage?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
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.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.