Ticket from financeRevenue on the nightly report fell 40% on Nov 22. Find out why and fix it.
Harness layers
slow fast
Switch a layer off and play the task again to see what that layer was doing. The story is scripted and the numbers are typical rather than measured, but the steps are the ones real AI agents go through.
Trace
Press Play. Each step is one hop of the signal through the harness.
Guide
What you are looking at, and how to use it
A language model on its own reads text and predicts what comes next. A harness is the software around the model that turns those predictions into real work. It chooses what the model reads, carries out the actions the model asks for, keeps notes, sets limits, checks the work, brings in a person when needed, and keeps going until the job is done. You may also hear it called a scaffold, an agent runtime or an agent framework. Coding assistants such as Claude Code are harnesses built around a model.
1 · Getting around
Drag
orbit the model (one finger on touch)
Scroll / pinch
zoom in and out
Click a ring or label
open that layer in Anatomy
Space
play or pause a run
→
step one hop forward
The page has three tabs. Use Anatomy to read about each layer, Run a task to send one job through the harness and switch layers off to see what changes, and Guide to come back here.
2 · Reading the picture
Glass core: the model. The points inside stand for what it learned in training, which does not change while it works.
Clear sphere: everything the model can read on its next request (its "context window"). It glows brighter as it fills up.
Rings and the cage: the other layers. The distance of a ring from the core shows how close that layer is to the model, from "what the model reads" on the inside to "the people it answers to" on the outside. For the order in which things happen, read the trace.
Cyan signal: the work moving through the harness, one hop per step. The dashed cyan path is the agent loop.
Amber: the harness paused to ask for approval, or refused.
Coral: harm got through.
Struck-through label: that layer is switched off.
3 · The context bar
The bar at the bottom shows everything the model will see on its next call. Each colour marks where that part came from: the system prompt, tool specs, the task, retrieved memory, tool results, evaluator feedback, or the model's own earlier output.
Read in total adds up everything the model has read across all its requests. It rereads the whole thing every time, so each step of a long task costs more than the last. Some services charge less for the repeated part, but the model still has to read it.
4 · Five things to try
Press Bare model, then Play. The model makes one call and returns one guess, which is all a model can do without a harness.
Turn on only Tools. The model can now act, and nothing stops it from dropping a database table.
Switch Guardrails off and leave everything else on. Human approval is still on, and no one is ever asked, because nothing pauses the run to ask.
Switch Evaluators off. The report is "fixed" and still 12% wrong.
Switch Memory off and compare the call count and tokens read with a full run.
5 · Terms
Token
The unit the model reads and writes, roughly three-quarters of an English word.
Context window
Everything the model can see on one call. It has a fixed maximum size.
System prompt
Standing instructions the harness puts at the start of every request. The model usually follows them, but nothing forces it to.
Tool call
A request from the model, written in a set format, asking the harness to do something for it.
Observation
What came back from a tool, added to what the model reads next.
Retrieval (RAG)
Looking something up in documents or notes and adding what was found to what the model reads.
Guardrail
A rule outside the model on what it is allowed to do or say: permissions, sandboxes, filters.
Prompt injection
Instructions hidden in something the model reads (a web page, a file, an email) that try to take it over.
Evaluator
A check on the finished work: a test, a comparison with trusted numbers, or a second model grading it.
Human in the loop
A person who sets the task, approves risky steps, or reviews the result.
Agent loop
Ask the model, do what it asks for, show it what happened, and repeat until it gives an answer or runs out of steps.
6 · What is simplified
The task is scripted in advance, and the token counts are typical sizes, not measurements. Real harnesses also have parts this picture leaves out, such as keeping logs, retrying when something fails, choosing between models, handing work to helper agents, and shortening the history on long tasks. Here, the trace panel plays the role of the log.
The steps match how real AI agents work: gather what the model needs to read, let it ask for tools in a set format, check permission before anything runs, feed the results back, check the work, and ask a person before anything that cannot be undone.
7 · Further reading
Yao et al. (2023). ReAct: synergizing reasoning and acting in language models. ICLR.
Schick et al. (2023). Toolformer: language models can teach themselves to use tools. NeurIPS.
Lewis et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. NeurIPS.
Packer et al. (2023). MemGPT: towards LLMs as operating systems. arXiv:2310.08560.
Greshake et al. (2023). Not what you've signed up for: compromising real-world LLM-integrated applications with indirect prompt injection. AISec '23.
Zheng et al. (2023). Judging LLM-as-a-judge with MT-Bench and Chatbot Arena. NeurIPS Datasets & Benchmarks.
Anthropic (2024). Building effective agents. Engineering blog, December 2024.
Model Context Protocol specification (2024–). modelcontextprotocol.io.
Made by Erika Fille T. Legara. More of her work is at erikalegara.com.
Context window · next call0 tokens · 0 calls · 0 read in total