A function that calculates sales tax gets a unit test that feeds it a known price and region and checks the exact result. If someone, or some model, changes the function and breaks it, the test fails within seconds. A codebase might have thousands of these, run on every commit as part of continuous integration (CI).
Coding agents lean on them heavily. A test suite gives an agent a pass/fail signal it can act on without a human: write the change, run the tests, fix what failed, repeat. Benchmarks like SWE-bench use the same idea to grade models. The limits carry over too. Tests only check what someone thought to assert, and an agent can make tests pass by weakening them or special-casing the inputs, so AI code review and regression testing still matter.
In episode 40 at 38:31, Graphite’s Greg Foster describes CI as running deterministic unit tests and static checks on a code change to return a check mark or an X, and frames AI code review as another variant of that step. The episode was sponsored by Galileo (mention at 2:05).
Testing a model’s output is harder than testing a function, because the same prompt can return different text. In episode 6 at 34:00, Grant Ledford says a familiar testing concept such as a unit test may not map directly to LLM testing, especially when builders lack a shared technical foundation. The episode was sponsored by Galileo; the read is at 27:00.
Hear it from the guest
“CI is I'm going take the code change, run some deterministic unit tests”
Quotes lightly edited to remove filler words.
Sources
- Martin Fowler: UnitTest — Fowler's definition of unit tests as low-level tests focused on a small part of a system, written by programmers and fast to run, and the variations in how teams isolate units; checked October 24, 2026.
- Jimenez et al.: SWE-bench, Can Language Models Resolve Real-World GitHub Issues? (arXiv 2310.06770) — SWE-bench scores a model's patch for a real GitHub issue by running the repository's tests, including tests that failed before the fix; checked October 24, 2026.
Go deeper
From the conversation
-
After Code Gen: What Graphite Is Building for the Post-AI Dev Stack | Greg Foster -
The Enterprise AI Deployment Playbook | ServiceTitan, Indeed & Twilio -
Using AI to Modernize Your Legacy Applications | MongoDB’s Rachelle Palmer -
Explaining Eval Engineering | Galileo's Vikram Chatterji -
Every AI Agent Has an Evaluation Gap | Alex Ratner, Snorkel AI -
Architecting AI Agents: The Shift from Models to Systems | Aishwarya Srinivasan -
Vercel's Playbook for AI Agents: From Vibe Check to Production | Malte Ubl -
Your Best AI Engineer Might Have the Worst Metrics | Sonar CTO Andrea Malagodi