Lauren Tan (poteto) on the trust ladder, verification and shipping 2,500 PRs a month

Analysis · Report with the audio

Introduction [0:00]

[0:00] Matt Pocock: So, hello folks. I’ve got another treat for you today. Last time on this kind of podcasty thing, I suppose, we had Uncle Bob, and we talked about software quality, we talked about agents, we talked about lots of cool stuff. Now we have, uh, an incredible guest, someone who I’m delighted to welcome on, who’s been exploding on Twitter recently about software factories, um, about increasing the quality of your work, about increasing your velocity, and climbing the trust ladder with agents so that you can ship more and more and more. And it is Potato. Welcome. Thank you so much for joining.

[0:37] Lauren Tan (poteto): Thanks for having me. Yeah, very excited to be here.

[0:39] Matt Pocock: Yeah.

[0:39] Lauren Tan (poteto): Big fan of yours.

[0:41] Matt Pocock: And a huge fan of yours.

[0:42] Lauren Tan (poteto): [laughs]

[0:42] Matt Pocock: I think people have been talking about this like it’s, like the meeting of the skill minds.

[0:47] Lauren Tan (poteto): Yes.

[0:47] Matt Pocock: The skill Mount Olympus or something, ‘cause both of us have very popular skill libraries. Um-

[0:51] Lauren Tan (poteto): Yeah.

[0:52] Matt Pocock: I’ve not… As I was saying before we started, I’ve not used a ton of yours, and, like, I want to get all of the juice out of your brain so that I can go and use it-

[1:00] Lauren Tan (poteto): Yes

[1:01] Matt Pocock: … properly and use it better. And I think where I want to start with this is you gave a talk, um, pretty recently, like, um, about 10 days ago, and posted it on X, which went absolutely nuts. It was about how I shipped 2,500 PRs last month to production. Got about three million views or something on X, and I watched it and I loved it and I recommended it, and I kind of want to run this as almost like a Q&A of that talk, basically, of giving you… ‘Cause I, it just, I just had tons of questions about it, and I wanted to dive into it. And I think where I want to start is you talk about a trust ladder with agents, where you, as you trust agents more, you can get them to do better and better things and/or scale them to, up to use more and more agents.

How the trust ladder started [1:48]

[1:48] Matt Pocock: So what is your story of how you climbed the trust ladder, and how did that work when, like, you got SpaceX and started-

[1:56] Lauren Tan (poteto): Yeah

[1:56] Matt Pocock: … climbing more and more?

[1:58] Lauren Tan (poteto): So I think this, the, the journey sort of began even before I joined Cursor, uh, which is now SpaceX AI. Uh, so the story is, um, after Meta, so I, I used to work at Meta on the React team. Uh, I took a month off, uh, ‘cause I was feeling kind of burnt out. And of course, when, what, what do you do when you’re burnt out? You go and start a new side project. Um, and so I started a side project. You know, I was, uh, of course, using AI to, to write code. Uh, but then I started to realize, uh, you know, I was spending, like, so many hours just micromanaging one agent, right? And, you know, at the time, this was back in February maybe, February, Jan, early February or January. You know, people were really obsessed with this idea of, like, orchestration.

[2:45] Lauren Tan (poteto): This was, like, you know, before, you know, things like Cursor, you know, like, the agents window was, had become popular. So people were still in, like, like, TUI land, you know, in their terminal, and they were all talking about, “Oh, here, you know, I built a custom orchestrator,” right? And so of course, I had, I was a bit nerd sniped by that. And, you know, as I was building my toy project, uh, I got nerd sniped by, “Oh, how do I make my AI coding setup more efficient?” And so, you know, I, I kind of started the journey there where I just, you know, took a step back and realized, you know, I, I was spending all this time micromanaging a single agent. You know, I was creating skills, and I was, like, finding it quite difficult to measure the output or the, the results, the impact of the skill as well.

[3:32] Lauren Tan (poteto): So I was kind of flying blind, but I was, you know, iterating really fast. Um, and, um, so that project eventually sort of became the basis of P-SAC, even though I didn’t know it at the time. Um, and a lot of… Some tricks I had learned, like building that early set of skills. Actually, it’s still open source if you wanna, if anybody wants to take a look. It’s on my GitHub, like, potato/noodle, N-O-O-D-L-E. Um, and in there you will see some skills and a brain directory. And so I was really interested in this idea of how do I, you know, extract my own ability, if that makes sense, and give it to the agent, right? ‘Cause I was, I, I realized that, you know, all I was trying to do was trying to teach the agent to write code more like me.

[4:20] Lauren Tan (poteto): You know, do, do, you, do workflows more like me. So, you know, the skills were, like, an entry point to doing that. Um, and then, you know, after I joined Cursor, uh, I was starting to work on the agents window and, uh, it had a lot of performance issues. Uh, it was, it was, it was pretty laggy. Uh, and so since I had experience working in React, I was asked, like, “Hey, do you wanna come and help out, uh, with the agents window?” Um, and so the, the s- s- beginning of the Cursor journey was very manual. Uh, I was deep in, like, looking at, like, FlameGraphs and heap snapshots and trying to see, like, why exactly is the app so slow? Uh, but then coming back to the same realization that, you know, I was sort of the bottleneck.

[5:08] Lauren Tan (poteto): Uh, I was doing everything manually. I was sort of the meat proxy in a way, or I was the meat proxy between my agent and Chrome DevTools. Uh, and I was, like, really annoyed by that, so-

[5:18] Matt Pocock: And what month of the, the year is that, let’s say? Where are we in the timeline?

[5:22] Lauren Tan (poteto): Uh, so I joined Cursor in March, so this was, like, early, early April, probably. Early April is when, you know, uh, I joined and I didn’t have any skills, right? I had, I, I sort of abandoned my personal skills ‘cause I didn’t think they’d be relevant anymore. Uh, but then working on the agents window, uh, and now working on GroqBot, uh, I sort of realized that a lot of the lessons I had learned from those skill time building the, the initial set of skills were very relevant, especially around things like verification, uh, you know, being very rigorous in your work. Um, because I think agents, from my experience, even the, the frontier ones tend to … tend to take shortcuts.

[6:09] Lauren Tan (poteto): Uh, they tend to do the easy thing. Uh, so, uh, a lot of the skills that I’ve built have been around how do I make the easy thing the right thing? You know, how do I make that the best thing?

Domain expertise and language [6:22]

[6:22] Matt Pocock: The idea of sort of distilling your expertise and turning what you do every day into processes, that’s something that feels super familiar to me. That’s exactly what I’ve been doing with the skills. And I suppose there’s something in that which is a lot of people think domain expertise is getting less useful now as people, uh, start to rely more on AI. Where— what do you think about that? Just as a sort of vibe check before we start talking about it too.

[6:50] Lauren Tan (poteto): [chuckles] I actually feel like domain expertise is, is more important than ever. You know, uh, [clears throat] I think I wrote this on my X at some point, but, you know, at times I sometimes think of, you know, AI as this… Like, e-especially as the models get smarter and smarter and more capable, and the frontier models are just getting so good. Like, I love Opus 5.5, by the way. Um, uh, you know, as the models get really, really, really good, it almost becomes like the bottleneck is no longer the agent, right? It becomes your ability to express your intent and your goals in a clear way that the agent can understand and actually carry out. And that’s why I think, you know, like, people with a lot of domain expertise are extremely…

[7:38] Lauren Tan (poteto): Have a, have a huge advantage, in my opinion, especially if you’re a little bit like, you know, tech- techno curious. You know, so I, I think of people like, you know, like, uh, like a doctor or a lawyer or, you know, someone who, who has a deep expertise in a particular non-engineering domain. And if they’re actually just a little bit tech-savvy and they can figure out how to use agents, they can actually build really, really great products, right? If they, if they have a clear enough vision in their head and they can articulate it in a way that the agent can build it, you know. I think that that is really the, the bottleneck these days is, is, like, the transfer of your intent, right, and your vision to the agent.

