---
title: "Demystifying evals for AI agents"
description: "Agent evaluations should grade both the final environment outcome and the full transcript of tool calls, turns and reasoning, because multi-turn agents modify state and compound mistakes."
url: "https://swe.quest/articles/demystifying-evals-for-ai-agents-fa56ac3233812721"
canonical: "https://www.anthropic.com/research/demystifying-evals-for-ai-agents"
source: "Anthropic Engineering"
published: "2026-01-09"
difficulty: "medium"
kind: "How-to"
reading_minutes: 26
tags: ["evals","ai-agents","llms","testing"]
---

# Demystifying evals for AI agents

A post on [Anthropic Engineering](https://swe.quest/sources/anthropic.md), published 2026-01-09, 26 min read, How-to. Original: [https://www.anthropic.com/research/demystifying-evals-for-ai-agents](https://www.anthropic.com/research/demystifying-evals-for-ai-agents)

## Summary

Agent evaluations should grade both the final environment outcome and the full transcript of tool calls, turns and reasoning, because multi-turn agents modify state and compound mistakes. The post lays out a practical structure—tasks, trials, graders, harnesses and suites—with code-based graders for deterministic checks, model-based graders for nuanced rubrics and human graders for calibration. It recommends capability evals that start at low pass rates and regression evals that stay near 100%, and shows coding and conversational agent examples that combine unit tests, state checks, LLM rubrics and tool-call assertions. The takeaway is to build an eval suite early: it clarifies success criteria, enables fast model upgrades and provides baselines for latency, token usage, cost and error rates.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- AI agent basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- LLM evaluation concepts ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- tool calling

## Keywords

Claude Code, SWE-bench Verified, Terminal-Bench, τ-Bench, τ2-Bench, MCP, Agent SDK

## Related posts

- [Agents are users, so your software needs evals](https://swe.quest/articles/agents-are-users-so-your-software-needs-evals-ae7971006fec5a38.md): Vercel · 2026-11-16 · Medium · 19 min read · Evaluation, AI agents, Testing, LLMs
  Agents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored.
- [The Most Common Questions About Agent Evals, Answered](https://swe.quest/articles/the-most-common-questions-about-agent-evals-answered-40ebbb294f8cf253.md): LangChain · 2026-10-15 · Medium · 15 min read · Evaluation, AI agents, Observability, LLMs
  Agent evals score agent runs to handle nondeterminism, multiple valid answers and variable execution paths: start by reading traces, pick one behavior, build a 10-20 example dataset from real traces, run a baseline experiment, and fold new failures back in.
- [What Is Eval-Driven Development? How to Improve AI Agents](https://swe.quest/articles/what-is-eval-driven-development-how-to-improve-ai-agents-b74ea0bdd23f7298.md): LangChain · 2026-11-12 · Medium · 11 min read · Evaluation, AI agents, Testing, LLMs
  Eval-driven development adapts test-driven development to non-deterministic agents: write a pass/fail spec for one behavior, build a dataset and evaluator before implementing, run a baseline, then hill-climb by comparing experiments per example.
- [How to build and maintain an agentic evaluation](https://swe.quest/articles/how-to-build-and-maintain-an-agentic-evaluation-c4d1ca50835658f2.md): Hugging Face · 2026-11-23 · Medium · 35 min read · Evaluation, AI agents, LLMs, Open source
  Agentic evaluations depend on far more than the model: task instructions, agent harness, environment, verifier and traces can each move a score, with harness changes alone shifting Terminal-Bench accuracy by up to 29.9 points.
- [Why human insight is a strategic advantage for building better agents](https://swe.quest/articles/why-human-insight-is-a-strategic-advantage-for-building-better-agents-376e4fe4ac199796.md): LangChain · 2026-11-04 · Easy · 7 min read · Evaluation, AI agents, Observability, LLMs
  Human review of agent traces supplies the domain judgment that automated evals lack, and it works best when reviewers see the full multi-turn conversation rather than an isolated step.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
