The Idea

When people solve problems, they don't just think in their heads — they look things up, try things, and adjust based on what they find. ReAct gives AI the same ability: it alternates between reasoning (thinking about what to do next) and acting (using tools like search or calculators), then reads the results before deciding its next move.

This is the pattern behind virtually every AI agent you've encountered. ChatGPT browsing the web, Copilot running code, assistants calling APIs — they're all running some version of this think-act-observe loop. ReAct is the foundation that most modern agent systems build on.

Building Blocks

This composition combines:

Think Step by Step Ask It to Search

ReAct weaves chain-of-thought reasoning together with tool use in an iterative loop — each reasoning step can trigger an action, and each observation feeds back into the next reasoning step.

The Loop

Think
Act
Observe
Answer
← repeat until you have enough information →

Each cycle through the loop adds real information. The AI thinks about what it still needs, takes one action to get it, reads the result, and then decides: do I have enough, or do I need another round?

See It in Action

Question: "What is the elevation range for the area that the eastern sector of the Colorado orogeny extends into?"

1
First cycle: Find the region
Think
I need to search for the Colorado orogeny and find what area the eastern sector extends into. Then I'll need the elevation range of that area.
Act
Search: "Colorado orogeny"
Observe
The Colorado orogeny was an episode of mountain building in Colorado and surrounding areas. The eastern sector extends into the High Plains.
↓ not enough info yet — loop again
2
Second cycle: Find the elevation
Think
The eastern sector extends into the High Plains. Now I need to find the elevation range of the High Plains.
Act
Search: "High Plains United States elevation"
Observe
The High Plains are a subregion of the Great Plains. From east to west, they rise in elevation from around 1,800 to 7,000 ft.
↓ enough info — answer
3
Final answer
Answer
The eastern sector of the Colorado orogeny extends into the High Plains, which have an elevation range of 1,800 to 7,000 feet.

Each answer was grounded in a real search result — not guessed from memory.

The Hallucination Problem It Solves

Without ReAct (pure reasoning)

~56%

hallucination rate on factual questions. The AI reasons confidently but makes up facts it doesn't actually know.

With ReAct (reasoning + tools)

~6%

hallucination rate on the same questions. By actually looking things up, the AI grounds its answers in real information.

That's roughly a 10x reduction in made-up facts — simply by letting AI check its work against real sources.

Why This Works

Pure reasoning means AI has to rely entirely on what it memorized during training. Some of that is outdated, some is wrong, and some was never learned at all. ReAct lets AI admit what it doesn't know and go find out, just like a person would.

The thinking-out-loud step is equally important. Without it, AI might search randomly or call the wrong tool. The explicit reasoning trace forces it to articulate why it needs each piece of information, making its decisions more purposeful and its mistakes easier to spot.

The Composition

Think about what you need. Use a tool to get it. Read the result. Repeat until you have enough. Then answer. The simplest agent loop — and the foundation of nearly every AI agent built today.

When to Use This

When to Skip This

How It Relates

ReAct is the default agent pattern — the baseline that most other agent approaches improve upon. Plan-and-Execute adds explicit upfront planning. ReWOO optimizes cost by eliminating mid-loop AI calls. LLMCompiler optimizes speed by parallelizing independent steps.

It also serves as a foundation for more advanced systems: Reflexion adds self-critique after failure, LATS explores multiple reasoning paths in parallel, and autonomous agents like AutoGPT extend the loop with goal-setting and memory. If you understand ReAct, you understand the core of modern AI agents.