Evals for AI Agents
如果无法正常显示,请先停止浏览器的去广告插件。
1. Evals for AI Agents
How to Get the Most Out of Every New Model
Anmol Tukrel | Member of Technical Staff, Anthropic
November 13, 2026
ANTHROP\C
2
2. ILLUSTRATIVE EXAMPLE
Ticket #4387: “Done”, but no refund
Northwind support desk · order 4821
The planter arrived cracked. I want
a refund.
# what the logs show
t1 orders_db.lookup(4821)
t2 never called payments.refund()
t3 “Done. Refund issued.”
Done. I’ve issued your refund for order 4821.
You’ll see it in 3–5 business days.
11 days later · same customer · CSAT 1/5
No refund ever arrived. I’ve filed a chargeback.
ANTHROP\C
37 tickets, same shape: the agent
confirmed an action it never took.
3
3. A SECOND PROBLEM
WHAT TEAMS OFTEN DO INSTEAD
Model ships
Later that day
3 weeks
Spot-check, ship on vibes
Wait three weeks, fall behind
THE FIX
Evals on your real agent
and real failures
ANTHROP\C
An answer the day a
model drops
4
4. QUICK POLL
Where are you today?
4
3
2
1
Full suite, runs on
every change
Partial suite,
not end-to-end
Manual spot-checks
No automated evals,
just vibes
ANTHROP\C
5
5. Models are capable. The work is around them.
What you can do
With some effort
Agent harness
Product fit
Evals
Naive approach
Today
ANTHROP\C
Chart shape is illustrative, not data
6
6. THE NEXT 30 MINUTES
What we’ll cover
123
Part 1Part 2Part 3
From single-turn evals
to agent evalsBuild your first eval
set from production
failuresDecide on a new
model, fast
ANTHROP\C
7
7. PART 1 · FROM SINGLE-TURN EVALS TO AGENT EVALS
Single-turn evals can miss what agents do
What a single-turn eval grades
What an agent actually does
Reason
Call a tool
State changes
Adapt and repeat
One question
Right outcome
One response
Compare to a
golden answer
Many valid paths to the right outcome
Request
Mistakes compound across turns
Wrong outcome
The outcome is the product: check what actually happened.
ANTHROP\C
8
8. PART 2 · BUILD FROM PRODUCTION FAILURES
Real failures become tests, and the loop repeats
A new frontier model ships
IncidentOne taskA suiteRun trialsDecide
Ticket #4387:
“refund issued”,
no tool callFreeze input,
assert outcomeCluster failures,
expand
conditionsEach task several
times, gradedShip, hold,
or tune
Fixes ship to production · new failures become new tasks
ANTHROP\C
9
9. PART 2 · BUILD FROM PRODUCTION FAILURES
Turn one incident into one test
Ticket #4387
1
Freeze the input
Fixture db_0712: a snapshot
id: refund_4821
THE ORDER
Order 4821, when the
customer wrote in
THE FAILURE
prompt: "refund order 4821"
2 In code: refund_issued, no_double_pay
Define the assertion
Judge: tone_ok, cites_policy
“Done. Refund issued.”
never called
payments.refund()
# task.yaml
fixture: db_0712
expect:
- refund_issued
- no_double_pay
and dedupe
3 Cluster
Not 37 copies of one bug
THE PATTERN
judge: [tone_ok, cites_policy]
trials: 5
Buggy version: FAIL, as it should
and approve
4 Verify
Rerun on the buggy version
A person approves it
37 tickets, one shape
ANTHROP\C
10
10. PART 2 · BUILD FROM PRODUCTION FAILURES
Cover conditions, not tickets
258 escalations
9 failure patterns
31 tasks
One task per distinct condition, plus tricky edge cases the agent should know.
ANTHROP\C
11
11. PART 2 · BUILD FROM PRODUCTION FAILURES
The harness tests your real agent, not a copy
Every task
~30 tasks × 5 trials
Your real
agent
Fresh start each run
Grade the
outcome
By code, a judge
or a person
Run your real agent many times. Grade what actually happened.
ANTHROP\C
12
12. PART 2 · BUILD FROM PRODUCTION FAILURES
Hold everything steady except the agent
THINGS YOU CONTROLTHINGS YOU DON’T CONTROLWHEN NEITHER WORKS
FreezeReplayTolerance band
Test accounts,
snapshot databasesCall the API once,
save the responseAdjust the grader,
not the input
A pinned clockServe it on every runPrice within a % of
the tool’s value
ANTHROP\C
13
13. PART 2 · BUILD FROM PRODUCTION FAILURES
Use code where you can, a judge otherwise
Code-basedLLM-as-judgeHuman
Fast, cheap, objectiveFlexible and scalableExperts curate and spot-check
Best forBest forBest for
A verifiable right answerOpen-ended output at scaleBuilding the task set
Watch outWatch outWatch out
Rigid: can fail a good answerHas its own error rateSlow and expensive:
never a per-run gate
ANTHROP\C
14
14. PART 2 · BUILD FROM PRODUCTION FAILURES
Separate asserts show what broke
shipping_quote_014 · fixture acct_9931One assert per reasoning step
I ordered a 14 kg planter. What will
delivery cost?1 Right inputs?
MODEL RESPONSE · ABRIDGED
14 kg ships at the standard rate.
At $8 per kg, about $112.
Golden answer: freight rate, about $70
assert m.kg == 14
2 Right shipping rule?
assert m.rule == "freight"
3 Right math for the rule it chose?
assert m.cost == round(m.kg * m.rate)
4 Right final answer?
assert abs(m.cost - 70) <= 1
FAIL @ rule_selection · 2/4 asserts · trial 2/5
ANTHROP\C
15
15. PART 2 · BUILD FROM PRODUCTION FAILURES
With a model judge, use yes-or-no criteria
planter_choice_007 · judge: llmRubric: one judge call per criterion, scored yes or no
Should I buy the terracotta planter or the
glazed one for my balcony?Frames the tradeoff
MODEL RESPONSE · ABRIDGED
Terracotta dries out faster, glazed holds
water longer, so they’re close. I’d go with
glazed, add a drainage layer, then…
No golden answer: graded by rubric
judge: “Weighs drainage against moisture.”
Accounts for winter frost
judge: “Never weighs frost damage.”
Calibrates confidence
judge: “No overclaimed certainty.”
Clear and actionable
judge: “Concrete steps.”
1
0
1
1
FAIL @ frost_risk · rubric 3/4 · trial 2/5
ANTHROP\C
16
16. PART 2 · BUILD FROM PRODUCTION FAILURES
Grade the outcome, not the reply
Trial 1: the bug
“Done. Refund issued.”
refunds[4821]
(no row)
Gate
FAIL
Trial 2: a different path, and the refund is made
“Done. Refund issued.”
refunds[4821]
{status:"issued",
amount:89.00}
Same reply. The end state decides.
Don’t score the exact tool sequence
ANTHROP\C
Pass or fail on the outcome
Track
PASS
Compare versions over time
Flag
Route odd traces to a person
17
17. PART 2 · BUILD FROM PRODUCTION FAILURES
Measure more than quality
Quality
ANTHROP\C
Cost
Latency
18
18. PART 2 · BUILD FROM PRODUCTION FAILURES
Eval numbers can look confident and be wrong
AGENT UNDER TESTENVIRONMENTGRADERSRESULTS
Testing a copy of
your agentShared state
between trialsA suite with no
headroom
You measure what
you don’t shipScores can look better
than they areGrading the
confirmation,
not the state
The answer leaked
into the fixture
Reject those cases
at intake
This is ticket #4387
Gameable graders
Pair each should-do
with a should-not
Tasks stuck at
0% or 100% can’t
show improvement
0 passes in 100 tries
Usually a broken task
Read transcripts before trusting any number.
ANTHROP\C
19
19. PART 2 · BUILD FROM PRODUCTION FAILURES
Keep hard tasks apart from must-pass tasks
Capability suite: the hill you climb
Hard tasks, low pass rate by design
Pass rate: low but rising
Regression suite: the floor you hold
Tasks
graduate
once they
pass
reliably
Frozen tasks, must keep passing
Pass rate: flat, near 100%
100%100%
0%0%
New model solves your hard tasks? Add harder ones.
ANTHROP\C
Chart shapes are illustrative, not data
20
20. QUICK POLL
How long to decide to switch to a new model after release?
1 Same day or same week
2 A few weeks
3 A month or more
4 We don’t really re-evaluate models
ANTHROP\C
21
21. PART 3 · DECIDE ON A NEW MODEL, FAST
A new model can change what works
Prompts can
act
differently
ANTHROP\C
Settings can
stop working
Without evals,
you can’t tell
22
22. PART 3 · DECIDE ON A NEW MODEL, FAST
Check a score before you believe it
Variant A
Is the difference noise?
64%
Seven points on a small suite is often
within variance.
Is the judge wrong?
Variant B
The score is only as good
as its grader
71%
Is the suite stale?
No longer reflects production
40%
50%
60%
70%
80%
90%
100%
Each dot: one simulated rerun. Shaded band: where A and B overlap.
ANTHROP\C
Illustrative simulation: 31 tasks, one independent trial each
23
23. PART 3 · DECIDE ON A NEW MODEL, FAST
Legora BAR, October 2026: quality by task family, relative to
the 17-model average
Opus 5.5
Orange line, relative to the 17-model average for that task type (0%, the
dark line)
Analyze / Answer+4%
Extract+3%
Compare
+11%
Draft
Review
+18%
+1%
Edit
Summarize
+8%
+33%
Source: Legora, BAR (Benchmark for Agentic Reasoning), October 2026 · legora.com/bar/oct26
ANTHROP\C
24
24. PART 3 · DECIDE ON A NEW MODEL, FAST
Five steps to ship, hold, or tune
123Point your
harness at the
new modelRun the
regression suiteRun the
capability suiteRead the
regressionsShip, hold,
or tune
The floor: what
can’t breakThe ceiling: what just
got unlockedOpen the transcriptsWith latency and
cost per task
Same prompts, tools,
graders
Regression suite
Capability suite
Your tasks × trials
ANTHROP\C
4
5
Read these transcripts first
Ship, hold, or tune
Grid is illustrative
25
25. PART 3 · DECIDE ON A NEW MODEL, FAST
Claude Code can help with the upgrade
Helpers in Claude Code
/claude-api migrate/claude-api upgrade
code changesthe SDK
/claude-api api-version/claude-api prompt-audit
the API versionflags older-model instructions
ANTHROP\C
26
26. PART 3 · DECIDE ON A NEW MODEL, FAST
Expect variance so run multiple trials
Same input, different result
First 3 all pass?
pass@k: at least one of k trials succeeds
100%
75% per trial
pass^k: all k trials succeed
50%
42% pass^3
Nine sets of five trials of one task, 75% per trial
0%
k=1
ANTHROP\C
k=2
k=3
Lines are exact at 75% per trial; the dots at left are a simulation
k=4
k=5
27
27. PART 3 · DECIDE ON A NEW MODEL, FAST
Check your judge against people
1234
Write binary criteriaHand-label
50–100 outputsJudge grades the
same setCompare agreement
Real transcripts,
including a negative setSame rubric; can
answer “Unknown”
One judge call each
Below ~85% per criterion:
tighten or split
Your judge is a model call too
Keep the judge
model fixed.
ANTHROP\C
Don’t use the model
you’re testing (and
seperate context)
Use structured outputs
for the verdict.
85% is a rule of thumb, not a standard
You have to judge your
judge too!
28
28. PART 3 · DECIDE ON A NEW MODEL, FAST
When a model solves your hard tasks, refresh your suite
Hard task enters the
capability suite
If a new model
solves itPromote it to the
regression suite
Pass rate can jump when
you test a new modelSolved becomes the
new floor
Backfill harder tasks
So there’s headroom
to measure
The task lifecycle keeps the suite useful as models change.
ANTHROP\C
29
29. YOUR NEXT STEP
Next week: start with 20 real failures
Day 1Days 2–3Days 4–5
Pull 20 real failuresWire them to your agent loopTry the newest model
From tickets and thumbs-downs,
one row each.End to end, with code asserts
and judge rubrics.Five trials per task.
Read the regressions.
To get a first eval started, in Claude Code v2.1.259 or later:
$ claude update
> /claude-api build-evalInterviews you, builds an eval, stops for approval
> /claude-api hillclimbOne change at a time, with held-back test cases
ANTHROP\C
30
30. FURTHER READING
Sources and further reading
anthropic.com/researchanthropic.com/researchanthropic.com/researchplatform.claude.comclaude.dev/blog
Demystifying evals
for AI agentsBuilding effective
AI agentsWriting effective
tools for AI agentsMigration guideStart hereArchitecture patternsIncludes running evalsAutomating
eval design and
hillclimbing
with Claude
What changes
between models
How build-eval works
ANTHROP\C
31
31. Thank you
Q&A
YOUR NEXT STEP
/claude-api build-eval
MORE TIPS & TRICKS
@anmoltukrel on X
Demystifying evals
for AI agents
ANTHROP\C
Migration guide
Automating eval
design and
hillclimbing
32