How it works · 9 of 27 Advanced
How do you evaluate an AI agent?
Grade the path, not just the finish
Agent evals: An agent is graded on the records it leaves and the rules it keeps on the way, not on its final reply, and each task is run several times, because an agent that succeeds once often does not succeed every time.
Loading the animation…
Say it like this An agent eval checks the end state and the rules on the way, not just the final reply, and runs each task several times, because an agent that succeeds once may not succeed every time.
Under the hood — for builders
- Worked example: grade the records, not the reply
- Microsoft's ThinkingBox, 507 business scenarios: "an agent can report 'Done, your ticket is closed' while leaving the record wrong", so it "checks the records the agent leaves, not its reply".
- ThinkingBox: right on every try
- From our paper: one model was right on every try in only 82 of 507 scenarios, another in 241.
- τ-bench does the same
- τ-bench (Yao et al., 2024) checks an agent by "compar[ing] the database state at the end of a conversation with the annotated goal state", not by reading its reply.
- Terms: the run
- Agent: a model that takes several steps with tools (look up, click, update a record). Trial: one run of one task. Transcript: the record of every step.
- Terms: the score
- End state: what is in the systems when it stops. pass@k: at least one of k trials succeeds. pass^k: all k succeed.
- Our arithmetic: once is not every time
- Agent B succeeds 60% of the time. Allowed three tries, at least one succeeds 93.6% (pass@3); all three, 21.6% (pass^3). At eight runs, 1.7%.
- Real models show the same shape
- τ-bench: gpt-4o "succeed[s] on <50% of the tasks" and "pass^8 <25% in retail".
- Path or outcome?
- Anthropic's guide: "it's often better to grade what the agent produced, not the path it took", since an agent may find a better route.
- What the path is checked for
- Rules: no step through the no-entry zone (a refund over the limit, a record it must not touch).
- Passing by the wrong route
- Anthropic reports Claude "gaining an unfair advantage on some tasks by examining the git history from previous trials": a pass the test never meant to allow.
- How to run it
- A sandbox copy of real systems · per task, a goal end state and forbidden actions · end state graded by code, rules from the transcript · 3–8 trials.
- Measure it
- End-state success · pass^k at the k your users meet · rule breaks per 100 tasks · steps and cost per success · tasks whose result changes between runs (E2).
- Watch out
- Grading the final message ("Done!") · rewarding one exact route over a better one · one trial per task · sandboxes that leak answers from earlier trials.
- Sources
- Yao et al., "τ-bench", arXiv 2406.12045 (2024) · Anthropic, "Demystifying evals for AI agents" · our paper microsoft-thinkingbox-agent-test-bench · read 21 Nov 2026 · our arithmetic, 21 Nov 2026.
What happens in the agent evals animation, step by step?
- Two AI agents get the same job: fetch parcel 14 to the dock. Both arrive. A test that only checks the finish passes both.
- Your turn: tap a painted trail on the floor to see the route each agent took.
- A went round by the top aisle. B drove straight through the no-entry zone, where people work, and knocked a box off a rack. Same finish, a failed job.
- Now run the same job five times. A takes the same route every run. B takes a different route each time and arrives three times in five.
- Passing once is 60% for B; passing all three runs in a row is 22%. Microsoft's ThinkingBox found one model right every time on just 82 of 507 scenarios.
- Grade the records it leaves, the rules on the way, and every run. Next: the agent passes its tests; how do you try it on real users safely?
What everyday example explains agent evals?
Two delivery robots, same parcel, different routes. The parcel at the dock is the end state, the painted trail is the transcript, the no-entry zone is a rule, and five replays are five trials.
Why should a team care about agent evals?
Before an agent is allowed to act on real records, a team must decide what counts as a pass: a reply, an end state, or an end state reached without breaking a rule, every time; the cheapest test passes agents that fail customers.