How to Build Better AI Evals with Claude Code in 5 Steps | Shreya & Hamel
Shreya Shankar and Hamel Husain walk through a 5-step workflow for building AI evaluations using Claude Code, starting with manual error analysis before any automation.
The gist
-
Do manual error analysis first by reviewing 10 to 20 diverse samples, because you cannot automate judgment you have not yet put into words.
-
Separate your evals into top-down criteria from domain expertise and bottom-up criteria found by looking at real outputs, since AI is poor at generating the latter.
-
Use LLM judges to check specific, well-defined failure modes like staccato writing rather than vague scoring, as LLMs handle binary and categorical judgments reliably.
-
Automated eval tools like LangSmith catch obvious errors but miss judgment-based failures, reaching only 80 to 90 percent precision, so always validate their findings yourself.
"I'm going to start out by just invoking a Claude session. The interface that it comes up with is going to be so much better than me looking at my data in say Google Sheets or something. It's just very very hard on the human eyes to read."
▶ Play at 15:13256 creators recommend it, including Riley Brown, Chris Koerner, and Jason Calacanis.
See all on the Claude page"Finally, last but not least, it runs an interactive loop. So that is Claude Code or Codex — whatever I'm going to use — basically looks at the interactions I make in the user interface, compiles those interactions into open-ended feedback, and then reads that feedback in real ..."
▶ Play at 18:14113 creators recommend it, including Riley Brown, Liam Ottley, and Claire Vo.
See all on the Claude Code page"If you store your LLM traces in Langsmith you should totally use it — it's a no-brainer."
▶ Play at 49:44What they recommend · 5 picks
“I'm going to start out by just invoking a Claude session. The interface that it comes up with is going to be so much better than me looking at my data in say Google Sheets or something. It's just very very hard on the human eyes to read.”
“Finally, last but not least, it runs an interactive loop. So that is Claude Code or Codex — whatever I'm going to use — basically looks at the interactions I make in the user interface, compiles those interactions into open-ended feedback,…”
“I've been using Codex a lot more and it's mainly because of the Codex app itself is so incredible in its functionality. Mobile support is at a completely different level — you can see all the sessions across all your devices on your mobile…”
Shreya Shankar
2 picks · guest
“I'm going to start out by just invoking a Claude session. The interface that it comes up with is going to be so much better than me looking at my data in say Google Sheets or something. It's just very very hard on the human eyes to read.”
“Finally, last but not least, it runs an interactive loop. So that is Claude Code or Codex — whatever I'm going to use — basically looks at the interactions I make in the user interface, compiles those interactions into open-ended feedback,…”
Hamel Husain
2 picks · guest
“I've been using Codex a lot more and it's mainly because of the Codex app itself is so incredible in its functionality. Mobile support is at a completely different level — you can see all the sessions across all your devices on your mobile…”
“If you store your LLM traces in Langsmith you should totally use it — it's a no-brainer.”
Peter Yang
1 pick · host
“I pretty much use Codex for everything. I was like a total Claude fanboy even a few months ago. But I discovered Codex — the browser use is just incredible on Codex.”
Get a Sunday email on what Peter and 5 other AI builders start using
Free. Paid ads left out. Unsubscribe in one click.
Also mentioned
Ads in this episode
Wispr Flow. They're paid, so we keep them out of the picks above.
See what Peter recommends without being paid →Related episodes
Episodes covering similar topics