Agentic Loop
The cycle of model turn, tool call, observation, repeat — the basic mechanism of an AI agent.
The agentic loop is the control structure that turns a text-predicting model into something that gets work done: the model produces a turn; if that turn contains a tool call, the host executes it and appends the result to the conversation; the model runs again with the new information; repeat until it produces a final answer or a limit is reached.
Everything characteristic of agents follows from this loop. The model can investigate — read a file, run a search, look at the result, and choose the next step based on what it found. It can also fail in loop-specific ways: repeating an action whose effect it cannot observe, or terminating early because it believes work is done.
Practical design centres on a few pressures.
Observation must reflect reality. If a write goes to one place and the corresponding read comes from another, the model sees its own change fail to appear and does it again — producing duplicates. Read and write paths must agree; see Draft and Published.
Every iteration consumes the Context Window, so long loops need artifacts stored outside it and referenced by handle.
Limits are real. Step caps and request timeouts wrap the whole turn including tool execution, so a slow tool can abort a turn before its own honest report is ever delivered.
See also6
Hand-picked in the note itself — the neighbours worth reading next.
Tool Use
Giving a model a set of callable functions so it can act on the world rather than only describe it.
Agents & Language Models24 connections
Multi-Agent Orchestration
Coordinating several model instances on one body of work, each with its own context.
Agents & Language Models10 connections
Human in the Loop
Requiring a person's judgement at chosen points in an otherwise automated process.
Agents & Language Models9 connections
Token Budget
The finite allowance of model usage a task may consume, and the design decisions it forces.
Agents & Language Models11 connections
Guardrail
A rule constraining what a model may do, enforced by prompt, schema, or surrounding code.
Agents & Language Models13 connections
Large Language Model
A neural network trained to predict text, used as a general-purpose instruction-following system.
Agents & Language Models22 connections
Related2
Nearby in the graph rather than deliberately chosen. Looser, sometimes surprising.
Linked from10
Notes elsewhere in the wiki that reach for this one.
- Context WindowAgents & Language Models
The bounded span of tokens a model can attend to in a single request.
- Draft and PublishedData & Content
Keeping an in-progress version of content separate from the live one, with all the state that implies.
- GuardrailAgents & Language Models
A rule constraining what a model may do, enforced by prompt, schema, or surrounding code.
- Human in the LoopAgents & Language Models
Requiring a person's judgement at chosen points in an otherwise automated process.
- Large Language ModelAgents & Language Models
A neural network trained to predict text, used as a general-purpose instruction-following system.
- Multi-Agent OrchestrationAgents & Language Models
Coordinating several model instances on one body of work, each with its own context.
- Streaming ResponseNetworks & Distribution
Delivering a response incrementally as it is produced rather than all at once when complete.
- SubagentAgents & Language Models
A model instance spawned by another to handle a scoped task with its own context.
- Token BudgetAgents & Language Models
The finite allowance of model usage a task may consume, and the design decisions it forces.
- Tool UseAgents & Language Models
Giving a model a set of callable functions so it can act on the world rather than only describe it.