[8:23] Matt Pocock: Yeah. I’ve been obsessed with language basically since agents-

[8:26] Lauren Tan (poteto): Yes

[8:26] Matt Pocock: … um, dropped. Just obsessed-

[8:28] Lauren Tan (poteto): 100%. Same thing

[8:29] Matt Pocock: … and thinking constantly about the, the composition of words, how I can make things sharper, what, um, what might be hidden in the phrases-

[8:38] Lauren Tan (poteto): Yes, yes

[8:38] Matt Pocock: … that I’m using.

[8:39] Lauren Tan (poteto): Yeah.

[8:39] Matt Pocock: And it’s… And finding… What I love is when you find a word that the agent then hooks onto and then goes, “Okay, I’m gonna reinforce that word.”

[8:47] Lauren Tan (poteto): Yes.

[8:48] Matt Pocock: “I’m gonna reuse that in my thinking traces.” You know, I found that with, um, TDD was an early example of that. A lot of chat about TDD recently of like, you know, people say, “Should you use TDD with agents?” It doesn’t matter. What you’re doing is you’re f- getting the agent to think about TDD, getting it to write tests, getting it to prioritize things in a different way than it did before. And that’s why sort of grilling, I think, works effectively.

[9:09] Lauren Tan (poteto): Yeah. Sure, sure.

[9:10] Matt Pocock: Because grilling is a, you know-

[9:11] Lauren Tan (poteto): Yeah, yeah. It, it draws those words out of you, right? Or it, or at least it helps the agent understand your thinking so that it can propose those words to you, and you can pick up and say, “Yes, exactly that.”

[9:23] Matt Pocock: Mm.

[9:23] Lauren Tan (poteto): Uh, I’ve actually copied some of the, the tips that you’ve shared as well, where, you know, one of my favorite ones that you’ve shared recently, or, or not, or, like, maybe in the past couple weeks, is about, uh, reducing or eliminating tautological tests. Like, one of my pet peeves of agents is, like, all of the useless tests that they write. And so, you know, that was one thing where, you know, the word tautology, right, is, is, is, I guess, you know, not many people necessarily know that if, if, especially if English isn’t your first language. But there’s a lot of meaning to that word, and it’s like, it’s almost like compressed, right? Like, you compress a lot of intent and meaning into words. And so I, I, I totally a-agree with you. Like, I think language… I’ve always been interested in language, actually, uh, s- like programming languages, natural human languages, and how they came to be.

[10:13] Lauren Tan (poteto): And it’s so interesting that now with agents, it’s sort of like this meeting of natural language with programming language. But it’s all, it’s all language under the hood. It’s all communication.

[10:23] Matt Pocock: Totally. I did a drama degree, right? So, you know, I’ve been thinking about language and Shakespeare and stuff for a long time.

[10:28] Lauren Tan (poteto): [chuckles]

[10:28] Matt Pocock: And so this all feels very familiar.

[10:30] Lauren Tan (poteto): Yeah.

Michelin kitchen instead of software factory [10:31]

[10:31] Matt Pocock: Um, so okay. There’s sort of… Before we get into, like… ‘Cause I think the thing I want from you is, like, software factory stuff, right? Software factory is the big buzzword. Software factory is the thing that I’m thinking about too. I’m sort of releasing a course in that direction too.

[10:46] Lauren Tan (poteto): Mm-hmm.

[10:47] Matt Pocock: And it’s this sort of scaling yourself up to un- unrealistic numbers of PRs basically, or PR numbers that sound ridiculous to people who don’t understand how this works. So where I wanna get to is sort of from people who are doing kind of like one to five agents today up to, you know, hundreds of agents running at once, and how that sort of functions. And so I’d love to hear about your metaphor of the Michelin kitchen instead of the software factory, ‘cause I think that says a bit about-

[11:16] Lauren Tan (poteto): Yes

[11:16] Matt Pocock: … the way you think about this stuff.

[11:18] Lauren Tan (poteto): Yes. Yeah. I, I, I’ve, I’ve never really liked the term software factory. Not because, you know, it’s not accurate, but I think, I think the… a lot of people when they think factory, right, they don’t necessarily equate that with quality or craft, right? Things which are very important to me and a lot of people and technologists who work, you know, building products. We care about the user experience. We care about the things we’re building. So whi- so while I do think software factory is an apt term, it also, I guess, maybe conjures up negative, you know, may- maybe sometimes negative connotations. So Michelin kitchen is the thing that I’ve sort of landed on, where it’s much more, I feel like it’s much more aspirational.

[12:03] Lauren Tan (poteto): And, uh, I like the metaphor a lot ‘cause, you know, I like food. I’m called Potato, of course, uh, and I like cooking. [chuckles] And I see a lot of parallels, right? Like with food, right? When you’re cooking a meal for yourself, for example, [clears throat] it’s both utilitarian, like you’re trying to just feed yourself, right? And, and survive. Uh, but it can actually be transformed into art, right? And that’s what, what a Michelin-starred chef or even just a chef or a cook can do with food, is take something very ordinary and turn it into a delicious meal that, you know, takes you back to your childhood days or something like that. Um, and so it almost like mirrors that trust ladder that I talk about, where, uh, you can sort of imagine your own journey as a home cook, right?

[12:50] Lauren Tan (poteto): Uh, as a home cook, you’re doing all of the food, the cooking yourself. You cut all the vegetables, you do all the prep work, you do all the cleanup. You know, you are the one man or a one woman show really. Um, and it’s an interesting thought experiment, like, okay, if you were to cook a meal and then you add people, right? Your, your, your, your partner joining too, your brother, your sister, and now suddenly you have your whole family in the kitchen. I think most people would get very stressed by that, right? The thought of, “Oh, so many people are just mucking around in my kitchen. They have no, [chuckles] no idea where all the utensils are. They’re making a huge mess.”

[13:27] Matt Pocock: I have a max capacity of one person in the kitchen.

[13:29] Lauren Tan (poteto): Yeah, exactly.

[13:29] Matt Pocock: And I’m always like… Yeah, absolutely.

[13:30] Lauren Tan (poteto): So I feel like that, that’s really apt because when you ask yourself that question of how do I go from being a solo cook, right? To having an army or even not even, not even an army, but a few sous chefs, right? That, that are helping me in the kitchen. How do I think about dividing the work in a way that makes sense? You know, I’m not dividing work just for the sake of it, but in a way that actually makes the sum the to- the, the better than, you know, the total of its parts. And so the Michelin kitchen metaphor to me like works really well in that regard because, you know, as a chef, you’re… You know, if you become a chef, you’re in a position where you’re not necessarily cooking all the food yourself anymore, but you are thinking, you’re almost like the tech lead, right?

[14:17] Lauren Tan (poteto): For the kitchen, where, uh, you know, chefs have to think about, you know, not just cooking, but they have to basically organize the whole kitchen, and they’re like the CEO of the kitchen. They have to think about when do you order ingredients? How do you store them? How do you prepare them? When do they have to be prepared? You know, it’s a whole, it’s a whole job, right? That’s not just cooking. Um, and I think that, again, it mirrors so much of how engineers write code today, where you are not writing the code yourself anymore. You have agents, right? But you as the human are still responsible for the final outcome, right? Your name still is associated with the work that you do, your reputation, and, you know. So how you set up your kitchen, right? And how you set up your skills, your environment, your code base, I think are ultimately the new ingredients that go into, um, building product.

Verification and deterministic CLIs [15:12]

[15:12] Matt Pocock: Yeah. I think what I love about your approach is the amount of focus that you put into the environment that the agent operates in, right? ‘Cause I think a lot of people, they think, “Right, the agent is good. I’m probably not gonna be able to make it better. Let’s just trust what these magic model people have put into the harness and the model combination. Uh, there’s nothing I can really do. Like, I can’t mess about with Claw Code’s internals or something,” or whatever you’re using. Um, but what I love about your approach, and it’s something I advocate for too, is that you can change the environment the agent operates in, right? You can make changes in the code base and also give it tools for verification as well, and allow it to verify its own work. So the thing I, I loved about watching that talk is the amount of focus you put in verification, and like that is the lever that you can start to generate trust.

