What an evaluation actually is, the vocabulary you need to discuss them, and the three families of graders that score agent behavior.
Atomic Unit
An eval is one piece of grading logic applied to one output. Everything else is composition.
Three Grader Families
Code-based, model-based, human. Most production suites combine all three.
Two Roles
Capability evals tell you what's possible. Regression evals tell you what still works.
What an Eval Is
An evaluation — an "eval" — is a test that applies grading logic to an AI system's output to measure success. This guide focuses on automated evals: tests that run during development without real users.
The simplest eval has three parts: a prompt, a response, and a grader. That's a single-turn eval. The moment your system uses tools, modifies state, or takes multiple turns to reach a goal, you've moved into multi-turn or agent evals — and the surface area for mistakes explodes.
Agents call tools, change environments, and adapt to what they find. Mistakes propagate. So evals on agents have to grade not just the final answer but the whole trajectory.
Frontier models also do unexpectedly creative things. Opus 4.5 once solved a τ2-Bench flight-booking problem by discovering a loophole in the policy — it failed the eval as written but delivered a better outcome for the user. Good eval design has to anticipate this.
An eval is the same as a unit test. It isn't — unit tests assert deterministic input/output equality. Evals score behavior that's probabilistic, partially correct, and often qualitative. The grader has to handle that.
Key Definitions
Every conversation about evals uses this vocabulary. Learn it once.
Task — a single test case with defined inputs and success criteria. Sometimes called a "problem."
Trial — one attempt at a task. Multiple trials of the same task give you a success-rate distribution.
Grader — the logic that scores agent performance. A task can have several graders combined.
Transcript (also trace or trajectory) — the complete record of a trial: outputs, tool calls, reasoning, and interactions.
Outcome — the final state of the environment at the end of a trial. For a support agent, "was the refund actually processed?"
Evaluation harness — the infrastructure that runs the evals end-to-end.
Agent harness (or scaffold) — the system that turns a model into an agent: tool use, memory, planning loops. Evaluation tests the harness and the model together.
Evaluation suite — a collection of tasks measuring a specific capability or behavior.
The model and the agent harness are evaluated together. A clever harness can lift a weaker model; a brittle harness can sandbag a stronger one.
Three Grader Types
Graders fall into three families. Most production suites use a mix.
Weaknesses: non-deterministic, more expensive, requires human calibration to trust.
Human graders — SME review, crowdsourced judgment, spot-check sampling, A/B testing, inter-annotator agreement — are the gold standard. Reserve them for calibration and ambiguous domains.
Use deterministic graders wherever possible, model-based graders where flexibility matters, human graders judiciously for calibration. Combine all three and score with weighted, binary, or hybrid logic.
An LLM judge will agree with experts out of the box. It usually won't — model judges drift from human judgment in subtle ways. Calibrate against a small expert-labeled set first and re-check periodically.
Capability vs Regression
Evals serve two different roles in the development loop. Both are needed; confusing them will mislead you.
Capability evals ask "what can this agent do well?" Their job is to surface what doesn't work yet. They should start at low pass rates — a hill to climb. A capability eval at 100% has nothing more to teach you.
Regression evals ask "does this agent still handle the things it used to?" They should sit near 100% pass and protect you from backsliding when you change the prompt, swap the model, or tweak the harness.
A capability eval that hits 100% gets promoted to the regression suite. Then you write harder capability evals on what's still broken. The cycle never ends.
This is why you want both in CI. Capability evals tell you which optimization moves the frontier forward. Regression evals catch the side effects of those moves on everything else.
Why Build Them
Early teams iterate by hand. You dogfood the agent, you fix bugs as users report them, and life is fine. The wheels come off at scale: users report regressions and you can't verify improvements except by trial and error. That's the inflection point.
Without evals, debugging is purely reactive: wait for complaints, reproduce manually, fix, hope nothing else regresses. With evals, the payoff compounds:
You can specify what success means — two engineers reading the same spec resolve edge-case ambiguity through the eval suite.
You can adopt new models in days, not weeks. Teams without evals face weeks of vibes-testing.
Baselines and regression tests come free — latency, token usage, cost per task, error rates, all tracked on static tasks.
Evals become the highest-bandwidth channel between product and research — they define the metric researchers can optimize against.
Claude Code added evals first for narrow behaviors (concision, file edits), then for messier things like over-engineering. The evals identified issues, guided improvements, and focused research-product collaboration. Bolt built a system running agents through static analysis, browser agents, and LLM judges within three months of starting.
Flashcards — Guide 01
Tap any card to reveal the definition. Or open the full deck to filter and shuffle across all guides.
01 · Foundations
Evaluation (eval)
tap to reveal →
A test that applies grading logic to an AI system's output to measure success. Automated evals run during development without real users.
← tap to flip back
01 · Foundations
Single-turn eval
tap to reveal →
The simplest shape: one prompt, one response, one grader. Straightforward to specify and run.
← tap to flip back
01 · Foundations
Multi-turn / agent eval
tap to reveal →
Evaluation of an agent that uses tools across many turns and modifies state. Mistakes propagate, so the grader has to score the whole trajectory.
← tap to flip back
01 · Foundations
Task
tap to reveal →
A single test case with defined inputs and success criteria. Also called a problem.
← tap to flip back
01 · Foundations
Trial
tap to reveal →
One attempt at a task. Multiple trials of the same task produce a success-rate distribution.
← tap to flip back
01 · Foundations
Grader
tap to reveal →
Logic that scores agent performance on a task. A task can combine several graders with weighted, binary, or hybrid scoring.
← tap to flip back
01 · Foundations
Transcript
tap to reveal →
Complete record of a trial: outputs, tool calls, reasoning, interactions. Also called a trace or trajectory.
← tap to flip back
01 · Foundations
Outcome
tap to reveal →
The final state of the environment at the end of a trial — e.g. "the refund was actually processed" or "the file was created."
← tap to flip back
01 · Foundations
Evaluation harness
tap to reveal →
The infrastructure that runs an evaluation suite end-to-end: spinning up environments, executing trials, aggregating scores.
← tap to flip back
01 · Foundations
Agent harness
tap to reveal →
The scaffold that turns a model into an agent: tool wiring, memory, planning loops. Evaluation tests the harness and model together.
← tap to flip back
01 · Foundations
Evaluation suite
tap to reveal →
A collection of tasks measuring a specific capability or behavior. Suites are the unit of work in CI and model upgrades.
← tap to flip back
01 · Foundations
Code-based grader
tap to reveal →
A deterministic grader: string match, binary tests, static analysis, outcome or tool-call verification. Fast and cheap but brittle to valid variation.
← tap to flip back
01 · Foundations
Model-based grader
tap to reveal →
LLM-as-judge grader using rubrics, NL assertions, pairwise comparison, or multi-judge consensus. Flexible and scales but needs human calibration.
← tap to flip back
01 · Foundations
Human grader
tap to reveal →
Expert or crowd judgment. The gold standard for subjective tasks, but slow and expensive. Use to calibrate LLM judges, not for every trial.
← tap to flip back
01 · Foundations02 · Applied
Capability eval
tap to reveal →
"What can this agent do well?" Starts at low pass rates and targets struggling areas. Improvement moves the score upward.
← tap to flip back
01 · Foundations02 · Applied
Regression eval
tap to reveal →
"Does the agent still handle previous tasks?" Sits near 100% pass and protects against backsliding when prompts, models, or harnesses change.
← tap to flip back
01 · Foundations
Reactive debugging
tap to reveal →
The pre-eval default mode: wait for user complaints, reproduce manually, fix, hope nothing else regresses. Doesn't scale past prototyping.