How an AI agent thinks, acts, observes, and learns from mistakes
Illustration companion to Issue 8: The Agent Awakens
1
Agent Architecture — The Full Pipeline
A complete view of how an AI agent processes a request from start to finish. Follow the arrows from the user's prompt through reasoning, tool use, and back again.
The agent is an LLM in a loop. It receives input, reasons about what to do, calls a tool, observes the result, and decides whether to call another tool or respond. This Think-Act-Observe cycle is the beating heart of every AI agent.
2
The Context Window — What the Agent Remembers
Everything the agent knows lives inside the context window — a long sequence of tokens. Every message, every tool call, every result gets appended. Here is what the context looks like mid-task:
3
Tool Call Anatomy — One Tool Call, Step by Step
When the LLM decides to use a tool, it outputs a structured JSON object. Here is exactly what happens during a single edit_file call:
4
Error Recovery — Learning from Failure
The true power of an agent is not that it never makes mistakes — it is that it can recognize failure and try a different approach. Here is an agent recovering from an error:
5
Agent vs. Chatbot vs. Autocomplete
Three levels of AI assistance. Each one builds on the last, adding more perception, more action, and more autonomy.
An agent is not a different model — it is the same LLM, wrapped in a loop, with access to tools. The intelligence comes from the model. The agency comes from the architecture: the ability to act on the world, observe the results, and keep going until the task is done.