[16:05] Matt Pocock: Can you talk about that and what that concretely looks like? Let’s start like looking at practical ways that people can improve their own processes, their own kitchens.

[16:14] Lauren Tan (poteto): Yeah. I’ve, I’ve, I’ve said this a lot actually, that, you know, even if you don’t use PSAC or, you know, your skills, I think that the single most important skill that should be in your toolkit is verification. Because without verification… And for, for, by the way, for those watching who don’t know what that means, it’s this idea that you can give, you can sort of give your agent h- uh, hands and eyes in a way. It… That’s the, the analogy I like, where the agent is able to run the code, right? And actually, uh, interact with it like a normal human user would, and also do things like, you know, debug it, you know, take traces and snapshots. Um, and, uh, funnily enough, like that was actually the first skill I built when I joined Cursor, uh, that gave me a lot of…

[17:04] Lauren Tan (poteto): That was, that was the thing that actually started to let me ascend the trust ladder a little bit in a way that some of the other skills I had looked at or built had not really let me do. Because no matter how good, you know, some of the other skills were, like the how skill, the why skill, the unslop skill were, I was still relying on me, right? As the proxy between my agent and the output, so that, you know, if the agent can’t actually see the result of its work, there’s no way it can actually iterate. Right? And so this is where people start to talk about loops, this idea of a loop. And really, I think the term loop, you know, seems kind of, uh, almost abstract. Like people are like, “What, what, what, what is a loop? What is an agent loop?” But really, to me, like the most important part of a loop that allows it to be a loop is the verification part, because the agent is able to, to verify its own work and, uh, you know, that takes you out of the equation, where now I can actually do something like…

[18:06] Lauren Tan (poteto): So the very, one of the very first use cases I had for verification was, you know, like the performance work that I was doing on Cursor’s agent window. And I want, I wanted to get to a point where I could do something called hill climbing, uh, which is a term that I, I think the labs, uh, talk about a lot, which is this idea that, you know, you have some kind of rubric or a way to judge or score something, and now because you have a loop, you can have an agent continually try to make improvements to that. Uh, I think Karpathy, Andrej Karpathy also famously released, uh, something called AutoResearch that has a lot of these ideas. Um, but yeah, verification, I would say, is probably the most important skill in P-SAC, uh, and [clears throat] many other, you know, tool sets.

[18:53] Lauren Tan (poteto): Uh, and I think it’s the most important thing to focus on. So a lot of the… A lot of… Uh, I spent a lot of time actually, you know, tuning the verification, the creative verification skill, um, and also internally the, the— we have so many verification skills now. Like, every app that Cursor has or Spacek’s AI has, has a, uh, verification skill that is auto-maintained as well. Uh, and it’s become critical infrastructure for our team ‘cause everybody uses it.

[19:24] Matt Pocock: And you went pretty far with that too, right? Like, you had a, um… In your talk, I saw that you actually built a custom CLI for that too. So what does that CLI do? Like, how does it execute things, and why did you… I mean, that’s proof of how deep you’re going, right?

[19:37] Lauren Tan (poteto): Right.

[19:37] Matt Pocock: Of how much you’re pushing that.

[19:39] Lauren Tan (poteto): Yeah. So this is actually a tip I learned early on, where, um, I guess, you know, back in January or, or, or late last year, the thing that people were very concerned about was context window, right? That was the big… The big topic at the time was, how do I, you know, manage the context window? Because, you know, compaction, summarization wasn’t really that good yet, and people were always… People had this… There was als-almost this meme in the community that, you know, once your agent summarized or com- or compacted once, it would become sort of stupid, right, for the rest of your session. So there was a lot of thinking a-around, like, [lips smack] you know, being very efficient with your context usage. And so that was actually the inspiration for some of the, uh, the CLI work inside of the verification skills.

[20:32] Lauren Tan (poteto): I guess now it’s less so about context because, uh, you know, agents are much better, or harnesses have gotten a lot better with summarization. Um, I still think there’s some benefits to, you know, uh, having a clean context window. Uh, so the CLI is really just more of a way for me to take the deterministic parts of what the skill does and encode that into a script or a CLI to reduce, to kind of take away the judgment that would otherwise unnecessarily be used. Because with judgment… So in, in… I also think of, you know, agents and skills in sort of like… As, like, a gradient. You have some parts of the work that are entirely judgment-based, right?

[21:20] Lauren Tan (poteto): You know, it’s something that requires thought, you know, putting together multiple pieces of context, thinking. Um, and then you have the more deterministic parts like, I don’t know, if you wanted to, uh, refactor some code, right, from one pattern to another, that’s very mechanical, right? You don’t, you don’t need an agent to think about it and come up with it in a novel way each time, right? And so that, that was really the inspiration for the CLI, and you’ll see this in a lot of the other skills that I built, is, like, I try to extract out the deterministic parts and turn that into code and just leave only the parts that actually require judgment to the agent. [lips smack] So in a way, I think of the skill as kind of like a wrapper, right? It’s a wrapper with some light instructions around how to use these custom tools that are inside of the skill.

[22:09] Lauren Tan (poteto): Um, but yeah, that… I don’t think the CLI is really that interesting in its own, really. It’s not, like, a novel piece of software. It’s just something that interacts with, like, Playwright and the Chrome Dev, DevTools protocol and calls a bunch of APIs. It’s like, it’s just a bunch of glue.

[22:24] Matt Pocock: No, it’s fascinating, ‘cause it’s a way of hiding information from the skill, right? It’s a way of conserving the skill, keeping the skill quite small, I imagine, and then you’re able to delegate more of the complicated deterministic stuff into a script within the skill. So you… It’s almost you’re compressing information and making the agent do more consistent things more consistently.

[22:45] Lauren Tan (poteto): Yeah.

[22:45] Matt Pocock: That’s fascinating. I really like-

[22:47] Lauren Tan (poteto): Yeah, and it, it [clears throat] it also helps, I guess, if you care about context window. It, it does help because now the agent doesn’t need to, uh, you know, re-reinvent, uh, things. ‘Cause, uh, one thing I had noticed early on when we didn’t have a CLI was that, uh, while the, the agent would try to verify a sort of… It would basically rebuild the world each time, and then every agent did it differently. And I was starting to notice, like, that’s very inefficient, right? I was wasting… It, it was actually not just about context usage, but also speed, right? Like, ‘cause now an agent had to actually go off and write the scripts or the CLI and test it and, you know, and it doesn’t work, and the last agent did it, and it worked, but it discarded it. So it was just very obvious at that point, like, I should just turn this into a CLI and put that inside of the skill, uh, so that every agent that uses it now benefits from that same piece.

[23:39] Lauren Tan (poteto): Um, but I, I also think, like, you know, it’s a good push for people to think about, is how much of your skills and rules could actually be de-deterministic? Um, that’s like another core thing or, or core… One of my core principles that I like to think about is, yeah, how do I, uh, make very efficient use of determinism and non-determinism and, you know, let agents shine at the non-deterministic parts, right? ‘Cause that’s what they’re trained to do. Um, and the other parts which are much more mechanical or, you know, straightforward can be just pure determinism. Um, and you’ll see this as well for things like doing migrations, um, which is another big thing that I’ve, I’ve talked about is, you know, going from one technology to another, especially one that is better for agents, right?

[24:33] Lauren Tan (poteto): And a, a lot of how you can do that migration is I think through things like scripts and CLIs, like the deterministic parts, like code mods, you know, like crawling the AST, the abstract syntax tree and, and transforming code literally mechanically, right? Like a script does it for you instead of the agent.

Environment, constraints and the Dune framework [24:52]

[24:52] Matt Pocock: Totally makes sense. I, I mean, I think what… There’s another thing there, which is you’re taking stuff away from the agent, and you’re kind of putting it in the environment too a little bit, which is-

