Executive Overview
The reasoning harness is the cognitive engine executing the iterative ReAct loop. Learn how lifecycle hooks intercept execution and how server actions differ from browser client tools.
1. The Iterative ReAct Cycle
The core reasoning harness executes an iterative state machine until goal convergence:
- Reasoning Step: The model outputs internal thinking reasoning about the current environment state.
- Tool Call Invocation: Model emits a structured tool call matching an registered schema.
- Execution & Sandboxing: Runtime executes the tool (server-side, browser CDP, or isolated container).
- Observation Injection: The raw output is formatted and fed back into the context window as a tool role turn.
