Nicolai Bohn
Free Lesson

TDD for AI Agents: Turn Expert Knowledge into Evals

30 min
Jan 7, 2027 9:00 AM

By continuing, you agree to Maven's Terms and Privacy Policy.

What you'll learn

Turn domain expertise into your first eval

In TDD the developer writes the test. For agents it's often a domain expert. You turn their knowledge into evals.

Redefine green when every run answers differently

One passing chat proves little. Set a pass rate across many runs and make it the bar every change has to clear.

Treat every refactor as an experiment

Rerun the same evals on each model or prompt variant and ship the cheapest one that stays green.

Why this topic matters

Test-driven development has helped software teams ship changes safely for over 20 years. Most of it carries over to AI agents, with two adjustments. The test is written by the person who knows what correct means, often a domain expert. A pass becomes a rate across many runs. We walk through both on a multi-agent medical assistant, from the first failing eval to a model swap that keeps every test green. You get the agent and its evals on GitHub.

You'll learn from

Nicolai Bohn

Nicolai Bohn

Founder @ Rhesis AI | 10y Product | PhD

Comdirect
Wooga
Hasso-Plattner-Institut
Rhesis AI
Navigating.art
See all products from Nicolai
Get free access