---
title: "Eval-driven development practice for AI agents | Agentic Pattern Language"
description: "Write evals first, run them on every change, and turn each reported failure into a test case. Sourced from Shankar et al., Anthropic, and OpenAI."
url: https://agenticpatternlanguage.com/patterns/eval-driven-development/
---

19 [Practices](https://agenticpatternlanguage.com/#practices)

# Eval-driven development

Write evals first, run them on every change, and turn each reported failure into a test case.

Also called Continuous evaluation, EDD

EY HH Shankar et al., Anthropic, OpenAI, Eugene Yan, Hamel Husain

[How to read this](https://agenticpatternlanguage.com/notation/)

## Alternatives

* [Test-first development](https://agenticpatternlanguage.com/patterns/test-first-development/)

## The problem

Without evals, you fix what users report and cannot tell whether the fix broke something else.

> Absent evals, debugging is reactive: wait for complaints, reproduce manually, fix the bug, and hope nothing else regressed.

Anthropic [Demystifying evals for AI agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) Jan 9, 2026

> Addressing one failure mode led to the emergence of others, resembling a game of whack-a-mole.

HH Hamel Husain [Your AI Product Needs Evals](https://hamel.dev/blog/posts/evals/) Mar 29, 2024

## Therefore

> Set up continuous evaluation (CE) to run evals on every change, monitor your app to identify new cases of nondeterminism, and grow the eval set over time.

OpenAI [Evaluation best practices](https://platform.openai.com/docs/guides/evaluation-best-practices)

> Converting user-reported failures into test cases ensures your suite reflects actual usage; prioritizing by user impact helps you invest effort where it counts.

Anthropic [Demystifying evals for AI agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) Jan 9, 2026

> First, write some evals; then, build systems that pass those evals.

EY Eugene Yan [An LLM-as-Judge Won't Save The Product—Fixing Your Process Will](https://eugeneyan.com/writing/eval-process/)

## In use

Claude Code

> Claude Code started with fast iteration based on feedback from Anthropic employees and external users. Later, we added evals—first for narrow areas like concision and file edits, and then for more complex behaviors like over-engineering.

Anthropic [Demystifying evals for AI agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) Jan 9, 2026

## Where it breaks

A suite that always passes shows nothing to improve, criteria shift as people grade, and automated graders still need human oversight.

> In particular, we identify a phenomenon we dub criteria drift: users need criteria to grade outputs, but grading outputs helps users define criteria.

Shankar et al. [Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences](https://arxiv.org/abs/2404.12272)

> An eval at 100% tracks regressions but provides no signal for improvement.

Anthropic [Demystifying evals for AI agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) Jan 9, 2026

> Human oversight is still needed even with automated evaluators (aka LLM-as-judge).

EY Eugene Yan [An LLM-as-Judge Won't Save The Product—Fixing Your Process Will](https://eugeneyan.com/writing/eval-process/)

## Sources

1. [Who Validates the Validators? Aligning LLM-Assisted Evaluation of LLM Outputs with Human Preferences](https://arxiv.org/abs/2404.12272) Shreya Shankar, J.D. Zamfirescu-Pereira, Björn Hartmann, Aditya G. Parameswaran, Ian Arawjo, Shankar et al.
2. [Demystifying evals for AI agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) Anthropic, Jan 9, 2026
3. [Evaluation best practices](https://platform.openai.com/docs/guides/evaluation-best-practices) OpenAI
4. [An LLM-as-Judge Won't Save The Product—Fixing Your Process Will](https://eugeneyan.com/writing/eval-process/) Eugene Yan
   > Eval-driven development (EDD) helps us build better AI products.
5. [Your AI Product Needs Evals](https://hamel.dev/blog/posts/evals/) Hamel Husain, Mar 29, 2024

Added Nov 14, 2026
