Evaluating Agents: Trials, Outcomes, and Reliability
- Distinguish transcripts from outcomes
- Explain why outcome grading is more robust than path grading
- Calculate and interpret pass@k and pass^k
- Separate capability evals from regression evals
- Choose checks for coding, conversational, research, and computer-use agents
Agents Are Harder to Grade
An agent chooses tools, reads results, and decides what to do next, so the same task can take different routes on different runs. Anthropic's engineering guide describes two things to record for every attempt: the transcript (the complete record of the trial, including tool calls and reasoning) and the outcome (the final state of the environment).
Grade the Outcome, Not the Path
Anthropic's advice is to grade what the agent produced, not the exact path it took, because rigid step-by-step checks are brittle and punish valid alternative routes. Its example: a booking agent might say "booked", but the real question is whether a reservation exists in the database. Where a task has several components, build in partial credit. Keep path checks for things that genuinely matter, such as a forbidden tool or a turn limit.
OpenAI's agent-evals guidance lists areas worth checking, including tool selection, correct tool arguments, handoff accuracy, instruction following, and functional correctness.
Different Agents, Different Checks
Anthropic's guide discusses four common agent types:
- Coding agents — use well-specified tasks, stable environments, and thorough tests. In practice most coding evals combine unit tests with an LLM rubric for code quality, and may add static analysis and checks on logs or state.
- Conversational agents — check the resolved state, tool-call limits, and tone with a rubric, often with a second model playing the user.
- Research agents — check groundedness (are claims supported by sources), coverage (were key facts found), and source quality. Use exact match where the answer is objectively known.
- Computer-use agents — check the resulting page or application state and backend state, for example through browser and file-system checks. The guide notes screenshots are slower but token-efficient, while DOM-based actions use many tokens.
Run Multiple Trials
Because results vary, run each task several times. Two metrics from Anthropic's guide describe what the results mean:
- pass@k — the chance of at least one success in k attempts. Use it when one success is enough.
- pass^k — the probability that all k trials succeed. Use it when consistency is essential.
The guide's worked example: an agent with 75% success per trial has a pass^3 of about 42%, because 0.75 × 0.75 × 0.75 is roughly 0.42. At k=1 the two metrics are equal, but as k grows pass@k climbs toward 100% while pass^k falls toward zero. A customer-facing agent that must behave every time needs pass^k, and a tool that generates ideas for a human to pick from may be fine with pass@k.
Capability Versus Regression
- Capability evals ask what the agent can do well and should start with a low pass rate, leaving room to improve
- Regression evals ask whether it still handles everything it used to and should sit near 100%
When a capability eval saturates, graduate its tasks into the regression suite and write harder ones. Anthropic warns that a suite at 100% gives no improvement signal.
When the Eval Is Wrong
If a strong model scores 0% across many attempts, the guide says that is most often a signal of a broken task, not an impossible one. Common causes are ambiguous instructions, an unsolvable environment, and graders that reject valid answers. Always read transcripts of failures. Anthropic's CORE-Bench example showed one model's score jumping from 42% to 95% after grading bugs and scaffold limits were fixed.
Environment Hygiene
Each trial should start from a clean, isolated environment. If trials share state, one run's leftovers can make the next run pass or fail for the wrong reason. Reset databases and files between trials, and record anything non-deterministic you cannot control, such as network responses.
Try This
Pick three agent tasks and run each five times. Record pass/fail per trial and the outcome check you used. Compute the fraction of tasks that pass all five trials, which is an empirical pass^5, and compare it with the average per-trial pass rate. Then open one failing transcript and decide: agent error, grader error, or ambiguous task?
- Grade the final state of the world, not only the agent's words
- Run several trials because agents vary
- Customer-facing agents need consistency, which pass^k measures
- A zero score is often a broken task, so read the transcripts
- Start every trial from a clean, isolated environment
Progress is saved in this browser only — clear your cache or switch device and it's gone. Create a free account and it follows you everywhere.