# ReAct prompting

> Canonical: https://skillalmanac.com/glossary/react-prompting | Last verified: 2026-11-25 | Index status: index-eligible

ReAct prompting has a language model interleave written reasoning steps with actions, such as a search call, and read each action's result before reasoning again. The name combines reasoning and acting.

Also called: ReAct, ReAct prompt, ReAct agent, reason and act prompting, reasoning and acting.

## In plain language

ReAct is a way of prompting a language model so that it alternates between thinking out loud and doing something. It writes a short thought, takes one action such as looking something up, reads what came back, and thinks again. It resembles a person solving a puzzle with a notebook and a phone: jot a thought, check a fact, adjust. The visible steps help a person follow what the model did. The limit is that the written reasoning can still be wrong, and each extra step adds calls and cost, so a loop needs a stopping rule.

## Technical definition

The ReAct paper (Yao et al.) proposes that a language model generate reasoning traces and task-specific actions in an interleaved manner. Per its abstract, the reasoning helps the model induce, track and update action plans and handle exceptions, while the actions let it query outside sources such as a knowledge base or an environment. The Prompt Engineering Guide describes the loop as thought, action and observation, where the observation is the result returned by the environment, and says thoughts are used sparsely for tasks with many actions.

## How it shows up when you use agents

A coding agent's loop of reasoning, acting and reading results resembles ReAct; see [Agent loop](/glossary/agent-loop). Many current tools expose [tool calling](/glossary/tool-calling) rather than a hand-written prompt template, but the idea of alternating thinking and acting is similar. You see it as the sequence of tool calls and short explanations in a session.

What breaks when this is misunderstood is trust in the visible reasoning. A written thought is output from the model, and it can be mistaken. The ReAct abstract frames the reasoning as support for the actions and the actions as a way to bring in outside information; it does not say each step is correct. A loop with no limit can also keep running, so agents are often given a step cap or approval prompts.

A practical next step is to read the observations, not only the thoughts, when a run goes wrong, and to set a stopping condition. See [chain-of-thought](/glossary/chain-of-thought) for reasoning without actions and [AI agent](/glossary/ai-agent) for the wider pattern.

## Common confusions

- **ReAct versus chain-of-thought.** Chain-of-thought is reasoning written out before an answer. ReAct interleaves that reasoning with actions that return new information.
- **ReAct versus tool calling.** ReAct is a prompting pattern from a research paper. Tool calling is an interface in which a model returns a structured request for a function to run.
- **ReAct prompt versus ReAct agent.** The prompt is the text format. An agent built on the idea adds code that runs the actions and feeds back observations.
- **Myth.** Showing reasoning removes hallucination. The paper reports that using an outside source helped with hallucination and error propagation on the tasks it tested; that is a result on those tasks, not a general guarantee.

## Worked examples in this catalogue

### [How to Build an AI Agent: A Minimal Tool Loop](https://skillalmanac.com/learn/build-an-ai-agent)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A guide to building a minimal agent in Python as a loop: the model requests a tool, your code runs it, the result goes back, and the cycle repeats until the model replies with text.

Why it exercises the concept: The loop in the guide has the same act-then-observe shape as ReAct. Modern tool-calling APIs return structured tool requests rather than free text, so this is a related pattern, not the ReAct prompt format itself.

### [subagent-design](https://skillalmanac.com/skills/skill-almanac/subagent-design)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill helps you decide what to delegate, then write subagent definitions and briefs that work without the conversation.

Why it exercises the concept: Agents that act in loops can hand work to other agents. This skill concerns how to brief them, which is a design question beside the reason-and-act loop.

### [Autonomous AI Agents: Risks and Guardrails](https://skillalmanac.com/learn/autonomous-ai-agents-risks-and-guardrails)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A guide on what goes wrong when an AI agent acts unattended, and the limits, approvals and stopping rules that contain it.

Why it exercises the concept: A reason-and-act loop runs a variable number of steps. The guide covers the limits and stopping rules that keep such a loop in check.

## Related terms

- [Chain of thought](https://skillalmanac.com/glossary/chain-of-thought.md)
- [Tool calling (function calling)](https://skillalmanac.com/glossary/tool-calling.md)
- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Prompt engineering](https://skillalmanac.com/glossary/prompt-engineering.md)
- [Agent loop](https://skillalmanac.com/glossary/agent-loop.md)
- [AI hallucination](https://skillalmanac.com/glossary/hallucination.md)

## Sources

- [ReAct: Synergizing Reasoning and Acting in Language Models](https://arxiv.org/abs/2210.03629), arXiv (accessed 2026-11-24)
- [ReAct Prompting](https://www.promptingguide.ai/techniques/react), Prompt Engineering Guide (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
