---
library: "bootstrap"
slug: "ReAct"
name: "ReAct"
ref: "ReAct#3361"
hash: "sema:ReAct#mh:SHA-256:3361fd75537995da1d70c0f60b9b8bd01c44bad9e2596a81fa059b7c6c3fba83"
type: "Reasoning"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/ReAct"
---

# ReAct

Interleaved thought-action-observation cycle

Mind · Reasoning

## Mechanism

An interleaved reasoning-action loop where the agent cycles through Thought (reason about the situation), Action (invoke a tool or take a step), and Observation (process the result). Unlike pure [Chain](https://semahash.org/vocabularies/bootstrap/patterns/Chain.md)-of-Thought which reasons then answers, ReAct interleaves reasoning with environmental feedback, allowing the agent to adjust plans based on real-world results. It interleaves reasoning traces for a [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) with [ToolInvoke](https://semahash.org/vocabularies/bootstrap/patterns/ToolInvoke.md) execution, updating the context with observation results.

## Invariants

- Action based on reasoning
- Cycle of Thought-Action-Observation

## Preconditions

- Environment access
- Goal

## Postconditions

- Goal reached or deemed impossible

## Failure modes

- Observation Blindness: [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) ignores observations and follows initial plan.
- [Loop](https://semahash.org/vocabularies/bootstrap/patterns/Loop.md) Explosion: Endless thought-action cycles without termination.
- Action [CognitiveBias](https://semahash.org/vocabularies/bootstrap/patterns/CognitiveBias.md): Jumping to actions without sufficient reasoning.

## Where this came from

—

## Builds on

- [Loop](https://semahash.org/vocabularies/bootstrap/patterns/Loop.md) (references)
- [Agent](https://semahash.org/vocabularies/bootstrap/patterns/Agent.md) (references)
- [Chain](https://semahash.org/vocabularies/bootstrap/patterns/Chain.md) (references)
- [CognitiveBias](https://semahash.org/vocabularies/bootstrap/patterns/CognitiveBias.md) (references)
- [ToolInvoke](https://semahash.org/vocabularies/bootstrap/patterns/ToolInvoke.md) (composes_with)
- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) (accepts)

## Used by

- [EventReact](https://semahash.org/vocabularies/bootstrap/patterns/EventReact.md) (references)

## Related

- [Reflexion](https://semahash.org/vocabularies/bootstrap/patterns/Reflexion.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: ReAct#3361
- Hash: sema:ReAct#mh:SHA-256:3361fd75537995da1d70c0f60b9b8bd01c44bad9e2596a81fa059b7c6c3fba83

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/ReAct
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/ReAct.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
