Agent Harnesses Explained

/about

About this site

Agent Harnesses Explained takes apart the program that turns a chat model into an agent: the loop, the tool calls, the context budget, prompt caching, permissions, sub-agents, hooks and sandboxing, failure and recovery, the public harnesses compared, and the cost and latency of a task, one chapter each, each around an animation. It is the first of a family of agent sites (the second, Agent Protocols Explained, follows the same tool calls onto the wire; the third, Agent Context Explained, what goes into the window and how an agent remembers beyond it; the fourth, Agent Orchestration Explained, graphs, multi-agent patterns and durable execution), next to the LLM-systems sites (the Transformer Decoder Explainer, LLM Inference Explained, GPU Kernels Explained, Inference Trade-offs Explained and others, all in the header's switch).

The engine

Every animation is a run of Agent_Loop_Sim, vendored into this site at commit 05d7720 (VENDORED.json records each file's SHA-256). Its Python reference and the TypeScript port the site runs produce the same events, token for token and float for float; the site's CI regenerates its fixtures from the Python reference installed at that commit and requires the port to match them. It has:

What is real and what is illustrative

How it is checked

Go deeper

The slides behind the chapters: the Agents and Coding Agents series. Source and issues: GitHub.

Built by Brendan Lynskey