Curated summary
Demystifying evals for AI agents
Evals, meaning automated tests that run an input through an agent and grade the output, let teams ship AI agents with confidence. Without them, teams get stuck in reactive loops, catching problems only in production, where fixing one failure often creates another. Because agents act autonomously over many turns, they are harder to evaluate than single-turn models. The authors share practices from internal work and customer deployments, arguing that evals should be a core part of agent development and that their value compounds over the agent's lifecycle.
Anatomy of an Evaluation
- An eval gives an AI system an input and applies grading logic to its output. The post focuses on automated evals that run during development without real users.
- Core terms:
- Task: a single test with defined inputs and success criteria.
- Trial: one attempt at a task. Multiple trials account for output variability.
- Grader: logic that scores one aspect of performance. A task can have several graders, each with multiple assertions.
- Transcript: the full record of a trial, including tool calls, reasoning, and intermediate results.
- Outcome: the final environment state. A flight-booking agent may say "Your flight has been booked," but the real outcome is whether a reservation exists in the database.
- Harness: the infrastructure that runs evals end to end. The agent harness is the system that lets a model act as an agent, and evaluating an agent means evaluating the harness and model together.
- Frontier models can exceed the limits of static evals. Opus 4.5 solved a τ2-bench flight-booking task by finding a policy loophole that produced a better outcome for the user, though it "failed" the eval as written.
Why Build Evals Early
- Teams can get far with manual testing and intuition, but the breaking point comes when users say the agent feels worse and the team has no way to verify changes beyond guess-and-check.
- Without evals, teams can't separate real regressions from noise, test changes against hundreds of scenarios before shipping, or measure improvements.
- Claude Code began with fast iteration on feedback, then added evals for concision, file edits, and over-engineering. Combined with monitoring and A/B tests, these evals guided improvements.
- Descript evolved from manual grading to LLM graders calibrated by humans, and now runs separate quality and regression suites. The Bolt team built an eval system within three months of launch, using static analysis, browser agents, and LLM judges.
- Evals resolve ambiguity in specs, since two engineers can read the same spec and interpret edge cases differently.
- Evals speed up adoption of new models. Teams with evals can test a new model in days rather than weeks.
- Evals provide baselines and regression tests for latency, token usage, cost per task, and error rates, and they give product and research teams a shared set of metrics.
Grading Agents
Grader types
- Code-based (string matching, binary tests, static analysis, tool-call and transcript checks): fast, cheap, objective, and reproducible, but brittle and limited for nuanced or subjective tasks.
- Model-based (rubric scoring, natural-language assertions, pairwise comparison, reference-based evaluation, multi-judge consensus): flexible, scalable, and good for open-ended output, but non-deterministic, more expensive, and in need of human calibration.
- Human (SME review, spot-checks, A/B testing, inter-annotator agreement): the gold standard and the calibration source for model graders, but expensive and slow.
- Scoring can be weighted (combined scores must clear a threshold), binary (all graders must pass), or hybrid.
Capability vs. regression evals
- Capability evals start at low pass rates and give teams something to climb toward.
- Regression evals should stay near 100% and protect against backsliding.
- Once a capability eval reaches a high pass rate, it can "graduate" into a regression suite that runs continuously.
Coding agents
- Deterministic graders work well: does the code run, and do the tests pass? SWE-bench Verified and Terminal-Bench use this approach. LLM performance on SWE-bench Verified rose from about 40% to over 80% in a year.
- Transcripts can be graded too, for code quality heuristics and tool-use behavior.
- The post's example for an authentication-bypass fix combines unit tests, an LLM rubric for code quality, static analysis (ruff, mypy, bandit), state checks on security logs, required tool calls, and metrics such as turns, tool calls, tokens, and latency.
Conversational agents
- Success is multidimensional: ticket resolved (state check), finished in under 10 turns (transcript constraint), and appropriate tone (LLM rubric).
- A second LLM often simulates the user. τ-Bench and τ2-Bench use this approach across retail and airline scenarios, and Anthropic uses it in alignment auditing.
Research agents
- Quality depends on context, so there is no simple pass/fail. Graders can check groundedness (claims supported by sources), coverage (key facts included), and source quality (authoritative sources, not just the first retrieved).
- Exact match works for objective questions. LLM-based rubrics need frequent calibration against expert judgment.
- BrowseComp tests whether agents can find hard-to-locate information on the open web.
Computer use agents
- These agents operate through screenshots, clicks, and keyboard input. WebArena and OSWorld check outcomes through URL and page state, backend database state, file system state, and app configs.
- DOM-based interaction is fast but token-heavy, while screenshots are slower but more token-efficient. Summarizing Wikipedia works better with DOM extraction, while shopping for a product works better with screenshots. Claude for Chrome uses evals to check that the agent picks the right approach for each context.
Handling Non-Determinism
- Each task has its own success rate, and results vary across runs.
- pass@k measures the chance of at least one success in k attempts. It suits tools where one good result is enough. pass@1 matters most for coding.
- pass^k measures the chance that all k trials succeed. It suits customer-facing agents that need consistency. An agent with a 75% per-trial success rate passes three consecutive trials only about 42% of the time.
A Roadmap to Trustworthy Evals
Collecting tasks
- Start early with 20–50 simple tasks drawn from real failures. Early changes have large effects, so small samples are enough. Waiting too long makes it harder to reconstruct success criteria.
- Begin with manual pre-release checks and common user tasks. In production, convert bug reports and support tickets into test cases, prioritized by user impact.
- Write unambiguous tasks. Two domain experts should reach the same pass/fail verdict. Each task should come with a reference solution that proves it is solvable. A 0% pass rate across many trials usually signals a broken task, not an incapable agent.
- Build balanced problem sets. Testing only when the agent should act produces over-triggering. For Claude.ai web search, the team tested both when to search and when to answer from knowledge, and refined the balance over many rounds.
Designing the harness and graders
- Keep the eval agent close to the production agent. Start each trial from a clean, isolated environment. In one case, Claude gained an unfair advantage by reading git history from earlier trials, and shared resource limits can cause correlated failures.
- Grade what the agent produced, not the exact steps it took. Rigid sequence checks punish valid creative solutions.
- Give partial credit for multi-step tasks, since identifying a problem and verifying a customer is better than failing immediately.
- Calibrate LLM judges against human experts. Give them an "Unknown" option to reduce hallucinations, and grade each dimension with a separate judge.
- Watch for grading bugs. Opus 4.5 initially scored 42% on CORE-Bench because the grader rejected "96.12" against an expected "96.124991…" and the task specs were ambiguous. After fixes, it scored 95%. METR found time-horizon tasks that penalized models for following instructions.
- Make graders resistant to hacks, so passing requires actually solving the problem.
Maintaining evals
- Read transcripts regularly. They reveal whether a failure reflects a real agent mistake or a grader that rejected a valid solution.
- Watch for saturation. A suite at 100% only catches regressions. SWE-bench Verified approaching 80%+ means gains now show up as small score increases, which can be misleading. Qodo initially underrated Opus 4.5 because their evals missed longer, more complex tasks, so they built a new agentic framework.
- Don't trust scores until someone has read the transcripts. Revise evals that grade unfairly, use ambiguous tasks, penalize valid solutions, or constrain the model.
- Assign ownership. Dedicated eval teams can own the infrastructure, while domain experts and product teams contribute tasks. PMs and salespeople can contribute eval tasks via Claude Code PRs.
- Practice eval-driven development. Define capabilities as evals before the agent can meet them, then iterate until it does.
Combining Evals with Other Signals
Automated evals complement production monitoring, A/B testing, user feedback, manual transcript review, and systematic human studies. Each has trade-offs. Automated evals are fast and reproducible but can create false confidence if they don't match real usage. Production monitoring reveals real behavior but is reactive. A/B testing measures real outcomes but is slow. User feedback is sparse and skewed toward severe issues. Manual review builds intuition but doesn't scale. Human studies provide gold-standard judgments but are expensive. Automated evals suit pre-launch and CI/CD, monitoring suits post-launch, A/B testing suits high-traffic changes, and human reviews calibrate model graders.
Evaluation Frameworks
Open-source and commercial options include Harbor for containerized agent trials, Braintrust for offline evals and production observability, LangSmith and Langfuse for tracing and evals, and Arize Phoenix and AX for LLM observability. The authors advise picking a framework quickly and spending the effort on high-quality test cases and graders.
Conclusion
Teams without evals get stuck fixing one failure after another, while teams that invest early find that failures become test cases, test cases prevent regressions, and metrics replace guesswork. The practical advice is to start early with realistic tasks drawn from real failures, define unambiguous success criteria, combine grader types, keep tasks challenging, iterate on the evals themselves, and always read the transcripts. The field is still young, and the authors expect to adapt these techniques as agents take on longer tasks, multi-agent systems, and more subjective work.
Related reading
Continue with another curated summary.