Definitions

How computers for agents work, from the hardware to the sandbox.

Definitionsc

Context

Context is what the harness assembles for each model call, including the goal and the history so far, and it is finite and expensive.

Context is the full input that a language model receives on one call. In an agent, the harness builds this input before each call. It usually includes system instructions, the goal of the task, tool descriptions, and the history of earlier steps. The model sees only this context, so anything left out is unknown to it for that call.

In the agent loop, the harness appends the result of each action to the history. The context therefore grows with every pass through the loop. Each model has a context window, which is the maximum number of tokens it can accept on one call. Longer context also costs more, because providers charge for input tokens and processing takes more time. Quality can drop when the relevant facts are buried in a very long input.

Because context is finite and expensive, harnesses manage it actively. Common methods include summarizing old steps, dropping stale tool output, and loading files only when needed. Agents that run code in a sandbox can keep large data in the sandbox and send only short results back to the model. Retrieval systems select relevant documents instead of including everything. Context management is a core design problem for long-running agents.