[25:06] Lauren Tan (poteto): Yeah

[25:06] Matt Pocock: … let’s say you have a, a thing that you notice the agent always gets wrong. You want to make that, um, just impossible within the environment, and that sort of comes down to code quality as well. I mean, I talk about a lot like having a, what a good code base means, right? What is a good code base? And I… There’s a definition I like, which is a, a good code base is a code base that’s easy to make changes in, right?

[25:32] Lauren Tan (poteto): Mm-hmm.

[25:32] Matt Pocock: Easy to, um, change stuff without things screwing up, and that means that you have a lot of guardrails, that you have a lot of, um, the agent or the human is constrained to very narrow paths, and that’s again something you talk about in your talk.

[25:46] Lauren Tan (poteto): Mm-hmm.

[25:46] Matt Pocock: And you talk about this not only on the kind of, sort of automated checks side of things, so linting and time checking, blah, blah, blah, but also in the way you design abstractions, and you guys even, I think, built a framework, uh, for your agent to work in too. I think what I’d love to hear is you obviously think of that as very important, right? And-

[26:07] Lauren Tan (poteto): Mm-hmm

[26:07] Matt Pocock: … that’s… How important is that compared to other things you could be doing, like building features or shipping work?

[26:14] Lauren Tan (poteto): Yeah, I think that’s a, um… I almost feel like the new job of the engineer is really to, to spend time on the environment. Um, I almost actually wrote a tweet about this yesterday, but I, but I didn’t. But I think that, I think that y- you know, if you, if you haven’t really spent time, you know, building trust in your agents and building skills and tools, you can get stuck in this mode where you’re very low on that trust ladder, right? You don’t have a lot of trust in your agent’s work, and so the only way to cope in that, when you’re in that situation is just to kind of lock in and micromanage your agents, and that’s very time-consuming. And when you’re stuck in that mode, you don’t really have the luxury to think about, you know, [lips smack] uh, higher level things, like, like, like making yourself more productive.

[27:05] Lauren Tan (poteto): In the same way that, uh, I guess the analogy would be like if you’ve never taken the time to learn, like, your tools or as a developer when you’re writing code yourself and, you know, you, you ha- you’ve never heard of VS Code, you’ve never heard of Vim, you only knew about Notepad, [chuckles] uh, and you hadn’t, hadn’t even heard about Git. That’s sort of the analogy. It’s like you, you haven’t spent the time sharpening your own knives, right? And so of course, if you have a dull knife, then everything can take a long time, um, and you’re gonna, you’re be- you’re just gonna be… And, and especially if, you know, deadlines are looming, then you don’t have the… You- now you’re stuck in this rut, right? Where, where you, you, you don’t have sharp knives, you don’t have good tools, but you’re under all this pressure to ship, right?

[27:50] Lauren Tan (poteto): And so all you can do is just focus on that. But I do think that, you know, if you can find yourself the time to actually spend time thinking about your setup, it’s, again, going back to the cooking, you know, analogy. It’s like, uh, you know, if you, for example, if, if cutting, cutting, cutting the garlic is like super slow, right? There are garlic mashers, right? You can, you can buy it and you put it in the thing and you like squeeze it out, right? It’s super fast. Uh, machines and tools were invented for a reason, right? And so if you’re operating a Michelin kitchen and your sh- your, your cooks had no tools, then of course everything’s gonna be extremely inefficient. Very, very… You know, every, every, every cook is gonna make something up of their own. So I think the tools and the determinism to me are, you know, taking that part away and, and just like you said about constraints as well, it’s…

[28:44] Lauren Tan (poteto): The constraints are, are to me as well, like… Uh, actually a slight tangent on that is, uh, uh, I think we should talk about TypeScript [chuckles] ‘cause like we, we actually both share like a background in TypeScript where, you know, you obviously have done a lot of work with TypeScript and total TypeScript and, you know, you’re a leader in that space. And I, uh, had adopted TypeScript pretty early and I had given like a talk or two at TypeScript Conf, uh, many years ago. And so one of the, the talk that I did actually was about type systems and constraining the, constraining types. Like one of my most favorite things about TypeScript is actually type narrowing, right? This idea that you go from a very broad type, right, that could be anything, and then you, through type guards and, you know, type narrowing and, you know, runtime checks, you can actually narrow the space and say like, “Oh, this isn’t just a string.

[29:38] Lauren Tan (poteto): This is a very special type of string. It’s a constant,” right? Like I, but I, I determine that through the type system. And in a way it’s like, uh, there’s a lot of parallels I think to that with constraints in your code base, where it’s, you’re, you’re constraining the space, right? If you, if you think about category theory as well, you know, you’re constraining the, the number of possible types, right, that can, can exist, and you’re saying there’s only one type, right? And for, for us, like that framework that I’m building called Dune, uh, uh, it’s not an open source framework. It’s, the, the way I describe it to pe- people, it’s, it’s kind of like a, our internal Next.js for our Electron apps. Uh, but it comes with a lot of really, really restrictive lint rules, and the code base is designed in a way that there’s really only one way to do something.

[30:31] Lauren Tan (poteto): So we make use a lot, uh, uh, we make use of a lot of conventional patterns. So, like, features all go into a specific directory, where every feature has its own directory. As an example, you know, there’s like a, a thing that discovers features, like through a registry and, like, crawling the code base and stuff like that. But this conventional pattern and the lint rules make for an environment where it’s actually very hard to write bad code. And that sort of frees up the… It, it both frees up your own mental, uh, you know, capacity as well as the agent n- sort of doesn’t have to think about that anymore, where it’s just like, “Oh, there’s only, there’s… I should just…

[31:16] Lauren Tan (poteto): If I wanna add a new feature, it just goes in the feature, the new feature directory, and all the code goes in there, and I’m not gonna append to a God file,” right? That was really actually the inspiration for those feature directories is the very first couple of versions of GroqBot were composed of, like, eight God files, which were, like, at least 10,000 lines long, if not longer. And so I, I kind of had to break it up into smaller pieces. Uh, but it was just observing, you know… Actually, that’s another important part, is observing how agents fail, and then every time you see a mistake, every time you see something that could be done better, you think, you step back and think, “How do I turn this into a lint rule? How do I make it so that the code base makes this impossible?”

[32:02] Lauren Tan (poteto): Right? And it comes back to me for my, you know, my background learning TypeScript and types, uh, type systems, is how do I constrain the space so that, you know, I know precisely what I’m working with. And I think, yeah, there’s a lot of parallels there.

[32:18] Matt Pocock: Totally makes sense. And don’t… I mean, it’s funny that you mention TypeScript and God files-

[32:23] Lauren Tan (poteto): [laughs]

[32:23] Matt Pocock: … in the same sentence, ‘cause-

[32:24] Lauren Tan (poteto): Yeah

[32:24] Matt Pocock: … TypeScript famously has a 25,000-line type, uh, God file.

[32:27] Lauren Tan (poteto): Yeah, I realized. I already knew that. [laughs]

[32:29] Matt Pocock: [laughs] Although I don’t know if they’ve rewritten that in Go. They probably have, haven’t they? Um, okay. So environment is important. You should watch your agent like a hawk to make sure that any mistakes it makes, you turn them into things in the environment. And the benefit of the environment is you’re not overloading your agent, right? In terms of rules, in terms of things it has to remember. It’s just in the environment, and so it stumbles into the rules and-

[32:54] Lauren Tan (poteto): Exactly

Scaling: inner and outer loops [32:55]

[32:55] Matt Pocock: … um, you know, bounces off them and hits them at the right moment. So okay, we still haven’t talked about the 2,500 PRs.

[33:02] Lauren Tan (poteto): Mm-hmm.

[33:02] Matt Pocock: Where do those come from? Like, how do you… You’ve built your trust ladder. You’ve worked on your environment, and you understand, okay, um, I now want to scale up. So what are the mechanics of that scaling? Are you, um, initiating 2,500, like, chats per month? That can’t be right. So there must be… Are there any kind of automated triggers that trigger stuff in your repo? Like-

