Skip to content

Demystifying evals for AI agents

Skip →SWE-agent: agent-computer interfaces
main track #8Evals main #7corefundamentalblogrubric 11/122026 · Anthropic Engineering blog · ~30 min

Mikaela Grace, Jeremy Hadfield, Rodrigo Olivares, Jiri De Jonghe

Status

TL;DR. The essay defines the parts of an agent eval (task, trial, grader, transcript, outcome, evaluation harness, agent harness, suite), compares code-based, model-based and human graders, separates capability evals from regression evals, and gives practical advice per agent type (coding, conversational, research, computer use). It introduces pass@k (at least one of kk trials succeeds) and pass^k (all kk succeed) for non-deterministic agents, and closes with an eight-step roadmap: start with 20–50 tasks from real failures, make tasks unambiguous, balance them, isolate trials, design graders carefully, read transcripts, watch for saturation, and give the suite an owner.

Why it matters now. Every RL-trained search agent is optimised against some eval, and every deep-research leaderboard (BrowseComp, BrowseComp-Plus, GAIA) is an eval harness plus a grader. The essay’s distinctions decide what those numbers mean: whether the grader checks the final state or the agent’s claim, whether a score reflects the model or the harness, and whether one lucky run or consistent success is reported. For an IR researcher, much of this is familiar test-collection practice (clear task definitions, assessor agreement, reusable judgments) applied to multi-step agents.

Agent evals: task, trials, transcript, outcome, graders and the two ways to aggregate trials A task with inputs and success criteria is run k times as independent trials, each starting from a clean environment. In each trial the agent harness and the model act together in the environment. A trial produces a transcript, the full record of messages, tool calls and reasoning, and an outcome, the final state of the environment. An example contrasts the transcript, where the agent says the flight is booked, with the outcome, where the grader checks whether a reservation row exists in the database. Graders are code-based, model-based or human, and each grades part of the transcript or the outcome. Trial results are aggregated two ways: pass at k, at least one of k trials succeeds, which rises with k; and pass power k, all k trials succeed, which falls with k. With a 75 percent per-trial success rate and three trials, pass power k is about 42 percent. What an agent eval measures: the outcome, over many trials Task inputs + success criteria + reference × k Trial (clean environment) agent harness + model act on the environment no state shared across trials (e.g. no git history from a previous trial) Transcript full record: calls, thoughts agent says: "flight booked" Outcome final environment state: is there a reservation row? Graders (each checks part of the transcript or the outcome) code: tests, state checks · model: rubrics, an Unknown option, one judge per dimension human: calibrate the model judges · prefer grading what was produced over the path taken pass@k: at least one of k succeeds rises with k; fits tools where one success is enough. p=0.75, k=3: ≈ 98% pass^k: all k trials succeed falls with k; fits customer-facing agents that must be consistent. p=0.75, k=3: ≈ 42%
Original sketch. One task, k isolated trials, a transcript and an outcome per trial, graders on each, and two ways to aggregate.

Problem. Agents act over many turns, change the environment and behave differently on each run. A single prompt-response-grader test no longer tells you whether the agent works, or whether it works reliably.

Vocabulary (the essay’s definitions).

  • A task has inputs and success criteria. Each attempt is a trial; you run several because outputs vary.
  • A grader scores one aspect of performance, through one or more assertions (checks).
  • The transcript (trace, trajectory) is the full record of the trial: outputs, tool calls, reasoning, intermediate results.
  • The outcome is the final state of the environment. A flight-booking agent may say the flight is booked; the outcome is whether a reservation exists in the environment’s database.
  • The evaluation harness runs tasks, records steps, grades and aggregates. The agent harness (scaffold) turns a model into an agent. When you evaluate “an agent” you evaluate the harness and the model together.

Graders. Code-based graders (string match, unit tests, static analysis, state checks, tool-call checks) are fast, cheap and reproducible but brittle to valid variations. Model-based graders (rubrics, pairwise comparison) handle open-ended output but must be calibrated against humans. Human graders are the reference but slow. A task’s score can be weighted, binary (all graders must pass) or a hybrid.

Capability vs. regression. Capability evals should start with a low pass rate, giving a hill to climb. Regression evals should sit near 100%; a drop means something broke. Capability tasks the agent now passes reliably “graduate” into the regression suite.

By agent type. Coding agents suit deterministic tests (SWE-bench Verified, Terminal-Bench). Conversational agents need a second model playing the user, as in τ-bench and τ2-bench, and are graded on end state, transcript constraints (for example, finished in under 10 turns) and tone. Research agents combine groundedness checks (claims supported by sources), coverage checks (key facts present) and source-quality checks, with exact match where an answer is objective, and LLM rubrics calibrated against experts. Computer-use agents need a real or sandboxed environment and checks of page or backend state.

Non-determinism: pass@k and pass^k. With per-trial success probability pp on a task,

pass@k=1−(1−p)k,passk=pk.\text{pass@}k = 1 - (1-p)^k, \qquad \text{pass}^k = p^k .

