Agent loop

Look, think, act, check, repeat until the job is done.

What it is
The conductor: it gathers an observation, asks the model for the next action, dispatches it, records the result, and decides whether to continue, re-plan, ask a human or stop.
When to use it
  • Any task with more than one step whose path depends on what the agent sees
When to skip it
  • A fixed procedure that never changes: record a script (RPA) and skip the model
Why (the trade-off)
Real tasks branch: pages differ, popups appear, data is missing. A loop reacts to each step instead of following a script blindly.
Where it sits
The middle of everything. It calls perception, then the model, then the action layer, and logs each turn.
What it needs first
What can be added to it
Effect of adding it
  • cost —
  • latency —
  • reliability —
  • safety —

depth 4+1 production note with numbers.