02
Context
Everything the model gets to see before it answers. Most of it is pulled off your file system: AGENTS.md, skills, source files, and the output of earlier tool calls. This layer is where context comes from, not the context window itself; the harness decides what to load and in what order.
03
Harness
The code wrapped around the model that turns it into an agent. It runs one loop: read context, call the model, evaluate what came back, run the tools it asked for, then feed the results in and go again until the work is done. Claude Code, Codex, and Nori are each a harness.
08
Inference
The service that turns your tokens into the model's tokens. It reads the whole prompt in one pass, then generates one token at a time, batching your request alongside others to keep the hardware busy. Producing each new token normally means reading back over everything before it, so the service saves what that reading produced (two vectors, a key and a value, for every token so far) and reuses them instead. That store is the KV cache. It is why the second token is much cheaper than the first, and why a long conversation costs memory as well as time: the cache grows with every token in it.
Full stack overview
Complete system
One request crossed the application you shape, the provider boundary, and the infrastructure that evaluated the model.
Application-owned
Interface
Context
↔
Harnessread · evaluate · tool
↔
Tools
Provider-owned
APIprovider boundary
Hyperscaler
Caching Service
req_7f3a · continuous route loop
Created by Clifford and Gaurav at Nori Agentic