[33:28] Lauren Tan (poteto): Mm-hmm

[33:28] Matt Pocock: … how do you get the software factory kind of triggering work by itself?

[33:32] Lauren Tan (poteto): Right. Um, I’ll definitely say that the prerequisite to, you know, something like a, a very high volume of, of pull requests, um, is the environment, you know, the, the stuff we just talked about, where I definitely would not have been able to do this if I had not spent the time, you know, thinking about the kitchen, right, and the knives and the tools for my agents. And so in a way, I, I think of this as I’ve spent the time building one kitchen and one restaurant, and now I, I’m in a position where I don’t actually have to be there anymore because the environment, [chuckles] you know, the, the same analogy, right? It works really well.

[34:14] Matt Pocock: It’s a great analogy. You, you, you’ve opened-

[34:14] Lauren Tan (poteto): Yeah, I know. That’s why

[34:15] Matt Pocock: … a chain of restaurants, right? That’s fantastic.

[34:16] Lauren Tan (poteto): Yeah, exactly.

[34:17] Matt Pocock: Yeah.

[34:17] Lauren Tan (poteto): Yeah, exactly. It’s like you’re Gordon Ramsay, and, you know, you, you’ve taught your executive chef, like, all the tricks of the, of coming up with a great menu, uh, and, like, the kitchen is set up really well. Everything’s just perfect, and you’re now in a position where you can open your second, your third restaurant. And I guess I, I sort of see each project that I work on, like each big chat is sort of like a restaurant, right? And, and I’m, I’m, I, I have multiple of them operating at the same time, and I’m sort of, like, helicoptering between them, sometimes some more than others, depending on how in the loop I am. But yeah, definitely I think there’s, there, there, there are external triggers and context that those projects don’t have that for a long time I was the proxy for that.

[35:08] Lauren Tan (poteto): So, uh, the best example I have is, like, you know, you have a project that’s working on a feature, uh, or you’re trying to fix a bug, and you’re getting bug reports, but the bug reports are going to things like Slack or Linear or X, right? And these are external systems that aren’t connected to your inner loop. So I like to talk about this outer loop and the inner loop. Uh, I don’t know if I’m using the definition correctly, but to me, my inner loop is, like, basically my engineers, my agent engineers working on the code to, and building towards an intent or snapshot of my intent, right? And the thing about that is that the snapshot can go stale, right? New information comes to light that I then have to be the proxy of and, you know, transfer that context to my agent.

[35:58] Lauren Tan (poteto): So, you know, if you, if you don’t have these triggers pulling information back into the inner loop, then you sort of have to play that role where you’re, you’re off, you know, in Slack or X or, or whatever, and you’re gathering context, right? You’re getting context about bug reports, about feature requests, about, you know, something someone said about, you know, our backend infrastructure has some limitation. You know, all that information, you have to ferry that across to your agent. So that’s where I think, like, tools like GroqBot … are really good because they help you automate the outer loop as well. And when you connect those two loops, it’s very, very powerful because now all of a sudden, your agents have the ability to get context for their— for themselves, right?

[36:46] Lauren Tan (poteto): If, for example, uh, you know, either through, uh, just as, as a simple example, like maybe you have the Slack MCP, right? Or you have, uh, your own harness, right, that you’ve built a Slack subscription into for a particular Slack channel. Now, all of a sudden, you can tell your agents, “Okay, subscribe to this Slack channel. Every time there’s a, uh, you know, bug report about something, go off and triage that thing,” right? “Go reproduce the issue,” right, using the verification skills that we’ve already spent time building and all of those other skills that we’ve set up, so that I have a lot of trust, right? I have a lot of trust that these agents can actually go off and understand the bug, you know, uh, verify that the bug actually still exists on main, and it wasn’t something about, you know, maybe the user’s setup or their data or maybe, I don’t know, they didn’t install a dependency or something like that.

[37:43] Lauren Tan (poteto): Like, uh, basically I think, uh, creating that… Yeah, creating those two loops and connecting them is really a very important part of the job these days, um, especially if you are thinking about how to scale yourself. So a big theme here is really just like always thinking about, like, what— where am I the bottleneck in this process? Why do my agents need me, you know, to answer this question? I, I always like to think about that, and so I try to think about how do I actually get the agent to answer its own question, right? But not by hallucinating, not by guessing, but actually real data. And, you know, a lot of people talk about this idea of a company brain, right, or a context graph. I feel like those terms are unnecessarily complex, uh, or even abstract.

[38:33] Lauren Tan (poteto): To me, it’s just about, uh, how do I take information that my agent needs that I would otherwise have to go and pass it myself, and just teach it how to do it, right? And that removes me from the equation. And so how I arrive at 2,000 or however many PRs is the fact that I have all these loops set up, right? And so, uh, it l- allows me to open chain restaurants, right? I can, I can really parallelize myself. So yeah, I’m not sitting there creating 2,500 chats, right? Of course. It’s really like these projects are, um… Actually, Cursor has a new feature called Projects, which are these like coordinator agents. Um, and so the coordination— co- coordinator agents are really good at sort of delegating and not doing work of their own, but they manage and supervise like almost a list of tasks, and they spawn sub-agents to go and do them.

[39:28] Lauren Tan (poteto): And so I’m just constantly feeding context or teaching the agents how to get their own context, and then they’re going off and doing the work for me. Uh, and really the big… The last thing I’ll say to this is like the big unlock for me for getting to 2,000 PRs is starting from the question and working backwards of: How do I get to the point where my agent can merge its own code? Because the obvious thing people ask me when, when they, when I tell them, “Oh, I shipped 2,000… 2,500 pull requests last month,” they’ll be like, “How did you review that?” Right? “That, that’s a lot of PRs to review.” Like, “Your team must hate you.” Um-

[40:05] Matt Pocock: Do you, do you mind if we go there in a second? Because I’ve got-

[40:07] Lauren Tan (poteto): Yes, absolutely

[40:08] Matt Pocock: … I’ve got a good question about that.

[40:09] Lauren Tan (poteto): Yeah, yeah, yeah.

Concrete setup: GroqBot and Cursor Projects [40:10]

[40:10] Matt Pocock: I wanna… Like this analogy is great. I wanna like deepen it a bit, which is before, if you’re like manually in- initiating all those chats, it’s like you’re bringing the orders to your chefs manually, right? Whereas if you’ve got an agent-

[40:23] Lauren Tan (poteto): Right, right

[40:23] Matt Pocock: … uh, sort of like doing the expo, then you’re able to sort of run it itself. What is, what does that concretely look like then? You’ve got these sort of GroqBots that are unsubscribing to channels, pulling in Slack messages, and you, it sounds like, have a couple of coordinator agents or like chief of staff agents that mon- like monitor that or something. Like when you look at your computer to manage your agents-

[40:46] Lauren Tan (poteto): Yep

[40:46] Matt Pocock: … what does it look like?

[40:49] Lauren Tan (poteto): Yeah. So, [clears throat] so, uh, this is, I guess, somewhat confusing, but we’re working on, you know, simplifying and unifying. But so, uh, there’s GroqBot, uh, which… Or, you know, you can use other tools of course as well. But I, I largely think of these tools as like your outer loop. These are tools like, you know, GroqBot that have connectors, right? These are connectors. I guess they… Pe- a lot of people call them personal agents. Um, but they’re connectors to things like your email, your calendar, Slack, uh, P- Plaid, I don’t know, like all these different services, and they’re a great source of pulling context into your work. So the same way that a human, like, you know, if I were, if I was a manager and I was leading a team of engineers, um, you know, like when I used to work in Netflix, one of the biggest things that managers would talk about was this idea of context, not control, which funnily enough, you know-

[41:45] Matt Pocock: [chuckles] Yeah

[41:46] Lauren Tan (poteto): … has so much, uh, has so much, uh, carry over to the agents world, uh, of, you know, you, you know, you of, you of course can drive to an outcome you want by control, right? Like by micromanaging. But what you want is to provide context instead, right? Like, teach the agent, teach your engineers how to be self-sufficient, and then you don’t have to micromanage them.

