Interactive ← Home

Four loops you can run right here.

Simulated in the browser — no API keys required — but the control flow, termination logic, and log format mirror what real production loops emit. The fourth one is a cautionary tale.

ReAct — reason, act, observe

A tool-using agent answers a question by interleaving reasoning with tool calls. Watch it decide, act, observe, and either continue or stop.

REACT · IDLE 0 steps · $0.00
READY
Choose a question and press Run loop. The agent will decide which tool to call, execute it, observe the result, and repeat until it can answer.

Reflection — draft, critique, revise

The agent drafts an answer, critiques itself against a rubric, then revises. Two to three passes tend to be the sweet spot before diminishing returns.

REFLECTION · IDLE 0 passes · $0.00
READY
Pick a task and run the loop. You'll see the draft, the critic's notes, and each revision until the critic is satisfied or the pass cap is hit.

Evaluator–Optimizer — independent critic

A separate evaluator model grades against fixed criteria and returns targeted fixes. The optimizer applies them. Stop when the score clears a threshold.

EVALUATOR–OPTIMIZER · IDLE 0 cycles · $0.00
READY
The optimizer will draft; the evaluator will score against a rubric and return specific fixes. The loop stops once the score clears your threshold.

No verifier — a cautionary tale

Same coding task as a healthy loop — but the verification step is switched off. Watch the agent declare victory over and over while nothing actually works, until the circuit breaker ends the performance.

NO VERIFIER · IDLE 0 steps · $0.00
READY
This loop has a goal, tools, and confidence. What it doesn't have is any way to know whether it's right. Press Run it anyway to see why that matters.

The field guides

Eight guides, one method. Roughly in the order a reader meets them: how the field got here, how to work across models, then the tools themselves.