How I AI - How Braintrust uses AI agents, evals, and CI to ship better software | Ankur Goyal

Episode Date: June 15, 2026

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 e...ngineers, 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 queriesWhy he argues there’s no excuse to skip rigorous benchmarking now that agents can run them tirelesslyThe “agent line” framework: how to decide which decisions, directions, and interactions you can hand off to an agentHow I think about the practical vs. theoretical quality of AI on hard technical problems, and why human attention decays on tedious workWhy 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 playgroundHow Ankur turned his designer David’s taste into a repeatable eval so quality scales beyond one personWhy fixing your CI is the highest-leverage way to speed up engineering velocity—Brought to you by:Guru—The AI layer of truthPersona—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/X: https://x.com/clairevo—Production and marketing by https://penname.co/. For inquiries about sponsoring the podcast, email jordan@penname.co.

Transcript
Discussion (0)
Starting point is 00:00:00 And still, in as I say, the year of our cloud, 2026, I still talk to engineers that say AI on our most complicated things cannot do a good job. I so viscerally disagree with it. There's no staff engineer who is running as many rigorous benchmarks and trying out different algorithms and analyzing ideas manually than someone who's using an agent. Everyone should take a hard look in the mirror and reevaluate how they spend their time. There's a lot of interactions that you have or direction that you're giving or decisions that you're making. And I think like many of these things, to me, fit below the agent line. I think the agent line keeps going up. Why do you think this concept is so important to understand?
Starting point is 00:00:38 How can you just demystify it for folks who are a little intimidated by it? Now that models are so good at actually writing code, one of the best things that we can do is create really hard evils. And if you create the right tests and success criteria for a model, then it can be really creative. and it can work on this stuff in the background and actually try to improve a bunch of things. I have a lot of people saying, wow, if I go as so far as to turn my own taste or my own skills or my own expertise into a system, I'm functionally just building my own replacement. We're able to have David's palette applied to more things. I think the quality bar that we're able to hit is higher because we're able to get more things to that bar.
Starting point is 00:01:20 Welcome back to How I AI. I'm Claire Vow, product leader and AI obsessive here on a mission to high. help you build better with these new tools. Today I have Ankur Goyal, the CEO of Brain Trust, and this is a technical one. So if you're a senior or staff engineer or a VP of engineering or a CTO, it's when you're really going to want to pay attention to. And we're going to talk about how coding agents can help you bite off really technical architecture and infrastructure work in a way that no other human engineer could before. We're also going to demystify evals for folks and just show you exactly how you can use them to make your AI products better without having to touch a thing. Let's get to it. This episode is brought to you by Guru, the AI layer of truth for
Starting point is 00:02:04 your company's knowledge. Here's the problem. Your AI is only as good as the information you feed it. Most companies are getting confident but wrong answers from AI because their underlying knowledge is outdated, incomplete, or just plain incorrect. Bad information doesn't just slow. you down. It costs you money and puts you at risk. Guru solves this by adding a verification layer between your company's knowledge and AI tools. Instead of just hoping your AI gets it right, guru automatically scores content for accuracy, flags, outdated information, and ensures your team gets trustworthy answers every time. It works with the tools you already use, so you don't have to change how you work. Thousands of companies trust Guru to keep their AI
Starting point is 00:02:51 accurate and compliant. Ready to stop playing Russian roulette with your company's knowledge, visit get guru.com to learn more. Welcome to how IAI. I'm excited to have you here. I'm super excited to be here. Thanks for having me. So I'm going to make you laugh, but I recently did an episode about the recent GPT 5.5 model release. And I know you and I use Codex. And one of the funniest comments in that post was, Claire, can you do an entire? episode about tech debt. And we were talking before we got on the recording. You're like, how technical and how nerdy is this audience? And I'm like, bring it on. So we are going to talk a little bit about how you approach engineering and then how you use AI to do things like
Starting point is 00:03:39 optimize slow queries. So let's let's hop in. Tell me, tell me about your approach to software engineering in the age of AI. You know, I spend a lot of time working on software for doing e-vils and observability, and that's kind of shaped my own perspective about software engineering. Like now that models are so good at actually writing code, one of the best things that we can do is create really hard e-vals. And I'm not talking about like AI evils. I mean things like, why is this query so slow? And if you create the right tests and success criteria for a model, then it can be really creative and it can work on this stuff in the background and actually try to improve a bunch of things. So one of the things that I spend a lot of time on right now
Starting point is 00:04:24 is making the queries that people run in our product faster. And people can just write arbitrary queries. Like, you know, they can, there's an example. Someone is trying to find, like, needle in a haystack of some specific kind of interaction someone had in their product. And they're looking at, like, billions and billions of traces. And they want to find, like, the 5,000 or something that match. And this is over like a 90 day period or something, like a lot of, a lot of data. And that's one example of a query in like, okay, there are all these things that you can do in database literature, like different indexes you can build and different ways you can pre-fetched data and blah, blah, blah, all this stuff. But how do you try all those things and how do you
Starting point is 00:05:06 run all the experiments required to actually do something like this? So what we do, and what I've personally spent a lot of time working on is trying to figure out, you know, manually is fine, but automatically is even better. Like, what are the patterns of queries that people are running that are slow? And then we will reproduce those things and use a coding agent to try out a bunch of ideas from database literature. So, like, download a bunch of data locally and then maybe try different, in this case, right now, I'm trying out different column store formats. So we use an index underneath the scenes called Tantavi, which has a built-in column store, but it's not that great. Like the thing overall is great, but their column store is not like that great. And so what we're
Starting point is 00:05:52 doing right now is like exhaustively trying every open source column store format out there, and then exhaustively trying every column store execution engine out there and sort of computing the matrix of this. And it's like, it's amazing. I completely agree. Is somebody who has led engineering organizations for a really long time. When you're trying to make infrastructure platform core component changes in your application, because of both the cost of implementing those being very high, and then the unknown unknowns being quite risky, teams are actually pretty risk-averse in terms of making big platform shifts or changes to their core implement. It's like the thing that you shipped is the thing that you get stuck with, certainly.
Starting point is 00:06:41 on the engineering side. And what I love about AI right now and these coding agents in particular and then Codex in particular particular is it has been the only setup. Codex plus these GPT models has been the only setup where I have been able to set up
Starting point is 00:06:58 a very similar process, which is the outcome I want is X, Y, Z. We need to programmatically test against pretty long-tail data structures to figure out which of these potential solutions are going to get us closer to the outcome we want. In your instance, it's database, query, speed, and latency. In my instance, I was doing a very, you can appreciate this, very complex data migration of stored, structured and unstructured data generated by AI.
Starting point is 00:07:31 So it was all, like, messed up to begin with. And then I had to migrate it to a schema. And so it was like, schema to schema migration, millions and millions and millions of millions of rows and lots of edge cases. And doing that as a human takes forever. You know, you can script it and you can like bang some systems against it. But then your human ability to manage those cycles and say, yes, that's right or no, that's wrong, or this gives us indication that we should go left or that gives us indication we should go right. And so I do feel like this combination of like a very precise outcome and an agent that's smart enough to bang its head against a really, really long
Starting point is 00:08:11 tail of problems with a guided sense of the technical space. It does really well. And I have not heard this on the kind of like data store side. It's really interesting. But I just think, hey, engineering leaders out there, I've had, I've been so many debates about what we're using for our data score, how we optimize performance, what technologies we should bring into the stack versus is not. And you can run those like very, very iterative loops on, I'm presuming you're using production-like data or real representative queries to test that. Is that right? You can actually use production data too. But for some subset of things and with the right engineering in place, you can just run on production data. Yeah. And in many ways, it's a lot
Starting point is 00:08:58 safer than having humans test on the production data because no one's looking at it. Yeah, and this is where I have so many staff engineers be really, really cynical about does AI have a place in their coding tools? I'm still in, as I say, the year of our cloud 2026, we still, I still talk to engineers that say AI on our most complicated things cannot do a good job. Oh, I so viscerally disagree with that. Same. Tell me why you disagree. Well, I mean, I think, so I've been working on databases for almost two decades. There's not many things that staff, whatever, risk averse, blah, blah, blah, all that stuff you could apply to them, like, literally building a database. If you work on a database, we recently added this, like, fancy index thing into brain trust that uses Bloom filters.
Starting point is 00:09:51 And by the way, we discovered that that would be a practical solution to the problem after running, like, a week of continuous experiments with different types of indexes. Bloom filters kind of have a bad reputation, but they worked out to be very effective in this case. So if you build something like that, usually what happens is the very best engineers will run a few benchmarks, and then you'll send it to your peers, and then your peers will shit all over it and rip it apart and say, you didn't benchmark this, you didn't benchmark that. And what you do is you prioritize the top few benchmarks, and then you probably bullshit the rest. Like, oh, I didn't benchmark this. However, if you read the code, you'll see it's not n squared.
Starting point is 00:10:29 It's login, and so this is not going to happen. And like half the time you're wrong. Now there is no excuse to not do those benchmarks. So now you love it. Like we don't, I'm not spending my time like sitting and like typing the benchmark code, but I'm talking to people. We're looking at the code. We're looking at the thing.
Starting point is 00:10:46 We're like, okay, well, we indexed. We benchmarked how much faster it makes the queries. Did we actually do a good job of benchmarking how much slower it makes indexing? Oh shit. No, we didn't do that. And so we actually spent some time doing that. and we discovered that we were doing a terrible job at indexing it efficiently. And so we spent a lot of time on that. And I could sort of, I don't agree with this. I could some, I can empathize with the
Starting point is 00:11:11 argument that models aren't good at writing highly concurrent code or they're not good at writing very performance sensitive code. But the, I, there's no staff engineer who is running as many rigorous benchmarks and trying out different algorithms and analyzing ideas manually than someone who's using an agent. And even that baseline is just incredible. I agree. And I think there's this theoretical quality and then there's this practical quality, right? In a theoretical ideal world in which we don't sleep and every time we sit down at our laptop, we end up writing perfect code. And in a theoretical world in which those benchmarks are, all of them are run, not just the BS ones. Like in that theoretical world, you could theoretically say perhaps in some
Starting point is 00:11:57 untested case, you get better quality when humans are hands-on. But the practical application is you lose context over, like the humans lose context on the problem over days. You have a decaying attention span towards hard but tedious problems. And so I do think the practical quality goes down. And so I tell people like the practical quality of integrating AI into your engineering process on very hard technical problems goes up simply because of how hard you can run at the problem and how long and consistently you can run against the problem. And then, you know, what I was going to go back to saying, which is you can bite off much more interesting technical challenges with AI as your, you know, sidecar than you could before. Again, practically because
Starting point is 00:12:48 your company can support the cost of doing so, right? If you're like, I want to sequester or all my staff engineers to solve our database indexing problems for the next year. And we're just like really going to go go deep in the weeds. And we're going to test these six different open source, you know, solutions to this. And we'll come back in a year and we'll tell you if we figured it out, not that we figured it out. Business is like, no, you know, you're, you're, they're a CEO. Like, no, no, thank you. But if you say, hey, we're going to have this thing in the background and we're going to
Starting point is 00:13:18 check on it, we're going to make expedient progress. And we can ship other stuff while we're at it. I think that's a really easy yes. Absolutely. Yeah. I mean, I think the motto that we have now is there's just no excuse to not have rigor. Like if, and there's no excuse to not have performance. If someone complains about something, if someone complains about a paper cut in the UI, you know,
Starting point is 00:13:40 whatever it is, there's just no, there's no, we don't really have a backlog. Like there's, there's no excuse to just not improve these things. Yeah. And for folks looking for we don't have a backlog inspiration. We just interviewed Brian from inner. who says their goal is like backlog zero. Nothing in the backlog so that everything can get shipped. Okay.
Starting point is 00:14:00 So we're solving really technical problems. I think this is a great approach. How are you engineering with AI? Because I love that you're still, you know, you're writing code, you're spending time on this. Any tips or tricks for how you're managing your fleet of agents that you think are unique? I think that everyone should take a hard look in the mirror and reevaluate how they spend their time. there's a lot of interactions that you have or direction that you're giving or decisions that you're making. And I think like many of these things to me fit below the agent line. And to me, the agent line is like if I or whoever would be at the meeting or whatever, like if we equivalently took the information that we're discussing and we just gave it to an agent, would it solve the same problem? And I think the agent line keeps going up. And also I think the best people are pushing the agent line inside of their company by being smart about. what skills they're writing and what integrations are building and so on. So once you do that,
Starting point is 00:14:56 you likely have a lot more time than you thought you did. I don't take any meetings after 12. This is the last meeting of the day for me. And that means that every day I'm able to, in the Paul Graham framework of maker versus manager schedule, every day I'm able to enter the level of focus that's required to be in the maker schedule. And so I personally write a lot of code and and I spend a lot of time writing code. And I haven't spent as much time writing code in a while, and I really love it. So that's number one, is like, make the time.
Starting point is 00:15:27 My workflow is very simple right now. We don't have a great background agent set up yet. I think that we are exploring various things and trying to get there. But I have usually five or six foreground agents running on my computer. Each one is a T-MUx session. Right now I have four things I'm working on. So each one is a T-MUKUKS session. Muck session. They're named Brain Trust 1 through Brain Trust 4. And, you know, each of these has like
Starting point is 00:15:54 some UI running and it has some services running. They're problems like port collisions. Like, I can't isolate everything as much as I'd like to. And I think that there are a lot of solutions for trivial software that do this. There's not a lot of solutions for complicated software yet. And I'm excited. I mean, everyone I talk to is building their own thing. I just met a startup that's like two months old and they built their own internal tool for doing background agent PRs, which is, I don't judge them for it. Like, I don't know what else they would do, but it's kind of crazy. And then I also have remote one.
Starting point is 00:16:28 So here's one where I'm working on trying to improve our column store performance. And this is running on not real data, but close to real data. And it's running remotely. And it's, you know, it's running like much more scale. and many, I mean, if I ran this on my computer, it would probably die from just how much compute it's using. But I'm able to, in this case, test, like, what's the real latency between EC2 and S3 if I'm trying to do like 4,000 concurrent reads? Is it enough? Is it not enough for this workload? Can I interleave things, whatever, properly? And I've been running this experiment
Starting point is 00:17:06 for several days, just trying to figure out, like, what's the best? You know, right now I'm talking to it about what the indexing life cycle should be, because I think we figured out how to make the queries fast enough. Some people are going to be listening to this to me like, oh my gosh, this is so technical. I don't have these problems. Let me take a step back for folks and tell you what I think I'm seeing here, which is one, you're using codex, right?
Starting point is 00:17:28 Yeah. Codex for hard problems, people. I'm telling you. Just that's- I think it's currently the only model that will disagree with you regularly. And I think if you're working on hard problems, it's very important. And then for you, what I'm also hearing is you're using foreground agents. You basically have a personal concurrency limit of like, let's call it four, which is about what I can do as well. So I think people ask me all the time, how do you handle all this context?
Starting point is 00:17:55 I'm like, I don't do more than I think I can do it at any one time. And I also, I have more trivial problems than you. So I think you're right in that the current sort of commercial background agents, I would call them, that you can buy off the shelf, work very well for web at like standard web apps. I'm very happy with them. If you are not using one of them as an engineering organization, maybe it's like doing classic SaaS, highly, highly, highly recommend. But I am hearing more and more from teams to things that you called out. I am hearing more and more people are just building their own background agents. So it's happening. It's happening in teams very, very big and very, very small. I think the primitives are there to start experimenting with it.
Starting point is 00:18:37 And so I don't think it's going to be as surprising to us to hear about people building their own internal coding background agents, even if like core infrastructure is something from the big, the big models model providers. I think the second thing that I'm hearing a lot, and we heard this from the Strite team, is investment in cloud development environments and remote remote computing. Again, because if you were to run some of the stuff, especially the data heavy stuff on your computer, It starts to sound like an airplane taking off. It's no good. And then the last thing I heard you say, which is like ports, I joke with everybody. I say work trees everywhere. Ports 3,000 through 3009 accounted for.
Starting point is 00:19:19 Like, I am just like everything. And I have to call out Chris Tate at Vurcell released a thing called portless, which just makes managing multiple ports, local host ports on your local machine a little nicer. So for simple things, I would go look that up. We'll link it in the GitHub show notes. but common problems that I think people have running concurrent engineering processes on their own machine. And then the like meta thing, which is just like make time to code. You need it.
Starting point is 00:19:48 Everyone. I also don't take meetings after one. Sometimes I'll do podcasts in the early afternoon for folks. But all afternoon, I'm just like in my real state, which is hoodie on bad posture. Yeah. I think that I'm sure you feel this too. But like there when I was handwriting most of my. code, I would enter this sort of like euphoric flow state where I, you know, I just completely focused on a problem. And then when I started doing a lot of agent coding, I lost that for a
Starting point is 00:20:17 little bit. But now when I'm writing code, you know, Lane 8 just released a new album yesterday. You should listen to it. Put up it on your, your hood and your headphones. I'm like way, I'm like totally back in that state now. Just doing a different workflow. Yeah. And I'll give folks this sort of, you know, AI mom of the internet that I try to be, which is I do feel like a lot of people are, they kind of go into two camps. They are having more fun than they've ever had before and they're back in the flow state of like what got them into software engineering or building or technology or whatever. Or they're approaching like clot anxiety burnout breakdown because they feel this like productivity anxiety. And they're not, I think, I think what I see is that people feel like
Starting point is 00:21:04 if they're in a meeting and they're not kicking off agents, they're doing something wrong. Or if they're talking to somebody and they're not kicking off agents or doing something. And I just say, like, I like the idea of chunking your time with AI a little bit more. Yeah, yeah, yeah. I think it just narrows you on the more productive pieces of it and is also just a more enjoyable way to get stuff done. Yeah, I had a phase, which I think I'm over. You know my wife, Alana, where we would have, we have dinner together usually like pretty much every night. And so I had a phase where my laptop was not at the table, but open and on the couch.
Starting point is 00:21:41 And I think I've progressed beyond that phase now. So now the laptop is closed. And I think it's an important thing. I agree. When I was first using OpenClaught, I installed it on an old MacBook. And it would like stay open on our kitchen island, which is where all our plugs are. And it would like hover over us at dinner and hover over us at, at, at breakfast and if it got moved, I was like, where is Polly? Is she alive? Is she open? Is she
Starting point is 00:22:08 closed? So yes, close your laptop, people. Close your laptop. This episode is brought to you by persona. You're learning to build with AI, but there's an important question you need to ask. Who is actually using your product? Is it a legitimate user? A bot or a fraudster? Brex, Figma, Etsy, and Twilio trust Persona to answer that question. With Persona's identity verification platform you can create branded experiences, automate fraud prevention, and know who is human online. That makes it easy to give good users an experience that makes them feel welcome, and to stop bad actors from causing damage. And for those of you building in the AI agent space, persona helps you verify the identities of people, businesses, and developers behind agents. It's how
Starting point is 00:22:57 companies like Lithic and Skyfire are pushing the frontier of agentic commerce. Learn more at with persona.com. All right. So, you know, we covered the first half of this episode, which I think is very interesting for technical folks, how to have kind of like long running or just really diligent agents run against technical problems to give you real benchmarks about performance on changing things.
Starting point is 00:23:22 I love that. Second thing is just your core workflow on how you do coding, both how you dedicate time and then technically just what your workflow looks like. Let's talk about eval. else because I feel like this is something that's very intimidating to a lot of people. And obviously you build a product that supports this, but taking a step back, why do you think this concept is so important to understand? How can you just demystify it for folks who are a little intimidated by it? Machine learning specifically shifts the task of programming from being
Starting point is 00:23:52 about the how to being about the what. And this is true, like forget about LLMs. Like, you know, it's true with, let's say like you're back in like, you're back in, like, like middle school, you're doing like, remember, statistical regression, you're not defining the, you're computing what the slope and the Y intercept should be. You're not defining it, but you give it all the points, which are the, you know, the what, not the how, which is the slope and the Y intercept. And I think that, you know, the cool innovation around like transformers and the next token prediction task, which lets you, you know, ablate tokens and do all this cool stuff, it's all about saying like, okay, here's like the compute substrate and here's the what, which is the
Starting point is 00:24:34 outcome. It's predicting the next token. Can you go and use a lot of GPUs and figure out how to achieve that? And I think that if you take that as inspiration for anything you do with AI, then you're able to be more productive. And I think that applies to traditional programming, like what we just talked about. I'm not dictating exactly the implementation or even the set of algorithms that we're using to solve problems. I'm just trying to define very succinctly what the problem is and why it is a problem and how to assess the solutions to the problem. It also applies to building AI software, and that's what e-vals are all about. E-Vals are a methodology for you to say, this is what success looks like. In my opinion, e-vals are actually the modern version of a
Starting point is 00:25:23 PRD. So a PRD, you would say, hey, in pros, this is what, success looks like. Eval's are also often written in prose, but you supplement that with with examples. So, you know, the best PRD is they have good examples. Like maybe someone's made a demo or written out like a user story or something. It's the same thing. Just the difference with eVals is you encode those user stories in a way that can be quantified to some extent. And then you and then and then you let a model or whatever figure out the how and you are really focused on the what. Give an example of how you use this in product development just to make it a little bit more tangible for folks. Yeah, let's let's start with something that I think is quite straightforward.
Starting point is 00:26:12 And then we can venture into the less straightforward stuff as we go. So this is our UI. And like I'm working on a very simple task here, which is I'm trying to create a prompt that will be part of an agent that is good at, answering questions about brain trust documentation. So we looked at a few questions that people are asking in our docs, and we just put them into a dataset. You can, like, upload a CSV file. Like, it doesn't matter. It's just come up with a list of some questions. Or you can auto-generate them, you know, whatever, just start somewhere and wrote like a very basic prompt. We're going to use GP 5.4 Mini, and I attached an MCP server. So I attached the Brain Trust MCP server. We were also playing
Starting point is 00:26:56 around with Context 7, which indexes docs for you. You could also turn off the MCP and just see what the model already knows about your product. They're getting pretty good at knowing about every product now as well. And here I just ran it. And so you can see some of the answers. I'm going to be honest, though. I don't really want to read all of these manually. And so what I would usually do is I just start by saying, like, hey, can you come up? with a good scoring function for these outputs. I care about having concise code snippets only using one language and let's say avoiding m-dashes.
Starting point is 00:27:45 Always. Yeah, of course. And so now in this case, GPT 5.4 is going to go and actually look at all this stuff for me and it's going to look at some of the outputs, and it's going to rerun stuff, and it'll kind of do its thing, and it's going to come up with a new scoring function. One of the things, I think, by the way, that's kind of cool about this workflow in general, and I expect to see this in more products over time, is that you'll notice, like, I have this in the equivalent of, like, unhinged mode of a coding agent, which is sometimes dangerous to run on your machine,
Starting point is 00:28:21 but this agent is running inside of this playground and it's using like data and some prompts and stuff. So the risk of letting it just go and try stuff out is actually very low. And so I think I'm excited just generally about seeing agents in more environments outside of my local computer with bash and something that's like very dangerous and, you know, could screw up my life if it goes wrong. I'm excited about just having more agents that sort of run in these types of environments and do whatever they want. Like, I don't even know what this is doing right now, but we'll find out in a few minutes. I'm really excited about this. And just for people that are not watching or need just another set of context, basically what you did is you took these questions that people were asking
Starting point is 00:29:03 in your dock site or search or whatever chat bought about how the product worked, you built a little prompt to answer those questions. And then right now you're building, you're having AI build a score that tells you how well these questions are getting answered based on like a very loose definition of what you want it to do. And then is that score applied, that scoring mechanism applied across all of these so you can actually rank it? Yes, yeah, yeah.
Starting point is 00:29:30 I think it's going a little bit of Rye, actually. So I'm going to switch to this one, which is a little bit better. We do it live. We love a live demo. I know. And let's use Claude and give it a shot. So this one is a little bit cleaner,
Starting point is 00:29:45 and it actually wrote a prompt. Well, let's use a smarter model. It didn't pick the smartest model. It wrote a prompt, which takes the input and the output, and then it evaluates it on these criteria. It is a pain in the ass to write these criteria out by hand. So it's really nice to just let a model do it for you. Yep. And what we can do is run it, and it will quantify how well the model does on these criteria.
Starting point is 00:30:12 And then we can look at it like one by one or what I actually tend to do nowadays is look at it in aggregate. And so the scores will start coming in here. What's the alternative that people are? What do you see people doing as an alternative of this that you think is less effective? One is just not doing it. I know a lot of people. Yeah, I mean, I think that a lot of people, and I fall into this trap myself, despite working on this product.
Starting point is 00:30:36 So it's not, there's no judgment for doing this. But I think what a lot of people do is they just try stuff out on one or two examples and they try to generalize from that. And frankly, I don't think that's a bad idea. Like, I think that vibe checks are extremely important. But what happens is that if you do this, you end up playing kind of like a whack-a-mole game. So you might make it really good at one or two things, then you ship it, and then it's not good at something else. And what we do, we have this designer named David.
Starting point is 00:31:06 And David is really cool. Like, he dresses well. He has, like, he's into the latest music. He likes music before other people do. He told me that when he was a kid, he had. He played soccer and everyone had black shoes and he wanted the orange ones. And then the next year everyone wanted the orange shoes. So he's like that kind of person, right?
Starting point is 00:31:26 Yeah. And we have a lot of AI stuff going on. So it's not practical for David who has like the ultimate, who's the ultimate brain trust taste maker to look at everything manually. And what I actually do is I run a shit ton of e-vals to try to quantitatively improve things. And then when I feel like the evals are good and my own. less sophisticated palate thinks that the results are good. I will go to David and ask him for a vibe check.
Starting point is 00:31:53 And I probably do that once every few days. And then David gives me the vibe check. And like half the time, he just completely destroys everything that I've said. Like, hey, you know, you think it's good, but it's actually not very good. And then what happens is I will go back and try to capture what David said. And I'll say like, you know, hey, David actually thinks it's okay to show both languages as long as, you know, blah, blah, blah, blah. blah, blah. And then I will, so I'll try to sort of capture David and then improve the scores and then attempt to quantify David. And then the next time I go to him, I don't like repeat the same mistake,
Starting point is 00:32:28 but I still get his vibe check. Well, and I just have to call out the, the meta thing here in this David story, which I love, which is I have a lot of people saying, wow, if I go as so far as to turn my own taste or my own skills or my own expertise into a system, whether that system is like the David Eval, the David in a loop. judge or something else. I'm functionally just building my own replacement. And I am presuming, because I do, and it sounds like you do too, you value David more in this system. Oh, yeah, yeah, yeah. We're able to have David's palette applied to more things. Like the, I think the quality bar that we're able to hit is higher because we're able to get more things
Starting point is 00:33:12 to that bar. I love it. Okay. So this has been a powerhouse episode, one of my favorites. We've talked about a lot about, you know, solving really technical problems with AI. We've de-mistified evals a little bit for folks and shown how in a safe space, you can actually let AI. I think that's one of the meta themes of this is in a safe space, you can let AI run with a lot of autonomy. And you'll, you know, throw a lot of data at it. And you can get higher quality outcomes much more so than if you were to manually fix things or even manually evaluate things. I'm going to do a quick lightning round. and then we'll get you back to, I mean, it's almost noon.
Starting point is 00:33:51 So back to coding. It's time to code. Time to code. One, I have a question. When you say there is no excuse, there's no excuse for bugs, there's no excuse for little design nits, there's no excuse for that. How do you feel like you practically, I maybe have two questions that you can answer. They'll be our two laying around.
Starting point is 00:34:09 How do you practically manage the velocity to customers, which is do you ever get customers being like, wait, what's this, wait, what's that? Like too much features just consumed as a customer. And then, too, how do you technically manage the throughput into the system? Product building and code writing is now looks like carving rather than constructing. So it's very fast to create something that has too many features and too many buttons and too much code. And you need to spend a lot of time removing stuff. And so we actually, I would say, 9.5.
Starting point is 00:34:44 70% of the time someone complains about something, we remove the thing that was causing confusion and just make the system work better. Because we understand now that the person complained their point of view and we're able to build a product that doesn't even need the complexity that led them to the confusion in the first place. I'll give you an example. If you load a trace and you imagine hitting command F, you might in your brain think that that's just searching what's on the page. But what's on the page might be hundreds of megabytes of text and it's virtualized and it's across spans and there's also a table. So we had a very powerful search implementation that would search across the spans and rank everything and, you know, blah, blah,
Starting point is 00:35:26 all this cool stuff. And then a lot of people complained and they were just like, why is this, you know, I just hit command F. I just wanted to show the thing. And we've just, we've really simplified it over time. So I think we try to carve. And then, In terms of technically managing it, we spend a lot more time working on CI than we used to. And so I think that a lot of platform effort has shifted so that if we are really good at CI, then we're able to move faster. And if we feel like we're constrained, then instead of shipping a bunch of crappy stuff, we're like, okay, let's pause and improve CI so that we earn the ability to move faster. Okay, again, for the VP of Engineering in the back. invest in C. I've told
Starting point is 00:36:11 everybody, they're like, how do I accelerate my engineering velocity with AI? I was like fix your CI. Yeah, yeah. I mean, I think every engineer is now building a platform and upon the platform agents are doing the work that the engineers were doing manually
Starting point is 00:36:27 right? And I think that applies to evals. Like, if you're an engineering team and you're building an AI product, the number one job for you is to build a feedback loop. Meaning, you have a a pipeline that allows you to summon from the ether of real-world data and turn that into e-vals. And as an engineering team, that is your number one job.
Starting point is 00:36:48 It is not prompt engineering. It's not picking an agent framework. It's not rewriting your database, whatever. It's creating that pipeline. And the same is true. CI is that same idea but applied to software engineering. Well, and I'll give one other tip, which is you think that those evals, people are like, oh, yeah, for my AI product, I need that.
Starting point is 00:37:08 I have seen, again, I think the intercom team has run a bunch of e-vals on their internal use of quad code to figure out where engineers are hitting pain points, where people are giving up, where the agents are asking for permissions that have to be escalated. And I think that sort of analysis on your team is very, very important and ultimately gets you to these better outcomes. Okay, last question. You seem like a very recent person. So I'm presuming I'm going to get a very reasonable answer. But I ask everybody, when one of your four tabs is not doing what you want. When the evals are failing the David test, what is in your back pocket prompting strategy that you rely on? Do you yell? Do you bribe? Close the session and then I improve the evils and then I try
Starting point is 00:38:01 from scratch again. Yeah, yeah. This is a man who is on message. I mean, I'll give you like an example. We have this open source use case, sorry, a use case where we run open source models and we're running like millions of tokens per second. It's very, very high scale. So every cent matters and every bit of optimization matters. We are trying to change right now from model A to model B.
Starting point is 00:38:26 And I, again, I am someone who build software to write e-vils. I vibe coded an e-vall script and it went, it just was getting stuck. And then I read the code and it's like 3,000 lines of complete trash. And it had like all these scoring functions and all this crap and it was getting confused. And so I, on Saturday, I hand wrote like no, no co-pilot, no auto-complete. I just, partly to improve my own understanding of the problem, I hand wrote the e-vow. And then by the end of Sunday, the problem was solved.
Starting point is 00:39:03 So you shut the session, you do it yourself. Yeah, just for the e-vals, just for the e-v-v-v-l. Great. This has been so great. Where can we find you and how can we be helpful? If you are interested in e-vals or you're trying to solve AI observability problems inside of your company, please check out BrainTrust. We're at braintrust.dev at BrainTrust on X, or I'm at A-N-K-R-G-Y-L.
Starting point is 00:39:26 I'm very happy to chat. We're also hiring if you like working on these problems and you like maybe pushing the boundaries of rigor and stuff. and found this kind of stuff interesting, we'd love to work with you. Well, thank you so much for joining. This was great. It was a lot of fun. Thanks so much for watching. If you enjoyed this show, please like and subscribe here on YouTube or even better,
Starting point is 00:39:49 leave us a comment with your thoughts. You can also find this podcast on Apple Podcasts, Spotify, or your favorite podcast app. Please consider leaving us a rating and review, which will help others find the show. You can see all our episodes, and learn more about the show at how IAIIPOD.com. See you next time.

There aren't comments yet for this episode. Click on any sentence in the transcript to leave a comment.