[42:08] Matt Pocock: Mm-hmm.

[42:09] Lauren Tan (poteto): Um, and so I see a lot of parallels there. Uh, but yeah, GroqBot… So concretely, I, I have some GroqBots that look at my Slack channels, look at my X, uh, or my emails, uh, or, or Linear, and they’re just constantly… They have routines that subscribe, so they’re constantly watching. And I have— I, I’ll tell them things like, you know, uh, “Watch for issues with- … uh, bugs in the GraphBot desktop app as an example. Uh, and whenever you find that, send it to my Cursor project. So one of the really cool things about GraphBot is it connects to Cursor. So Cursor has, uh, like I, I just mentioned, this new feature called Projects, and a project is really a, uh, again, like a… You get a coordinator agent that’s in the cloud.

[42:56] Lauren Tan (poteto): It has its own computer, and all it really does is, like, it’s a manager of agents. It’s like your executive chef, right? Your, your chief of staff. It doesn’t do the work itself. It delegates, right, and orchestrates and manages the work of other sub-agents to, you know, that report to your chief, your chief, uh, of staff. And it basically is responsible for driving the work forward and managing things and, uh, passing context to them. So-

[43:27] Matt Pocock: So if you get a sudden burst of issues, let’s say you get 30 issues at once in one payload or something, or very quickly, the coordinator agent can figure it out and delegate-

[43:34] Lauren Tan (poteto): Yeah, exactly. It, it gets like, uh, you know, 30, the, the 30 or so payloads and spawns a sub-agent or a single coordinator agent. It can actually do a, a bunch of different topologies of agents, and it will sort of figure out the best way to, uh, you know, efficiently distribute the tasks to your team of agents. Um, so I use pr- uh, Cursor Projects a lot, um, and I also use GraphBot a lot, and Cursor Projects are my inner loop and GraphBot is my outer loop. GraphBot takes all the context, external context, gives it to the projects ‘cause it can actually just send messages to those projects, right? You don’t even have to open Cursor. You can just tell your GraphBot, “Okay, create a project,” right, “for these series of tasks,” ‘cause they’re all related, right?

[44:22] Lauren Tan (poteto): Maybe as an example, you know, you had a, a, a big burst of issues that are all about performance, right? Your app is slow, uh, and they’re all connected, right? Maybe some of them even have a similar fix, right? But, and you can certainly go off and just spawn one agent per task, but then you’ve lost that sort of thread between them, right? And, and you may duplicate work or you may not really think about the higher level problem. You know, sometimes when you, you, you solve bugs, you know, it helps to have multiple bug reports that are, are slightly different because it helps you really, you know, zoom out and see, “Actually, you know, the problem, when I looked at this one report, I thought the bug was here, but actually when, when I see the other multitude of bugs, it’s actually up here.” Right?

[45:07] Matt Pocock: Yeah, got you. So that, that’s why you have so many agents in that loop then, right?

[45:11] Lauren Tan (poteto): Right.

[45:11] Matt Pocock: Because it’s not just you have, um, like you have a bug report comes in, you spawn a single agent to look at that bug report. That a- that single agent will be duplicating work with other, um, other agents, right? Because if there are multiple bug reports coming in for the same thing, that can be duplicated work.

[45:26] Lauren Tan (poteto): Yeah.

[45:26] Matt Pocock: Fascinating.

[45:28] Lauren Tan (poteto): Yeah.

Gardening and buffered routines [45:28]

[45:28] Matt Pocock: That’s really fascinating. Okay. And so this, just this endless series of triggers, um, coming from real users reporting real reports, um, builds up this sort of… A- and accelerates the factory, sort of adds more orders in. Other than bug reports, are there any other sources that you use for like, um, accelerating, for pushing these PRs?

[45:51] Lauren Tan (poteto): Uh, well, funnily enough, it’s, uh, some of it comes from, uh, reading the code too. So I guess I have sort of, uh… Well, so to clarify that, you know, the 2,500 PRs, they’re not obviously like 2,500 features, right? They are… A lot of the work actually is spent on gardening, like another term that I really love, uh, where… So I guess this is more important when you have a big team of engineers, human engineers that you work with, where… And also this goes back a little bit to what I was talking about with the environment. You know, setting up a really good environment that doesn’t just help you and your agents, but everybody on your team, right? Think of a new hire who doesn’t have a lot of context on all of your engineering practices joining your, your team, and if you have a really good environment, they can be productive from day one, right?

[46:43] Lauren Tan (poteto): They can… They don’t have to like, you know, make, open a bunch of low-quality PRs. They can start, you know, they can start just tr- churning out really good code. Um, and uh, yeah, I think I, I, I sort of lost my train of thought. Um-

[46:58] Matt Pocock: I, I’ve got a, I’ve got a follow-up, which is what’s-

[47:00] Lauren Tan (poteto): Oh, yeah

[47:00] Matt Pocock: … what are the mechanics of like triggering, like how… When, when do you trigger a, a, a, a agent to go and look at the code, right? ‘Cause some people might say-

[47:11] Lauren Tan (poteto): Right

[47:11] Matt Pocock: … “Oh, let’s just do that every hour or something, or like on a cron job,” or what’s-

[47:16] Lauren Tan (poteto): Oh, yeah, yeah, yeah. I, I-

[47:17] Matt Pocock: How does-

[47:17] Lauren Tan (poteto): Yeah. Uh, I saw some of your recent tweets as well about like, you know, the, some of the tweets you’ve been doing, which are great for setting up these routines. Uh, I have some routines like that as well. Um, so, uh, one of them is, uh, like looking through… Just as a, another simple example is, you know, React has a lot of foot guns, um, so, uh, as, as I’m sure you’re aware. And so I have an agent that’s just constantly looking for bad patterns, and the interesting thing about that one is that I don’t actually tell it to fix the issue first. I tell it to append it to a document, and then every couple of days I look at it and I see actually these are all the same thing, you know? And so that gives me, you know, you almost want like a buffer, a queue.

[48:06] Lauren Tan (poteto): Sometimes that’s actually more effective than just spawning off a couple of, like a, a lot of sub-agents to fix every single thing. ‘Cause when you are in kind of pure execution mode and just trying to like f- you know, f- uh, you know, execute on the orders that are coming in very fast, you sometimes miss the big picture. So sometimes having a buffer forces you to think about the big picture because you, you, you have these artifacts and things that you can look at as a human, um, and sort of- Use your own human judgment to… Or I guess you can use an agent to do that as well. But you give the agent and yourself a way to identify patterns, right, that you might otherwise miss if you’re just only solving each bug at a time.

[48:52] Lauren Tan (poteto): And that’s also really the benefit of having something like a chief of staff agent, is, uh, it can see the forest, right, uh, in addition to actually doing the execution.

[49:04] Matt Pocock: Fascinating. That’s, I mean, my brain is exploding a bit there with the sort of chief of staff of the software factory. I, I might have to change some of the course that I’m filming next week. That’s annoying. [laughs]

[49:15] Lauren Tan (poteto): [laughs]

Review, sampling and the dark factory [49:15]

[49:15] Matt Pocock: Uh, all right. Let’s talk about, let’s talk about review, right?

[49:18] Lauren Tan (poteto): Yeah.

[49:18] Matt Pocock: ‘Cause this is the reply that you get.

[49:19] Lauren Tan (poteto): Yes.

[49:19] Matt Pocock: You know, is did you read, did you taste all 2,500 of those dishes as they swept past you? And I assume the answer is a variety, is a version of no.

