Courses · Course 2 of 7
Evals-Driven Development for Agents
Build an eval suite from real failures: error analysis, binary graders, a judge aligned with humans, capability and regression sets, and a CI gate.
22lessons
5modules
22open now
Who it is for
Builders and PMs shipping an agent or LLM feature who cannot say whether a change made it better or worse.
Each lesson is a short simulation: you read what an agent did, a config or a tool output, make one decision and see at once whether it holds. Real terms, real commands, sourced from primary documentation.
5 modules
- Error analysis first3 lessons
- Graders4 lessons
- Datasets4 lessons
- Evaluating agents6 lessons
- Evals in the workflow5 lessons
Modules · 22 of 22 lessons open, the rest are being built
01Error analysis first
- 01Read traces before you write metricsOpenSample about 100 traces, annotate the first 30 yourself, write free-text notes, and stop at saturation.
- 02From notes to a failure taxonomyOpenGroup notes into a few failure modes and count them to pick what to fix first.
- 03Success criteria before you lookOpenWrite the outcome, hard rules and pass bar before reading outputs; let the detailed rubric come from error analysis.
02Graders
- 04Code, model or human graderOpenPick the cheapest grader that can actually tell pass from fail for each criterion.
- 05Binary pass/fail beats 1-5 scoresOpenTurn a vague Likert score into a binary judgment people agree on.
- 06Aligning an LLM judge with humansOpenMeasure judge-human agreement on labelled cases and fix the judge prompt until it matches.
- 07Read the transcripts behind the gradesOpenCatch unfair or broken graders by reading transcripts of many trials.
03Datasets
- 0820-50 tasks from real failuresOpenStart the suite small from real failures instead of waiting for a big benchmark.
- 09Synthetic data without fooling yourselfOpenGenerate varied cases along explicit dimensions and check they look like real traffic.
- 10Held-out setsOpenKeep cases the prompt was never tuned on.
- 11Benchmarks vs your own evalOpenExplain why a public leaderboard does not predict your task.
04Evaluating agents
- 12Capability evals vs regression evalsOpenKeep a hard set that starts low and a regression set that must stay near 100%.
- 13Same job, different endingOpenMeasure a loop over k runs, then choose pass@k or pass^k by what the job needs: pass@k when one good run out of k is enough, pass^k when every run acts on its own. Also in Loop Engineering.
- 14Right answer, wrong pathOpenRead and grade the trajectory, not just the final state: right tools, right order, no forbidden or wasteful actions on the way to a correct result. Also in Loop Engineering.
- 15Evaluating tools with agentsOpenRun realistic tasks against a toolset and let an agent read the transcripts and propose fixes.
- 16Evaluating retrievalOpenSeparate retrieval failures from generation failures in a RAG system.
- 17Eval saturationOpenRecognise when a suite is maxed out and add harder tasks.
05Evals in the workflow
- 18Evals in CIOpenGate merges on the regression suite and keep it fast enough to run every change.
- 19Online evals and production monitoringOpenSample live traffic for grading and alert on drops.
- 20Guardrails are not evaluatorsOpenSeparate a runtime block from an offline quality measure.
- 21Safety and adversarial evalsOpenAdd prompt-injection and misuse cases to the suite.
- 22Capstone: an eval suite for a real agentOpenFrom 50 traces to a CI-gated suite with an aligned judge.
Built on primary sources
- Anthropic, Demystifying evals for AI agents (Jan 9, 2026)
- Anthropic, Writing effective tools for agents — with agents (Sep 11, 2025)
- Hamel Husain & Shreya Shankar, AI Evals: Everything You Need to Know
- OpenAI, A practical guide to building agents (PDF)
- OWASP Top 10 for LLM Applications (LLM01 prompt injection, LLM06 excessive agency)
- Hamel Husain, A Field Guide to Rapidly Improving AI Products
- Claude docs, Define success criteria and build evaluations
- Shankar et al., Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences (arXiv 2404.12272)
- Google Machine Learning Crash Course, Datasets: Dividing the original dataset
- Kapoor & Narayanan, Leakage and the Reproducibility Crisis in ML-based Science (arXiv 2207.07048)
- Anthropic, A statistical approach to model evaluations (2024)
- OpenAI docs, Evaluation best practices
- Chiang et al., Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference (arXiv 2403.04132)
- Liang et al., Holistic Evaluation of Language Models (HELM, arXiv 2211.09110)
- Xu et al., Benchmark Data Contamination of Large Language Models: A Survey (arXiv 2406.04244)
- Singh et al., The Leaderboard Illusion (arXiv 2504.20879)
- Anthropic, Claude Cookbooks, Tool Evaluation (tool_evaluation.ipynb)
- Anthropic, Introducing Contextual Retrieval (Sep 19, 2024)
- Liu, Zhang & Liang, Evaluating Verifiability in Generative Search Engines (arXiv 2304.09848)
- Claude API docs, Citations
- OpenAI, Why SWE-bench Verified no longer measures frontier coding capabilities (Feb 23, 2026)