---
title: "What Is Eval-Driven Development? How to Improve AI Agents"
description: "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."
url: "https://swe.quest/articles/what-is-eval-driven-development-how-to-improve-ai-agents-b74ea0bdd23f7298"
canonical: "https://www.langchain.com/blog/what-is-eval-driven-development"
source: "LangChain"
published: "2026-11-12"
difficulty: "medium"
kind: "How-to"
reading_minutes: 11
tags: ["evals","ai-agents","testing","llms"]
---

# What Is Eval-Driven Development? How to Improve AI Agents

A post on [LangChain](https://swe.quest/sources/langchain.md), published 2026-11-12, 11 min read, How-to. Original: [https://www.langchain.com/blog/what-is-eval-driven-development](https://www.langchain.com/blog/what-is-eval-driven-development)

## Summary

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. A worked example adds a create\_ticket tool to an internal docs agent. The average score improves, but a how-to VPN question regresses, and a trace shows the cause is an overly broad tool description. Practical advice includes using code evals for deterministic checks and LLM judges otherwise, keeping a held-out set to detect overfitting, running fast checks in CI and slower judges nightly, and turning production failures into new dataset examples.

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)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- test-driven development

## Keywords

LangSmith, Eval-driven development, LLM-as-a-judge, Harbor, Terminal-Bench, Deep Agents, pytest

## Related posts

- [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.
- [Demystifying evals for AI agents](https://swe.quest/articles/demystifying-evals-for-ai-agents-fa56ac3233812721.md): Anthropic Engineering · 2026-01-09 · Medium · 26 min read · Evaluation, AI agents, LLMs, Testing
  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.
- [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 Art of Loop Engineering](https://swe.quest/articles/the-art-of-loop-engineering-1c4cd354dba11ffe.md): LangChain · 2026-10-29 · Easy · 6 min read · AI agents, LLMs, Evaluation
  Agent systems can be structured as four stacked loops: the basic agent loop (model calls tools until done), a verification loop where a deterministic or LLM grader checks output against a rubric and retries with feedback, an event-driven loop where crons, webhooks or Slack channels trigger background runs, and a hill-climbing loop where an analysis agent mines production traces to rewrite prompts, tools or graders.
- [How we used DSPy to turn AI evaluations into better responses in Dash chat](https://swe.quest/articles/how-we-used-dspy-to-turn-ai-evaluations-into-better-responses-in-dash-chat-742eadaf5e0748b5.md): Dropbox Tech · 2026-06-25 · Medium · 9 min read · Evaluation, LLMs, AI agents
  Dropbox improved its Dash chat agent with a two-stage DSPy loop.

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)