[49:31] Lauren Tan (poteto): [clears throat] Yeah. I, I think you, you, you don’t want to be in a position where you’re not tasting your food ever again. Uh, but you also, you know, for scale, you cannot be tasting every single dish that comes out of your kitchen, especially if you have multiple restaurants. So it, it becomes more about sampling, right, and thinking about the processes. In the same way that, you know, if… I guess maybe this is where the, the, the factory analogy is a bit more apt, is, you know, as a quality supervisor on a factory, you, you can’t look at every single item. You sample, right? You take, you, you, you go in there, uh, every day and you look at the quality of the pull requests. You look at the code that the agents are writing, and you scrutinize it very rigorously, and you think about all the inefficiencies, the bad patterns that the agents are doing, and then you think about how to course correct the environment, right?

[50:27] Lauren Tan (poteto): Not, not that single agent. Uh, because if, maybe if it, if it, if it was a one-off incident, it’s fine, you know, and that maybe there’s nothing to fix there. But if you actually notice that multiple agents are, are, are having the same issue, right? They’re taking the same shortcut. They’re pro- they’re propagating the same workaround everywhere, uh, that’s a sign that you should go off and think about how to, uh, amend your kitchen or your factory, right? Like, thinking about your skills, your constraints, your lints, your type systems, um, and setting or adjusting it so that that problem doesn’t happen again. And when you do that enough times, then you get to a place where the code base is again, like, the environment is so constrained and so, it guides you so well that you can just, you can just step away, right?

[51:19] Lauren Tan (poteto): That’s the dream, and I’ll, I’ll definitely say it, um, it’s very hard to get to this point. I don’t want to sell this as like, you know, something that you can just do easily by using P-SAC. Like, it takes a lot of time and effort to think about your code and where you see your agents failing, and thinking very thoughtfully, intentionally, and setting up guardrails and constraints so that they do the right thing by default.

[51:46] Matt Pocock: Mm-hmm. And you’re not [clears throat] like if… To go back to the software factory analogy, this isn’t a dark factory, right? This, the lights are on, right? You’re-

[51:55] Lauren Tan (poteto): It kind of is, actually.

[51:56] Matt Pocock: Is it?

[51:57] Lauren Tan (poteto): Yeah. Well, it’s dark in the sense that, so, um, it’s dark in the sense that… Well, I think if my agents are merging their own pull requests, it’s sort of become dark, where I go to sleep, my, my agents now work 24/7. Uh, I have, I have the equivalent of, like, more than 10 chief of staff, right? Each working on a different area. Like, for example, I have one that’s working on performance of the GroqBot desktop app. I have one that’s working on, uh, fixing bugs that users report. I have one that’s exploring rewriting it in a different language just for fun. You know, like what if, what if, you know, just reimagining what, what it would be if it was, like, a native app. It’s just a toy. Um, but the idea is like, yeah, I, uh, I… When you spend the time setting up your environment, I’ve gotten to a point where I review the pull request after it’s landed, right?

[52:49] Lauren Tan (poteto): I, I tell my agents full autopilot is, is something that you can do in, in P-SAC, and that will trigger off this very intense, rigorous verification loop where it’ll spawn a bunch of verifier agents for every pull request, and it will fuzz, right? Fuzzing meaning that it will actually run the application. It’s gonna click around and try to use it like a real human, look for regressions, look for bugs in your implementation, and, um, it will try to find issues with the thing, and then it will fix it itself. It’ll do that again, and eventually get the PR to a state where it can land. Uh, so it does, it does, it’s, it is quite token intensive. You can tune this, of course. Uh, so, you know, instead of, like, 10 verifier agents, you might do, like, one, right?

[53:37] Lauren Tan (poteto): Or, [clears throat] you can just tell the agent to verify its own work. But yeah, the key thing is the verification part is really the key piece that gives me a lot of confidence. The, I guess, verification plus the environment, right? It’s these, the combination of these two things that allow me to step away and say, “Agents, go off and merge your thing. I’ll review it in the morning by looking at my commit history.”

[53:59] Matt Pocock: Mm.

[53:59] Lauren Tan (poteto): “And if I see problems, I go and course correct,” right? And I’ll go and revert or modify, add new lint rules, and whatever. Um, so it does, it does take time to get to that point. But once you get it, oh, it’s so, it feels so magical. Uh, I, I, I tell people, like, “I’m sleeping so much better now.” [laughs] Because, you know, it took… It, uh, uh, the very first day I turned on the sort of dark factory was very scary, ‘cause I was like, “Ooh, what if I cause a sev,” right? “What if I break something overnight?” Uh, and it took a lot of, it took a lot of, uh, bravery, I think, to do that, but-

[54:36] Matt Pocock: Wow

[54:37] Lauren Tan (poteto): … somehow I did it, and now, now I’m in a place where my agents are p- are merging their own code while I sleep.

[54:43] Matt Pocock: But it, it sounds like-

[54:44] Lauren Tan (poteto): So I think it’s dark in that sense.

[54:46] Matt Pocock: Yes, it’s dark sometimes, right? You do sometimes peek at it.

[54:48] Lauren Tan (poteto): That’s true. That’s true. That’s-

[54:49] Matt Pocock: ‘Cause I think of a dark factory as, like, almost like If you take the original definition of Karpathy’s vibe coding, right, which is the code almost doesn’t exist, you forget that code might be a thing. I think your approach is totally different from that, which is that-

[55:03] Lauren Tan (poteto): Mm-hmm

[55:03] Matt Pocock: … code and the environment is essential, and if the code and the environment are bad, then you will get bad outputs, garbage in, garbage out.

[55:11] Lauren Tan (poteto): I see what you mean. Yeah.

[55:12] Matt Pocock: So I, I th- I th- I think this is a, this is a different thing. It’s like, you know, the f- I don’t know, maybe there’s a dimmer switch or something, right? Like, you know, some parts of it are very dark, some parts of it are light.

[55:23] Lauren Tan (poteto): [laughs] This is why the, maybe the, the kitchen is a better analogy.

[55:27] Matt Pocock: Is better, yeah, yeah.

[55:27] Lauren Tan (poteto): The restaurant, because, you know, even as a, as a, as a, as a restaurant, restaurateur, you still might go to your restaurant every now and then to take, take a peek in, taste the food, right?

[55:40] Matt Pocock: Yeah.

[55:40] Lauren Tan (poteto): Uh, I think that’s-

[55:41] Matt Pocock: The idea of sampling instead of blocking, I think is really important.

[55:43] Lauren Tan (poteto): Yeah, yeah, yeah.

One-way doors and verifiable domains [55:44]

[55:44] Matt Pocock: I think, what would you say to people who are in… I guess you’re obviously in a pretty security conscious environment where you’re working, very security conscious.

[55:53] Lauren Tan (poteto): Mm-hmm.

[55:53] Matt Pocock: Um, maybe there are folks working in like, um, medical applications or law or finance or something. I think of the, like some PRs are kind of like two-way doors, which is you can merge it and then revert it, right?

[56:09] Lauren Tan (poteto): Mm-hmm.

[56:09] Matt Pocock: It’s cheap to go back through. But there are some PRs that are one-way doors, right? That will cause data loss of some kind, that will-

[56:16] Lauren Tan (poteto): Yeah

[56:16] Matt Pocock: … do something that can’t be easily walked back. How do you deal with situations where most of your PRs, let’s say, are one-way doors? Like, is this something you just wouldn’t recommend?

[56:26] Lauren Tan (poteto): Mm.

[56:26] Matt Pocock: Or like, what do you think?

[56:28] Lauren Tan (poteto): Yeah, I think that’s a really good question. I think that it all comes back to me to the quality of the verification that you’re able to, um, get out of your agents. And I think for domains where the work is verifiable, this is easier, right? And the, the one-way doors become two-way doors in a sense. But I guess, I don’t know, if you’re working on something that is like extremely, is very hard to verify programmatically, then I think, yeah, you’re definitely in a position where it’s very hard to get to that point. Um, so I do think like, yeah, verifiability of the domain is an important aspect to be able to do this. Um, and software engineering is just one of those things where it’s quite verifiable in, in a lot of cases, maybe not totally.

