How Braintrust uses AI agents, evals, and CI to ship better software | Ankur Goyal
· Summarized
Key takeaways
- AI agents can dramatically increase the pace and quality of technical experiments, especially in infrastructure and database optimization.
- Rigorous benchmarking and evaluation, made feasible by AI, are crucial for high-stakes engineering decisions and significantly elevate the quality of outcomes.
- Evals are essential for defining success in AI projects, transforming subjective assessments into scalable, quantitative metrics.
- Effective engineering with AI involves structured workflows, dedicated focused time, and automation of routine tasks to sustain high throughput.
- When AI outputs are not satisfactory, iterative prompt refinement and manual troubleshooting can significantly improve results.
- Investing in CI/CD and creating robust data pipelines for evals are the highest-leverage actions to accelerate engineering velocity and product quality.
Summary
The Power of AI Agents in Engineering and Optimization
Ankur Goyal discusses how AI agents are revolutionizing traditional engineering tasks, especially in areas like database optimization and infrastructural experimentation. Using Codex, he automates long-term benchmarking experiments to evaluate different indexes, storage formats, and engines, significantly accelerating the process of technical innovation. He emphasizes that with AI, there's no longer a justified excuse to skip rigorous benchmarking since agents tirelessly perform these tasks, leading to higher quality outcomes and faster iteration cycles.
Practical vs. Theoretical AI Quality in Hard Problems
The conversation tackles the misconception held by some engineers that AI cannot handle complex, technical problems. Ankur counters this by sharing how AI, through continuous, rigorous testing and benchmarking, outperforms manual efforts on tedious, high-stakes tasks. Human attention spans decay over long, monotonous processes, whereas AI can sustain high-quality analysis consistently. Practical application demonstrates that AI improves both speed and quality, enabling teams to tackle much larger and more intricate problems than before.
Understanding Evals and Their Role in AI Development
Evals are presented as a modern, scalable alternative to traditional PRDs, focusing on defining success criteria in a quantifiable way. Ankur illustrates their use by building scoring functions for assessing AI responses to FAQs, and demonstrates how to run these evals live within a safe environment to iteratively improve model outputs. The key lesson is that evals shift the focus from manual, anecdotal quality checks to systematic, data-driven evaluation, scaling quality assurance beyond what humans can feasibly manage.
Workflow and Tooling for AI-Enhanced Engineering
Ankur shares his approach to managing multiple foreground agents running in parallel across cloud environments, optimizing their configuration with cloud tools like EC2 and S3, and using tools like tmux for session management. He highlights the importance of structured workflows, investing in continuous integration, and dedicating focused periods for coding. He advocates chunking work into manageable pieces and leveraging AI to handle routine or complex long-tail tasks, thereby increasing overall velocity and reducing cognitive fatigue.
Strategies for Managing Failures and Improving Prompts
When AI agents fail or produce subpar outputs, Ankur emphasizes the importance of iterative correction—shutting down the session, revisiting and refining prompts, and rerunning evals. He advocates for building a feedback loop that captures failure modes and uses them to improve prompting strategies continuously. Ankur also shares insights from experience, including the benefit of writing eval scripts by hand when automated scripts get stuck or confused, to better understand and troubleshoot model behavior.
The Future of AI and Engineering Best Practices
The episode concludes with practical advice for engineering teams on integrating AI effectively: prioritize building pipelines for continuous evaluation and data enrichment, focus on improving CI systems to accelerate velocity, and adopt an experimental mindset. Ankur stresses that investing in automation, rigorous testing, and structured workflows will be essential for teams to unlock the full potential of AI-assisted engineering and keep pace in a rapidly evolving landscape.
Sponsors
- Guru · Guru solves the problem of outdated, incomplete, or incorrect knowledge feeding your AI by adding a verification layer that scores content for accuracy, flags outdated info, and ensures trustworthiness, working seamlessly with your existing tools.
- Persona · Persona helps you verify identities, automate fraud prevention, and know who is behind your product or AI agents—trusting your system's users and preventing damage from bad actors.
Show notes
In this episode, I sit down with Ankur Goyal, founder and CEO of Braintrust, the AI evals and observability platform used by teams like Notion, Stripe, Vercel, and Zapier. This one is for the senior engineers, staff engineers, VPs of engineering, and CTOs in my audience. We get into how coding agents can take on deeply technical architecture and infrastructure work that no single human engineer could tackle before, and then we demystify evals so you can use them to make your AI products better without touching the implementation.
What you’ll learn:
- How Ankur uses Codex to run week-long benchmark experiments across database indexes, column store formats, and execution engines to speed up slow queries
- Why he argues there’s no excuse to skip rigorous benchmarking now that agents can run them tirelessly
- The “agent line” framework: how to decide which decisions, directions, and interactions you can hand off to an agent
- How I think about the practical vs. theoretical quality of AI on hard technical problems, and why human attention decays on tedious work
- Why evals are the modern version of a PRD, and how to encode “what good looks like” so a model can figure out the “how”
- How to build a scoring function live and let an agent improve your prompt inside a safe playground
- How Ankur turned his designer David’s taste into a repeatable eval so quality scales beyond one person
- Why fixing your CI is the highest-leverage way to speed up engineering velocity
—
Brought to you by:
Guru—The AI layer of truth
Persona—Trusted identity verification for any use case
—
In this episode, we cover:
(00:00) Introduction to Ankur Goyal
(03:00) Using AI agents for database optimization
(06:10) Running exhaustive benchmarks with coding agents
(09:03) Why staff engineers are wrong about AI limitations
(11:30) The “agent line” framework for delegation
(14:00) Ankur’s workflow: running 4 to 6 concurrent agents
(17:16) Technical setup: foreground agents, background agents, and cloud environments
(20:32) Spending time with AI tools
(23:06) Demystifying evals
(26:02) Live demo: Building an eval for documentation answers
(30:20) The alternative to evals: vibe checks and whack-a-mole
(32:09) Capturing designer taste in scoring functions
(33:13) Quick recap
(33:44) Managing velocity and throughput
(35:40) Why CI/CD investment is critical for AI-accelerated teams
(37:30) Ankur’s prompting strategy when agents fail
(39:10) Closing thoughts and how to connect
—
Tools referenced:
• Braintrust: https://www.braintrust.dev/
• Codex: https://openai.com/codex/
• GPT 5.4: https://developers.openai.com/api/docs/models/gpt-5.4
• Claude: https://claude.ai/
—
Other references:
• GPT 5.5 just did what no other model could: https://www.lennysnewsletter.com/p/gpt-55-just-did-what-no-other-model
• Paul Graham’s Maker vs. Manager Schedule: http://www.paulgraham.com/makersschedule.html
• tmux: https://github.com/tmux/tmux
• Chris Tate at Vercel: https://www.linkedin.com/in/ctatedev/
—
Where to find Ankur Goyal:
LinkedIn: https://www.linkedin.com/in/ankrgyl/
—
Where to find Claire Vo:
ChatPRD: https://www.chatprd.ai/
Website: https://clairevo.com/
LinkedIn: https://www.linkedin.com/in/clairevo/
—
Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email jordan@penname.co.
Follow this show on AudioBrevity and new episodes get summarized for you. Create a free account