At k=1k=1 both equal pp. With p=0.75p = 0.75 and k=3k = 3: pass@3 ≈0.98\approx 0.98 and pass^3 =0.753≈0.42= 0.75^3 \approx 0.42. As kk grows, pass@k goes to 1 and pass^k to 0. Use pass@k when one success is enough (a tool whose output a user checks) and pass^k when every run must succeed (a customer-facing agent). Two details the essay does not spell out but you need in practice: compute both per task, then average, because tasks have different pp; and from nn trials with cc successes use the unbiased counting estimates

pass@k^=1−(n−ck)(nk),passk^=(ck)(nk).\widehat{\text{pass@}k} = 1 - \frac{\binom{n-c}{k}}{\binom{n}{k}}, \qquad \widehat{\text{pass}^k} = \frac{\binom{c}{k}}{\binom{n}{k}} .

Why 20–50 tasks can be enough (illustrative arithmetic). With 40 tasks and a pass rate near 0.5, the standard error is 0.25/40≈0.08\sqrt{0.25/40} \approx 0.08, so a 95% interval is about ±16 points. Early on, changes move scores by that much, so a small set suffices; later, gains shrink and you need more and harder tasks, or paired comparisons on the same tasks.

The roadmap.

StepAdviceExample from the essay
0–1Start early with 20–50 tasks from manual checks, bug trackers and support queuesLarge effect sizes make small sets useful
2Unambiguous tasks that two experts would grade the same; a reference solution per task0% pass@100 usually means a broken task; Terminal-Bench tasks that assumed an unstated file path
3Balanced sets: test when a behaviour should and should not happenWeb-search evals with queries that need search and queries that should be answered from knowledge
4Isolated trials from a clean environmentClaude read git history left by earlier trials
5Grade outputs, not paths; partial credit; an “Unknown” option and one isolated judge per rubric dimension; make graders hard to cheatCORE-Bench grading bugs; METR threshold mismatch
6Read transcriptsTells a real mistake from a grader rejecting a valid answer
7Watch for saturationQodo’s one-shot evals missed gains on longer tasks
8Clear ownership; eval-driven developmentDedicated evals team owns infrastructure, domain experts contribute tasks

The essay ends by placing automated evals inside a “Swiss cheese” of layers: production monitoring, A/B tests, user feedback, manual transcript review and systematic human studies, each catching failures the others miss.

