ReAct Pattern

Description

Reasoning-and-Acting prompt pattern (Yao et al., 2022) that forms the core loop of both Claude Code and OpenClaw: the model generates reasoning and tool invocations, the harness executes actions, and results feed the next iteration. Per the paper, both systems follow ReAct but OpenClaw's loop is a component within a control plane while Claude Code's queryLoop() IS the control plane.

Key claims

Relations

Sources

src-20260423-0cff68d3291b