[57:20] Lauren Tan (poteto): Um, you know, like other domains like mathematics, I think are another example of, not all of it, of course, but some aspects of mathematics can be verifiable, right? If you write a proof, for example. Um, and so yeah, I, I think it’s a great question that I don’t really have the answer to, and I think that this is something the industry and us as engineers will have to figure out is, you know, my sort of, uh, hope and prediction for the future is that we’ll see more and more interesting new agent-oriented programming languages. And one of the most fascinating ones that I’ve seen so far is this one called Bend, B-E-N-D, Bend. Um, and that language is one where it kind of marries programming with proofs, right?

[58:11] Lauren Tan (poteto): There used to be a time, you know, where you actually had to write your proofs in a different language. And proofs, by the way, for those, uh, who, who aren’t familiar, is this idea of, uh, that you can sort of formally verify that some code is correct mathematically, right? Especially if you’ve written your code in a very functional programming way. Uh, but for the longest time, you had to do that in a separate language like Lean or TLA+ or, uh, I, I’m blanking on some of the other, other examples, but, uh, yeah, like languages like that where you would construct the mathematical proof and then use a solver essentially to det- uh, to check, right, that, that you’ve covered all the cases. You don’t have like a race condition or, or whatever.

[58:58] Lauren Tan (poteto): So yeah, I think, uh, trying to sum up the question, I think, yeah, if you are in a position where you can figure out how your agents can truly verify the work in a way that gives you confidence, you can actually, you know, uh, have the PRs merged. ‘Cause if it compiles, right, if it, if the proofs show you that it’s correct, then why wouldn’t you just merge it? Um, but of course, yeah, not all domains are verifiable.

Combining skill libraries and wrap-up [59:28]

[59:28] Matt Pocock: Yeah. It’s a tough one. Um, okay. I think we’ve got to think about wrapping up because we are nearly on the hour. Have you, have you got something after this? I mean, I’ve got something after this.

[59:38] Lauren Tan (poteto): Uh-

[59:38] Matt Pocock: I’ve got to get my son dinner, but…

[59:39] Lauren Tan (poteto): [laughs] I, I can go a bit longer after you.

[59:42] Matt Pocock: Okay. Let’s, let’s go five minutes longer then.

[59:44] Lauren Tan (poteto): Sure.

[59:44] Matt Pocock: Um, I think I just wanna have one more question, which is, I think I wanna ask how you see PStack and how you see skills in general, like in terms of… We, we talked about this before we went on air, which is like people think of li- uh, as like my skills versus your skills, and how do you combine frameworks together? How do you use PStack with my stuff? Like, what should you take from each one? And, ‘cause I think I see skills as sort of just derived from process basically. Like, they’re just processes turned into words. And I would love to know how you recommend people take PStack and take my stuff as well and turn it into their own processes.

[1:00:35] Lauren Tan (poteto): I think you shared a tip actually today that I thought was actually very relevant, which is this idea that you go off and look at your previous transcripts, right? And you sort of mine for information of, you know, your own… Look through your own, your own prompts, right, to the agents where you correct them, where you have to constantly intervene and- … uh, you know, take that higher level learning and turn that into a s- a reusable skill, right? So that agents stop repeating that mistake. I think that, uh, PSAC and your skills are very complementary. I, I totally agree with you that they’re… Like, a sk- a skill is really much just process. I mean, it’s just, at the end of the day, a skill is just English or, or a language. It’s just marked down. Um, and I think you can, you can definitely weave them, combine them in a way that makes sense to you.

[1:01:26] Lauren Tan (poteto): But I do think that, uh, everyone should have their own set of knives, right? Uh, uh, I, I keep going back to the, the, the cooking analogy, but it’s so apt because like, you know, every chef, when they go to a different job, right, when they go to a different restaurant, they carry… they bring their knives with them. The tools go with them, right? And so trust to me is really about trust in your own tools, and when you spend the time sharpening them and understanding them really, really well, you can do great things. And everybody’s skills and tool set is gonna look different. You know, someone might find a lot of success combining, you know, like your Grill Me with docs, uh, or Wayfinder skill with some of the execution skills in PSAC as an example. Some people might use more of your skills, some people might use more of my skills.

[1:02:13] Lauren Tan (poteto): I think at, at, at the end of the day, it really just comes back to how much do you trust, you know, me and Matt, right? Like, if you, if you trust us both, of course use our skills. But I also encourage you to, you know, look at your own transcripts. Um, um, tell the agent to look through, you know, some of the, all of the patterns that you’ve used, the, the times you’ve had to intervene. You know, suggest turning them into lit rules or new skills, right? The, the past chats I, I often say is like a, a treasure trove of context because the, you know, it’s, uh, it’s like, uh, the process materialized, right? Like it’s the real process, not an abstract idea in your head. It’s the actual thing, right? And you can actually see how it happened in practice and extract so much information from that.

[1:03:01] Lauren Tan (poteto): And there’s so much so that I actually turned… I have a skill in PSAC called Recall, which is exactly that, um, where this was a pattern where, you know, I was working in… I was working on a, a similar problem, so specifically I was working on virtualization for the cursor application, and there were a lot of bugs. And so, you know, every time I started a new chat, I was like, “Oh, there’s, there’s so much good context from the last one though, you know, I wanna bring it over to the new chat. How do I do that?” And that’s where the transcript came, uh, you know, looking at the past transcript came about, and then Recall was just a way for me to collapse, collapse and compress that workflow into a skill so that I didn’t have to just say… I didn’t have to write a long essay every time. “Go look at all these chats,” right? And, you know, then blah, blah, blah. So I, I largely think of skills, especially as agents get more capable, as really encoding workflows.

[1:03:52] Lauren Tan (poteto): You know, skills from last year were really more about like, almost like implementation details. Like, here are the exact script commands, you know, you should use, right? I think with the latest models, you can just delete those parts and just really focus on the workflow, right? And, and tell it… It’s more like a… The skill becomes more like a series of steps, a series of, of your process. Uh, and I think over time we’ll see that skills get smaller and smaller, you know, more compact. Um, and yeah, they’re ve- very compatible. Or you can, you know, if you want, why not read our skills, right? And com- and combine them in, in your, of your own, right? Combine Wayfinder with Potato Mode and make your own custom mode, right? Like, like skills are…

[1:04:37] Lauren Tan (poteto): The, the, the thing I love about skills are that, is, are that they’re so ma- malleable. You can do anything you want. It’s just language.

[1:04:45] Matt Pocock: Absolutely. There’s nothing magical in them, right? They’re just words.

[1:04:47] Lauren Tan (poteto): Yes. Exactly.

[1:04:48] Matt Pocock: And if there, if there is any magic in them, it’s just the words chosen and the phrases used, and the thinking that’s been done to turn those, like, take abstract process and turn them into language. And once that thinking has been done, then it’s just there. It’s available, it’s on the surface, and you can just nick it. Um, Lauren, thank you so much. It’s been glorious.

[1:05:11] Lauren Tan (poteto): Yeah. This has been super fun. I-

[1:05:13] Matt Pocock: Really fun

[1:05:13] Lauren Tan (poteto): … I really, really, really enjoyed ta- talking to you. Hopefully-

[1:05:15] Matt Pocock: Really enjoyed it

[1:05:16] Lauren Tan (poteto): … we can do it again.

[1:05:17] Matt Pocock: I’d love to do it again.

[1:05:18] Lauren Tan (poteto): Yeah.

[1:05:18] Matt Pocock: I’d love to do it again. Absolutely. Um, yeah, we’ll check in in, uh, I don’t know.

[1:05:23] Lauren Tan (poteto): Months.

[1:05:23] Matt Pocock: Yeah.

[1:05:24] Lauren Tan (poteto): Yeah, yeah.

[1:05:24] Matt Pocock: Monday. Let’s do it.

[1:05:25] Lauren Tan (poteto): [laughs] Yeah. Let’s do it. Bye, too.

[1:05:28] Matt Pocock: Well, thank you so much. I’m gonna close the stream here. Lauren and I will, uh, chat a little bit and stay here. But thank you guys so much for watching. Been glorious.