The essay is guidance, but it cites several concrete numbers (vendor-reported or from third parties it links):

  • CORE-Bench: Opus 4.5 initially scored 42%. After an Anthropic researcher found rigid grading (it penalised “96.12” when expecting “96.124991…”), ambiguous specs and stochastic tasks, and after switching to a less constrained scaffold, the score rose to 95%. Grader fixes and scaffold change happened together.
  • METR time-horizon tasks: some tasks asked agents to reach a stated threshold but graded on exceeding it, penalising models that followed the instruction.
  • SWE-bench Verified: the essay says models went from 40% to over 80% in one year in one place, and that scores “started at 30% this year” in another; either way it is described as nearing saturation.
  • pass^k example: 75% per-trial success gives about 42% for three-out-of-three.
  • Vendor perspective. Examples come from Anthropic’s products and partners; there is no controlled study of which practices matter most.
  • LLM judges stay a weak point. The essay recommends calibrating them against experts but gives no agreement numbers. For deep-research answers, judge errors can be larger than differences between systems.
  • Outcome checks still encode assumptions. The τ2-bench case, where the model found a policy loophole that served the user but failed the eval as written, shows that even state checks can be wrong about what success is.
  • Statistics are thin. The essay does not discuss confidence intervals, paired tests or how many trials per task are needed; the arithmetic above fills part of that gap.
  • Open question for RL. When an eval becomes a training reward, grader bugs become reward hacks. How do you keep an RL reward and a held-out eval from sharing the same blind spots?

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    An agent has a 0.75 per-trial success rate on every task. Compute pass@3 and pass^3. Now take a second agent with the same average pass@1 of 0.75, made of half tasks it always solves and half it solves with probability 0.5; compute its suite-level pass^3 and pass@3. Finally, with n = 10 trials of which c = 6 succeed on one task, give the unbiased estimates of pass@3 and pass^3 from the counting formulas, and say what the comparison of the two agents shows.

    What a strong answer covers
    • Homogeneous agent: pass@3 = 1 − 0.25³ ≈ 0.984 and pass^3 = 0.75³ ≈ 0.42.
    • Mixed agent: pass^3 = 0.5 × 1 + 0.5 × 0.125 = 0.5625 and pass@3 = 0.5 × 1 + 0.5 × 0.875 = 0.9375.
    • Same pass@1, different pass^k and pass@k: both depend on how success is spread across tasks, not just on the average, so they must be computed per task and then averaged.
    • Unbiased per-task estimates: pass@3 = 1 − C(4,3)/C(10,3) = 1 − 4/120 ≈ 0.967; pass^3 = C(6,3)/C(10,3) = 20/120 ≈ 0.167.
    • Plugging the raw rate into the formulas gives 1 − 0.4³ = 0.936 and 0.6³ = 0.216, which differ from the unbiased counts at small n.
  2. Mechanism

    Explain the difference between a trial's transcript and its outcome, using the essay's flight-booking example, and explain how the three grader types (code-based, model-based, human) should be assigned to each. Then explain why the essay advises grading what the agent produced rather than the sequence of steps it took, and what the Opus 4.5 τ2-bench loophole example adds to that argument.

    What a strong answer covers
    • The transcript is the full record (messages, tool calls, reasoning); the outcome is the final state of the environment, for example whether a reservation exists in the SQL database, regardless of what the agent said.
    • Code-based graders check outcomes and verifiable transcript facts (tests, state checks, tool parameters); model-based graders score open-ended qualities with rubrics; humans calibrate the model graders and review samples.
    • Checking an exact sequence of tool calls is brittle because agents find valid paths the designer did not anticipate; grading the result avoids punishing them.
    • In the τ2-bench example the model found a policy loophole that helped the user but failed the eval as written, showing that even outcome checks encode the designer's assumptions.
    • Partial credit captures a continuum: a support agent that verifies the customer but fails the refund is better than one that fails at once.
  3. Critique

    The essay reports that Opus 4.5 first scored 42% on CORE-Bench and 95% after grading bugs were fixed and a less constrained scaffold was used, and that METR found tasks whose grading contradicted the stated threshold. Critique what these cases imply for published agent benchmark numbers, and what you would check before trusting a reported score on a deep-research benchmark judged by an LLM.

    What a strong answer covers
    • Two changes were made at once (grader fixes and a different scaffold), so the 53-point jump cannot be split between them from the essay alone.
    • A score measures the model, the harness and the grader together; a low score can reflect grader rigidity (96.12 versus 96.124991…) or ambiguous specs rather than inability.
    • The METR case shows grading bugs can reward models that ignore instructions, which reverses the ranking, not just shifts it.
    • For an LLM-judged deep-research benchmark: read failing transcripts, check judge agreement with humans, check answer-format normalisation, and confirm tasks have reference solutions.
    • Treat any single reported score as conditional on its harness and grader until someone has read transcripts, as the essay itself recommends.
  4. What if…

    The essay warns that trials must be isolated, and reports Claude gaining an unfair advantage by reading git history left by earlier trials. Design an experiment that detects whether shared state is inflating or correlating results in your agent eval, and say which statistics would reveal each problem.

    What a strong answer covers
    • Run the same suite twice: once with a fresh environment per trial and once with the normal (possibly shared) setup, then compare per-task pass rates.
    • Inflation shows up as higher success in the shared setup, especially on later trials of the same task; plot success against trial index.
    • Correlation shows up as failures clustered in time or on the same machine; test whether failures are more concentrated than independent trials would predict.
    • Inspect transcripts for reads of artefacts the task did not provide (git logs, caches, leftover files).
    • Correlated failures from a shared limit (for example, memory) mean trials are not independent, so pass@k and pass^k computed from them are wrong.
  5. Design

    Following the essay's roadmap, design an eval suite for a search agent that answers questions over the BrowseComp-Plus corpus. Specify where the first tasks come from, how you keep the set balanced, which graders you use for the answer and for the evidence, how you split capability from regression evals, and which aggregate (pass@k or pass^k) you report and why.

    What a strong answer covers
    • Start with 20–50 tasks drawn from real failures, each with a reference answer and a reference set of evidence documents to show it is solvable.
    • Balance: include questions that need search and questions the model should answer or refuse without search, so the agent is not rewarded for always searching.
    • Graders: exact or normalised match for the short answer; code-based evidence recall against the corpus judgments; a calibrated LLM judge for groundedness with an Unknown option.
    • Capability evals start at a low pass rate; tasks the agent passes reliably graduate into a regression suite run on every change.
    • Report pass^k for reliability across runs alongside pass@1, and read transcripts of failures before trusting changes.
  6. Research idea

    The essay says 20–50 tasks from real failures are enough early on because effect sizes are large. Quantify this: estimate the 95% interval on a pass rate near 0.5 with 40 tasks, decide which differences between two agent versions you could detect, and propose how paired comparisons and repeated trials change the picture as the agent matures.

    What a strong answer covers
    • Standard error at p = 0.5 with 40 tasks is √(0.25 / 40) ≈ 0.079, so a 95% interval is about ±16 points.
    • Only large improvements (around 20 points or more) are reliably visible with unpaired comparisons at this size; small gains are noise.
    • Paired comparisons on the same tasks remove between-task variance; count tasks that flip from fail to pass versus pass to fail (a McNemar-style test).
    • Repeated trials per task reduce within-task noise from non-determinism but do not add new tasks, so they help with reliability estimates more than with generalisation.
    • As the agent matures and effects shrink, the essay's advice to grow larger and harder evals follows directly from this power calculation.

Done with this page?

Status