# Agent evaluation

> Canonical: https://skillalmanac.com/glossary/agent-evaluation | Last verified: 2026-11-25 | Index status: index-eligible

Agent evaluation tests an agent on defined tasks with criteria and grading logic. It can assess outputs, transcripts, tool use, safety, cost and final environment state; an agent's own success message is not sufficient evidence of success.

Also called: AI agent evals, evaluating AI agents, agent benchmark, agent evals, agent testing.

## In plain language

Checking an agent is closer to testing a new employee on real jobs than to quizzing a chatbot. You give it a task, such as booking a table or fixing a bug, let it work, then check whether the outcome is actually right: is the booking really in the system, do the tests really pass? Because an agent can behave differently each time it runs, people usually repeat each task several times. The limit is that a test set only covers the jobs you thought to include, and a grader can be fooled, so a good score is evidence rather than proof. Repeated trials consume compute, tokens and time; monetary cost depends on the runtime, provider and plan.

## Technical definition

Anthropic's engineering guide defines an eval as a test for an AI system: give it an input, then apply grading logic to its output. A task is a single test with defined inputs and success criteria, each attempt at a task is a trial, a grader is logic that scores some aspect of performance, a transcript is the complete record of a trial including tool calls and intermediate results, and the outcome is the final state in the environment. Benchmarks apply the same structure. tau-bench simulates users with language models in conversations with an agent that has domain tools and policy guidelines, and compares the database state at the end with an annotated goal state; it also proposes a pass^k metric for reliability across multiple trials. AgentBench evaluates language models as agents across 8 interactive environments.

## How it shows up when you use agents

If you run Claude Code, Codex or Cursor on your own repository, you evaluate the agent whether you plan to or not: you read its answer and decide if it worked. Agent evaluation makes that deliberate. You write a set of tasks, say what success means for each, run the agent, and grade the result with code, with a model or by hand.

What breaks when it is misunderstood: people grade the agent's final message instead of the state it left behind. Anthropic's guide gives the example of whether a reservation exists in the database, not whether the agent says it does. Others run a task once and treat the result as the agent's ability, when outputs vary between runs; the guide runs several trials per task, and tau-bench proposes a pass^k metric for reliability across trials.

Next actions. Start with a small set of real tasks from your own work. Build it with a tool such as [llm-eval-test-sets](/skills/skill-almanac/llm-eval-test-sets), keep the transcript of each trial, and compare a change against the baseline. Public benchmarks such as [SWE-bench](/glossary/swe-bench) show how others measure, and an [LLM judge](/glossary/llm-as-a-judge) can grade open-ended output, though the judge needs checking too. See [LLM benchmarks](/glossary/llm-benchmark) for the wider picture.

## Common confusions

- **Agent evaluation versus model benchmark.** A static model benchmark can use fixed questions; other model benchmarks are interactive. AgentBench frames its work as testing models acting as agents in interactive environments, and agent evals often add tools, state and multiple steps.
- **Outcome versus transcript.** The outcome is the final state of the environment. The transcript is the full record of the trial. Graders can look at either.
- **One trial versus reliability.** A single pass shows the agent can succeed once. tau-bench's pass^k metric is aimed at how reliably it behaves across multiple trials.
- **Myth.** A high score on a public benchmark predicts how the agent will do on your work. Your tasks, tools and rules differ, so test on your own.

## Worked examples in this catalogue

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An eval dataset for any LLM feature, with a checker for duplicates, missing graders, imbalance and leakage.

Why it exercises the concept: It is the test-set half of agent evaluation: tasks with graders, checked for the faults that make scores misleading.

### [agent-session-cost-review](https://skillalmanac.com/skills/skill-almanac/agent-session-cost-review)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A review of where a coding-agent session spent its tokens, by parsing the saved session transcript, using a script

Why it exercises the concept: A saved transcript is the record of a trial. This skill reads it for cost, which is one thing to track when you repeat trials.

### [How to Build an AI Agent: A Minimal Tool Loop](https://skillalmanac.com/learn/build-an-ai-agent)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A configurable illustrative Python tool-use loop with a placeholder model ID, a stub weather tool and suggested checks; the example is not evidence an agent was executed or validated.

Why it exercises the concept: The guide points to llm-eval-test-sets for test cases that show whether a change to the loop, its prompts or its tool descriptions made results worse, which is agent evaluation in small.

## Related terms

- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [LLM benchmark](https://skillalmanac.com/glossary/llm-benchmark.md)
- [LLM-as-a-judge](https://skillalmanac.com/glossary/llm-as-a-judge.md)
- [SWE-bench](https://skillalmanac.com/glossary/swe-bench.md)
- [Agentic AI](https://skillalmanac.com/glossary/agentic-ai.md)
- [Agent harness](https://skillalmanac.com/glossary/agent-harness.md)

## Sources

- [Demystifying evals for AI agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents), Anthropic (accessed 2026-11-24)
- [tau-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains](https://arxiv.org/abs/2406.12045), arXiv (accessed 2026-11-24)
- [AgentBench: Evaluating LLMs as Agents](https://arxiv.org/abs/2308.03688), arXiv (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
