Stop 2 · Watch it run, in slow motion
Each press advances the real run by one step. The button label says what that step does.
Everything starts with an empty array
The panel on the right is an X-ray: it shows the real data that will be sent to the , not an interface built for people. Right now the is empty — nothing has happened yet. The system prompt at the top is the job description for the model (who it is, which tools it may use, which rules to follow). In code it is a separate parameter, sent along with every request. Remember this picture: everything that follows is just appending elements to this array.
🐣 Beginner question: Why does the array matter so much?
The API keeps no state between calls: every request is handled as if it were the first. What people call the conversation, the context, or the memory is literally this array. You keep the full history yourself and hand the whole thing over every time. Once you understand this, an agent is no longer mysterious.
These 32 lines are a complete agent. Nothing essential is left out. At the next stop you write them yourself.