Hamel says to start with real examples and error analysis so you can make your judgment explicit before writing evals. Top-down criteria come from understanding the task, such as whether podcast takeaways are actionable; bottom-up criteria emerge from reviewing outputs and noticing recurring problems. He cautions that Claude can help propose top-down criteria, but people need to discover bottom-up ones over time.
How to Build Better AI Evals with Claude Code in 5 Steps
Speakers
Peter Yang hosts AI evaluation experts Shreya Shankar and Hamel Husain, instructors of an AI eval course, to discuss building and using evals with Claude Code and other AI tools.
Shreya demonstrates a five-step error discovery workflow: identify the data type, design a visual way to display it, build a review interface, select a diverse sample, then use an interactive feedback loop to develop rubric criteria. As she reviews generated articles, she flags issues such as negative contrasts and short fragments. The agent groups her notes, scans other samples for those patterns, and surfaces suggestions for her to check.
Shreya explains that reviewed examples and annotations can become a rubric, with LLM judges checking specific criteria and the annotated dataset serving as a benchmark. She recommends reviewing enough examples to feel confident that the failure modes are covered. Hamel adds that separate subagents can evaluate different criteria, with results summarized in a spreadsheet for human review.
Shreya and Hamel describe benchmarking automated eval tools against human-annotated data. The tools can catch clear issues, but they often miss product-specific failures that require judgment, such as a rental agent failing to respond usefully to a sales objection or using Markdown in text messages. Shreya says the tools’ best-case precision was 80% to 90%, so people should check both false positives and missed errors.
Shreya says their course also covers productionizing evals, aligning teams on criteria, CI/CD, monitoring drift, and safety testing. She describes using evals in cost and accuracy improvement loops, including cases where students and consultants cut costs by up to 100 times compared with using Opus. Hamel and Shreya emphasize that reviewing product data helps teams define what good looks like.
Takeaways
- Write down task-based criteria separately from failure patterns you discover by reviewing real outputs.
- Use a purpose-built interface to review diverse samples and record feedback where it appears.
- Turn recurring human feedback into rubric criteria, then benchmark judges against labeled examples.
- Use separate evaluators for distinct criteria and inspect their results before acting on them.
- Automated evals can speed up error discovery, but manually review data to catch product-specific failures and false positives.
Mentioned in this talk
Search inside this talk
What was claimed 9
- feature
Claude Code: Can help create top-down evals, but is very bad at generating bottom-up evals
“Claude is very, very bad at coming up with bottom-up evals.”
YouTube Unverified1 source· Talk
- metricHamel Husain: The AI eval course has taught over 4,500 students
“I think they've taught over 4,500 students now.”
YouTube Unverified1 source· Talk
- uses
“I'm going to start by invoking a Claude session.”
YouTube Unverified1 source· Talk
- featureError Discovery skill: Reads a dataset, designs a visual encoding and review interface, selects samples, and iteratively turns human feedback into rubric criteria
“Finally, it runs an interactive loop.”
YouTube Unverified1 source· Talk
- usesHamel Husain uses
Codex
“I've been using Codex a lot more.”
YouTube Unverified1 source· Talk
- feature
Codex: Supports mobile sessions, steering, model switching, artifact viewing, and coordination between threads
“You can access all the same things: queue messages, steer, switch models, and see artifacts.”
YouTube Unverified1 source· Talk
- built
“I’m the one who came up with this process.”
YouTube Unverified1 source· Talk
- featureautomated eval tools: Can catch obvious problems but may miss issues requiring product judgment and taste
“These automated tools all tend to miss the same thing: finding errors that aren’t obvious and require product judgment and taste.”
YouTube Unverified1 source· Talk









