Eval-Driven AI Product Development
Turn variable AI behavior into a measurable test-and-improve cycle
- Difficulty
- Advanced
- Time to result
- ~weeks to results
- Steps
- 5
- Confidence
- 97%
The framework applies test-driven development discipline to the adaptive parts of an AI product. Clyde saw many variations in how its product responded to different user prompts, making manual quality control difficult at scale. The team implemented evals, wrote eval scripts, ran them, analyzed gaps, and adjusted the system before running the cycle again. This creates an explicit bridge between observed output quality and changes to prompts, graphs, or code. Lidman contrasted the approach with the team's earlier trial-and-error development, where repeated prompt tweaking and movement between system layers made root causes slow to isolate. The eval loop speeds iteration by making failures reproducible and improvements measurable rather than relying on ad hoc judgment.
Origin
Extracted from Code Story: Insights from Startup Tech Leaders, where Tim Lidman described Clyde's move from trial-and-error prompting to eval-based development.
Core principles
- 01Treat AI behavior as testable product behavior
- 02Measure quality across prompt variations at scale
- 03Analyze gaps before changing prompts or code
- 04Repeat the cycle to accelerate reliable iteration
How to run it
- 1
Capture response variability
Gather representative prompts and the different responses the product produces. Include the use cases that create quality pressure at scale.
Watch out A narrow test set can hide failures from real prompt variation.
- 2
Define quality checks
Specify observable criteria that distinguish acceptable from weak responses for each important use case.
Pro tip Tie criteria to the outcome users need, not merely response style.
- 3
Write and run eval scripts
Encode the checks in eval scripts and execute them against the representative cases.
- 4
Analyze the gaps
Inspect failed or weak cases to locate whether the cause sits in prompts, graphs, code, or another system layer.
Pro tip Use the failed case to narrow the root cause before editing the system.
Watch out Do not fall back to unstructured prompt tweaking.
- 5
Adjust and rerun
Change the relevant system component and rerun the eval suite. Repeat until the measured gap closes without degrading other cases.
In the wild
After launch, Clyde encountered many variations in responses to different user prompts. The team implemented evals, then evolved its workflow around writing eval scripts, running them, analyzing gaps, and adjusting the product. This replaced an earlier period of trial-and-error prompt tweaking across prompts, graphs, and code.
→ The team could apply test-driven development to AI-native product behavior and iterate faster.
Common mistakes
Tweaking prompts without a baseline
Without evals, Clyde spent significant time moving between prompts, graphs, and code while trying to identify root causes.
Testing only one happy-path response
The need for evals emerged from response variation across user prompts. A single example cannot represent quality at scale.
Is it for you?
Best for
It is best for AI-native products that produce many different responses to varied user prompts.
Not ideal for
It is not ideal when the team has not yet defined representative cases or observable quality criteria.
From the transcript
“in order to keep up with the quality at scale, we just finished implementing evils.”
“we can now approach even the AI native parts of our product with a full test-driven development methodology.”
“we're basically writing, writing evilscripts, running them, and then gapment analyzing, adjusting”
From the episode
S12 Bonus: The Microsoft File Trap: Moving Beyond Manual PowerPoint and Excel Workflows to Build an AI-Native "Consulting" Layer with Tim Lidman, Co-Founder & CEO of Clyde AI
Tim Lidman