AI Agents for Business

Lauren Tan workshop XAi Grokbot

2300 summary words 10 min summary Watch video

Start with the signal

10 min read

Summary

At-a-Glance

  • Verdict: Watch fully
  • Core thesis: High-volume agentic software delivery becomes trustworthy only when teams progressively replace human verification and code-review judgment with executable product controls: agent-operable verification, evaluated skills, constrained architecture, and hard CI enforcement.
  • Why it matters: This is a concrete operating model for moving from one closely supervised coding agent to cloud-based agents that can reproduce bugs, produce atomic PRs, and eventually auto-merge without turning a codebase into unmaintainable agent-generated debt.
  • Best use: Use it as a design review for Ken's agent engineering control plane: identify where manual review is compensating for missing tests, navigation context, architecture boundaries, static checks, or evaluation loops.

Executive Summary

Lauren Tan presents agent management as an engineering-management problem: an agent may be capable at coding but lacks codebase, product, and organizational context. The practical objective is not blind autonomy, but raising trust systematically until human engineers no longer serve as the mandatory verification bottleneck. Her reported endpoint at Cursor is agents auto-merging PRs, with her reviewing changes after they land on main; she attributes this to extensive upfront investment in constraints and verification rather than to raw model capability.

Her first-order recommendation is to give agents direct, programmatic access to the real product surface. For web, Electron, and mobile applications, that means skills that can start the application, navigate it, inspect DOM state, run traces, take CPU or heap profiles, and reproduce user-visible behavior. A complementary feature map teaches the agent what UI elements mean, how to reach them, relevant keyboard shortcuts, and stable selectors. This lets an agent turn a vague user screenshot or report into an actionable reproduction rather than making a human relay screenshots, logs, and observations back and forth.

She treats skills as software artifacts that require evals. Her approach uses a coordinator to define a rubric, isolated subagents to execute test cases, and sometimes a separate-model judge to reduce self-grading bias. Skills are iterated or 'hill-climbed' until they meet the desired score, while engineers inspect tool calls and failure modes to turn recurrent mistakes—such as guessing instead of reading affected code—into explicit workflow instructions or constraints.

The deeper architectural lesson is that prompts, style guides, and review bots are soft controls; they will eventually be bypassed or forgotten. Tan advocates making the correct implementation path the easiest path through conventional feature structure and then enforcing invariants through compilers, lint, dependency-boundary checks, CI failures, and runtime/product verification. This enables agents and non-engineers to contribute safely, but she explicitly cautions against immediately scaling to hundreds of cloud agents before local verification is trusted, and acknowledges that the token-intensive refactoring path reflects Cursor's unusually generous compute environment.

Key Takeaways

  • Claim: Verification capability is the prerequisite for scalable agent autonomy because otherwise the engineer remains the loop-closing bottleneck. | Evidence: Tan contrasts an agent that proposes performance fixes from screenshots of Chrome traces with an agent that can launch the product, gather CPU traces or heap snapshots, interact through Chrome DevTools Protocol or simulators, and verify the user-facing behavior itself. She says this does not guarantee elegant code, but materially improves confidence that it is correct. | Implication: Prioritize agent-accessible test and observability surfaces before increasing agent count: executable environments, browser/app control, telemetry capture, and acceptance tests are more valuable than another generic coding prompt. | Caveat: Verification only establishes the behaviors and invariants actually covered; Tan separately argues that code quality and architectural durability require hard constraints.
  • Claim: A feature map converts agents from generic code searchers into product-aware operators able to triage vague user reports. | Evidence: Her Cursor 'control glass' skill includes a feature map describing features from the user perspective, routes and navigation steps, keyboard shortcuts, DOM/selector attributes, and subfeatures. It was needed because an agent that could launch the Agent Window still did not know how to find a reported sidebar or PR-tab issue. | Implication: For any agent that must act on support tickets, QA reports, or screenshots, maintain a machine-readable product map alongside source-code documentation rather than expecting repo search alone to supply UI context. | Caveat: The map is a living artifact: product changes can make navigation knowledge stale, so PStack includes both creation and maintenance workflows.
  • Claim: Agent skills should be tested and iterated like production code, not treated as static prompt files. | Evidence: Tan defines an eval as a 'unit test for an agent.' Her PStack eval playbook has a coordinator create a rubric, delegates runs to subagents in separately named directories so they are not obviously under evaluation, compares performance across models, and can use a distinct judge model. She runs evals whenever she modifies a skill and uses looping to improve scored results. | Implication: Version agent skills with explicit benchmark tasks, rubrics, model matrices, and regression gates; use postmortems of observed agent failures as the backlog for new skill instructions and tests. | Caveat: She says maintaining skills remains difficult and depends on human taste, active observation, and reading tool calls and agent behavior; eval automation does not eliminate expert supervision during the build-out phase.
  • Claim: Cloud-agent scale should follow a local trust-building sequence, not precede it. | Evidence: Tan recommends starting locally so engineers can observe exactly how agents operate the application. Once control and verification skills are reliable, the same assets can power cloud automation. Her internal example, 'Benny,' takes incoming bug reports, uses a cloud desktop and Cursor to reproduce them, and can determine that a reproduced defect is already fixed on main and only needs a release. | Implication: Adopt staged autonomy: supervised local execution, reliable reproduction/verification, cloud triage and PR generation, then narrowly scoped auto-merge under established gates. | Caveat: She explicitly warns that jumping from one untrusted local agent to hundreds or thousands of cloud agents primarily wastes tokens and creates costly, poorly supervised work.
  • Claim: Agent-generated codebases require strong architecture early, because unconstrained 'vibe-coded' systems optimize for local shortcuts and accumulate opaque debt. | Evidence: Tan describes GrokBot as a rapidly created greenfield application whose initial code was largely not read by humans. She calls the resulting shortcut-driven sprawl 'organic architecture' and says she refactored it through more than 600 PRs into the Dune architecture before becoming willing to rely heavily on agent output. | Implication: Assess whether an existing codebase already exposes enforceable conventions and safety boundaries; for greenfield agent-built products, establish those boundaries before feature velocity hardens accidental patterns into the default. | Caveat: Her argument is not that every legacy system should be rewritten: she says brownfield systems with mature guardrails may already be well positioned for agents, while rewrites are context-dependent and token-intensive.
  • Claim: Hard-enforced constraints outperform prompts and human code review for preserving quality at agent speed. | Evidence: In GrokBot/Dune, CI bans React useEffect and code comments, checks Electron main-versus-renderer dependency boundaries, and applies static analysis, lint, compiler diagnostics, and automated review. The renderer isolation rule addresses a concrete Electron failure mode: computational work or I/O accidentally pulled into the renderer can exceed the roughly 16 ms per-frame budget required for 60 FPS and cause jank. | Implication: Every recurring human review comment should trigger a control-design question: can it become a lint rule, dependency rule, test, CI failure, or architectural removal of the invalid state? | Caveat: Some controls are framework-specific and the ban on comments or useEffect reflects Tan's observed failure modes, not a universal prescription. She distinguishes hard CI failures from softer rules, skills, and review bots.
  • Claim: Small, atomic PRs and a constrained architecture let non-engineering functions contribute directly without requiring expert-level codebase knowledge. | Evidence: Tan encourages agents to split work into atomic PRs—not because of a strict line cap, but because Git history becomes usable context and reverts are tractable. In Dune, each feature is co-located in one directory and follows standard concepts such as features, entry points, and transcript cards. She reports that PMs and designers can submit bug fixes and features that pass review, and can use GrokBot to summarize engineering activity. | Implication: Design repositories and agent interfaces around bounded, discoverable units of work so product, design, GTM, and support can initiate or safely complete changes within explicit guardrails. | Caveat: This outcome rests on the previously described hard controls; the claim should not be read as evidence that broadly granting autonomous code access to non-engineers is safe in an unconstrained repository.

Detailed Brief

Dune design principles for agent-native application architecture

  • Claims: Tan frames Dune as a collection of architectural principles for agent-powered Electron applications, roughly analogous to 'Next.js for Electron apps,' rather than a framework she expects to open source.; The central principle is 'the shortest path is the best path': agents naturally pursue the easiest route to completion, so the repository should make the sanctioned path simpler than a shortcut.; Conventional structure is itself an enforcement mechanism because agents strongly imitate nearby patterns; a feature whose relevant code is co-located gives agents fewer opportunities to modify unrelated areas.
  • Evidence: Dune has named framework nouns—features, entry points, and transcript cards—with conventional creation paths.; A feature's contributing code is intended to live in a single directory, allowing an agent working on onboarding, for example, to remain mostly within that bounded area.; Tan distinguishes layers of control: architecture and static CI enforcement are hard layers; rules, skills, agents.md guidance, and BugBot are supporting but softer layers.
  • Caveats: The talk gives principles and selected examples rather than a complete implementation specification for Dune.; Its specific Electron and React constraints should be translated to the target platform's actual failure modes rather than copied literally.
  • Implications: Repository organization is part of an agent-control surface, not just a developer-experience preference.; A control plane should expose a canonical workflow and make noncanonical imports, state patterns, or cross-boundary dependencies mechanically expensive or impossible.

Economics and organizational implications

  • Claims: Tan treats token expenditure on refactoring, evals, and verification as a capital investment rather than a per-task cost-minimization exercise.; Her comparison is between token spend and the engineering headcount, elapsed time, coordination overhead, and verification effort needed to build the same constraints manually.; Accessible multi-agent interfaces can help nontechnical functions keep pace with higher engineering throughput by assigning agents to accounts, summaries, or direct scoped changes.
  • Evidence: She reports roughly 1,000 PRs shipped in the prior month and nearly 800 landed by the 12th of the current month, plus a morning in which approximately 20 agent PRs had auto-merged. These are personal/internal reports, offered as outcomes of the system.; She notes that Cursor's environment offers effectively unlimited tokens, and says substantial refactoring and constraint-building consumed many tokens.; GrokBot is described as an iMessage-like interface for orchestrating named agents, including an example of a PM agent summarizing the work Tan completed overnight.
  • Caveats: The reported throughput, internal tooling, model availability, and token access are not directly generalizable to typical teams.; The GrokBot discussion is partly product positioning; the transcript does not provide independent performance, cost, or reliability data.
  • Implications: Evaluate agent-system ROI at the workflow or organizational level—cycle time, quality, and leverage across functions—not solely by the cost of an individual model call.; Budget explicitly for the initial trust-building phase rather than treating it as free productivity.

Notable Concepts & Terms

  • Trust curve: Tan's maturity model: move from tightly supervised local agents to trusted cloud automation and eventually auto-merge only as verification and constraints earn confidence.
  • Verification skill: A Markdown-encoded agent workflow plus tools that let an agent run the actual product, inspect traces or errors, and test whether its change works.
  • Feature map: Machine-usable product navigation/context documentation—UI paths, selectors, shortcuts, and feature descriptions—that grounds agents handling user reports.
  • PStack: Tan's Cursor plugin, named after her 'potato' handle, that packages skills including creation and maintenance of verification skills and an eval playbook.
  • Evals / hill climbing: Testing agent skills against a rubric, potentially with multiple models and a judge model, then iterating until the measured result improves.
  • Benny: An internal cloud agent example that consumes bug reports, operates a cloud desktop to reproduce them, and returns diagnostic or release-status information.
  • Dune: The codename for GrokBot's strict, agent-oriented Electron architecture: conventional feature layout plus hard CI and dependency constraints.
  • Organic architecture: Tan's label for uncontrolled, rapidly vibe-coded systems in which agents repeatedly choose expedient local fixes until the codebase becomes opaque and fragile.

Operator Notes / Why Ken Should Care

  • Run an audit of the last 20 human PR review comments; categorize each as a missing test, lint rule, static dependency constraint, architectural convention, permission boundary, or genuinely irreducible judgment.
  • Choose one high-frequency operational workflow—such as bug-report triage—and build a local agent verification harness with product control, reproducible setup, stable selectors, artifact capture, and explicit pass/fail checks before moving it to cloud execution.
  • Create a versioned feature-map format for any UI-facing agent: user intent, navigation sequence, routes, shortcuts, test IDs/selectors, preconditions, and expected observable state; assign an owner and staleness checks.
  • Establish a skills-evaluation repository with fixed scenarios, model-specific score tracking, and a distinct judge or deterministic validator where possible; do not deploy changed skills solely on anecdotal success.
  • Require atomic agent PRs with an independently testable intent and revert path; use Git history as retrievable operational context rather than allowing large, mixed-purpose agent changes.
  • Do not enable broad auto-merge until repository-level hard gates cover the relevant failure modes; begin with low-risk change classes and monitor escaped defects, regressions, rollback rate, and token cost.

Source/Metadata

  • Title: Lauren Tan workshop XAi Grokbot
  • Transcript words: 18762
  • Duration seconds: 3581
  • Timestamp note: No usable timestamps or chapter markers were present in the provided transcript. The transcript also contains a substantial duplicated segment.
Full transcript 9479 words · 83 min read
0:00

Hello everyone, I'm Lauren Tan. I guess not many people know my last name. I am potato on Twitter, potato spelled with an E. And I have been at Cursor for about five months. Previously, I was at Meta where I worked on the React team, specifically working on the React compiler, which was a whole lot of fun. I'm still on the core team and contributing to open source here and there. So that's really nice that they still let me do that. And before Meta, I was at Netflix, where I was both a tech lead and I transitioned to be an engineering manager for about two years. So I've had a lot of experience going between engineering management and being an individual contributor. And I think something I've noticed, which is quite interesting, is that there are so many parallels with management skills and how to manage agents. And that's actually a big part about what I wanted to chat with you and everybody else about today. But yeah, that's me. I do have some very light slides, but it's not going to be just rambling. So let me just share my screen and hope that I don't leak anything.

0:05

Oh no, I need to allow permissions. No worries. Oh good. Take your time. There's always tech trouble. Give me one second to rejoin. Yeah, go for it.

0:36

I see many of you already know Lauren from the looks of the chat here. So yeah, it's exciting to get a chance to chat with her and go through some of her recent work. As you guys heard, a lot of recent experience from Netflix to Meta and then now over at Cursor. We're going to try a little bit about GrokBot as well. So that'll be exciting. I don't know if you guys saw that was a recent release. I think literally maybe yesterday or the day before from the Cursor team, which is kind of agents for everyone. You can go check it out if you want and learn a little bit more about the product. But yeah, we'll explore that a little bit today as well. Alrighty, welcome back.

0:54

And Lauren, you're just on mute there if you want to hop off and mute if you're chatting. Yeah, sorry. No worries. It's 2026 and I still don't know how to use Zoom. That's all good.

1:33

Okay, so I assume you can see my screen. Yes. Yeah, we're good.

1:38

So yeah, today. I think the big theme for me as I've been using agents to write code, and I'm sure a lot of you have had the same experience as well, is how do you trust it? You know, especially if you are an engineer that's been writing code for a very long time, you have a lot of opinions and lessons that you've learned about doing good engineering. And when you see agents just winging it and guessing, hallucinating, confidently stating that they found the smoking gun for the hundredth time, but it's actually not the real problem, you lose a lot of trust. And when you don't have much trust in your agents, I feel like you really can't get the most out of them. And for me, the parallel is with management. So if I'm an engineering manager of a team, and I have a team of engineers on my team, and I don't trust them, then the mode of operation I'm going to be in is going to be micromanagement, right? I'll have to spend a lot of time looking over my reports' shoulders and checking that they're doing their work well, that they're not shipping bugs to production. And so I drew this chart because it's not a very scientific chart, but this is how I imagine myself and my journey through using agents. So, back a year or so when not many people were using agents to code, I think you get into this mode where you are very heavily in the loop with one or several agents, and you find yourself constantly trying to understand what your agents are doing. And you're very, very in the loop, you're watching every single output, you are sitting there prompting. And you really can't parallelize beyond that, because you don't, again, don't have that trust, right? You can't spawn 100 agents when you don't even trust the output of one agent.

1:42

So over the past five months, I feel like I've really been able to ascend this trust curve. And now I'm at the point where I actually have, this sounds kind of scary to say this, and it makes me sound like a slop artist, but I promise I'm not. But I actually have my agents now auto-merging PRs for me. Which is a wild thing to say. But I woke up today, and there were like 20 PRs landed, and I just reviewed them on main, like they were already landed, and they were good.

1:46

So how did I get to that point? It's basically what I wanted to talk about today. And again, yeah, feel free to jump in if you have questions, Colin. But yeah, so this chart, I think I'm sharing this chart not to flex, but to show the journey. Like, so you can see the curve, like it sort of inversely matches the contributions I've been able to land at Cursor. So I joined five months ago, and five months ago, like I, you know, my first month, I was not very productive because I was learning the code base, didn't know what was going on. And as I got more confident in my agents, I've really been able to ramp up my productivity. And yeah, last month I shipped a thousand PRs, which is ridiculous. And then this month we're only on the 12th. I'm already at almost 800 PRs landed. So the velocity is definitely high and I'm sure a lot of you will be questioning how much of this code is actually good.

1:53

Um, and I think yeah, that's definitely fair to question. But yeah, I think if you set up your agents well, you can definitely get to a very similar level. So I'm going to talk about how we do that.

2:04

So for me, I think I'm curious, I guess calling your experience as well, but for me, I think the most important skill that you should have in your toolbox when you work with agents is verification. And by verification, I mean the ability for an agent to actually run the code, or take CPU traces or heap snapshots or, you know, open an iOS simulator, whatever, however your application is exposed to your users, it can do the same thing and run it for real and actually test and verify it work. Because that's the thing that really actually closes the loop. It doesn't guarantee your agent writes good code, but it allows them to at least write correct code, which is a big, really big step forward for being able to trust your agent. I will, I can share one example that we have within Cursor, where, let me open this. Let me just make this thing full screen. There you go. So for the Cursor's Agent Window, so this is actually an interesting story, but when I joined Cursor five months ago, they were actually, I was supposed to join a different team. I was supposed to join the Cloud Agent team. But then since I have a lot of experience working on React and Agent Window is a React application, I was asked to basically help out with the Agent Window work, but there wasn't really a lot of skills to help me. So I just found myself, okay, Agent Window is going to launch in a week, right? We have a really tight deadline. And there was, you know, I was just sitting there, okay, I'm going to open up the performance, the Chrome Dev tools and just take a trace, look at it myself and try to

2:09

They're actually, I was supposed to join a different team. I was supposed to join the Cloud Agent team. But then since I have a lot of experience working on React and Agent Window is a React application, I was asked to help out with the Agent Window work. But there wasn't really a lot of skills to help me. So I just found myself—Agent Window is going to launch in a week, right? We have a really tight deadline. And I was just sitting there, okay, I'm going to open up the performance, the Chrome Dev tools and just take a trace, look at it myself and try to make sense of this flame graph. And keep in mind, I was just in my first week. So I had no idea what I was looking at. I had some idea, but the code base was completely fresh to me. And I realized my agent had no idea either. I would take a screenshot of the trail, download trace, I would send it to it and it'd be like, yeah, it kind of looks like this, and it would confidently state it's this thing. And then I'd try to fix that. And turns out that's not the actual thing. So this was a very, very slow process. And if you've ever done any performance work yourself, or development with an agent where you don't have a verification skill, you are the verifier. You're the bottleneck. You tell your agent to do something and then it goes off and write some code. Then you open up your local dev build, and then you start to say, oh, it doesn't work. Then you have to copy paste screen, screenshots or console errors or whatever. And then your agent slowly works with that and then tries to understand it and fix the thing. But then you're constantly just in the loop and being a bottleneck. So there's really no way to parallelize. So the control glass skills are like one of the first skills I built for cursor. And glass, by the way, is the code name for agents window that we use internally, but it's just cursor, I guess. And so this skill is not super interesting. Your agent can very easily make one for you, where if you're building an electron app or a web app or even iOS applications, you can teach your agent how to use the Chrome DevTools protocol or through Apple has some utilities as well for running the simulator and taking traces and controlling programmatic control as well. That's really useful. But one thing I actually want to talk about is this thing—where is the readme? So this skill comes with this very unique feature called, or not feature, a unique file called a feature map. And so the story then is I built this skill. And so now the agent was able to actually run the agent window and take traces and whatnot. But it had no idea what the agent's window was. So when someone would say the left side bar is laggy or the right side, the PR tab is not working, the agent would just be kind of flailing around. It would spend a lot of time trying to look up the code and where is this feature? How do I actually get to it on the UI, which made it basically completely useless. I would run the skill locally and it would spawn a dev build. But then it just be churning. I just try to click here. It wouldn't know how to get to things. And it was just an awful experience. So this feature map has been really useful because it teaches the agent how to get to all of the features that you have. And in Pstack, the plugin that I've made, if you search for Pstack cursor on Google, you'll find it. There is a create verification skill in that plugin, where it actually helps you set up something like this for yourself, including the feature map. So it will actually explore the code and build up this initial feature map that tells your agent how to get to all of the different features that you have. And this is extremely powerful because now that you have these user reports that come in, you can actually map even a vague report or even a screenshot. We have this internally at cursor where we have a Slack channel where lots of people giving us feedback on the agents window and rock bot and whatnot. And oftentimes the report is very bad, very low quality. Someone will just put a screenshot, and then someone just says question mark, question mark, question mark—what is this? And without this, your agent is like, I have no clue. But with a feature map like this, it has a lot more context and understanding of how to actually navigate, how to get to all of the different features. So the sidebar, what is the sidebar? All the different sub features that are present in it. From the user point of view, how to get to it, all the different keyboard shortcuts, the DOM elements—the attributes that you use for selecting things through the CDP, are all there. So again, this is very powerful for agents. And that piece that ships includes the create verification skill, but also a maintain verification skill. So you can keep this up to date. Yeah. I was just going to ask how you created that. So do you mind sharing a little bit more about that process in the context of P stack and maybe just what P stack is for the folks who aren't familiar? Yeah. So P stack is pretty interesting because, well, first of all, the name is goofy. The P in P stack is like potato, potato, potato stack, because there's a pretty famous person, Gary Tan, who is the CEO of Y Combinator. And he's come up with this plugin called G stack—Gary stack. And funnily enough, we share the last name. We have no relations. But I thought it'd be funny to poke fun at Gary and make P stack my version of his plugin, but tailor it to my own set of engineering practices. But I honestly actually never set out to build P stack. It just started with a bunch of skills. I started with that control glass skill, and then I started with another skill called how, which I also noticed through observing agents. So in the early days of trying to climb this ladder, I was super in the loop and I was basically nitpicking my agents to an extreme degree. I would tell it this feature has stopped working. Here's a bug report. Why isn't it working? And very often the agent would just confidently state, oh, it has to be this thing. And I noticed when I looked at the actual tool calls, it wasn't actually reading the code that I thought should be affected. And that made me extremely suspicious. At that point I was like, I can't trust this agent anymore because it's just completely hallucinating. And I think it's very easy to build up that distrust and not know how to help your agents succeed. But the management analogy is super helpful because imagine if you were a manager of an engineering team and you had

2:14

Why isn't it working? And very often the agent would just confidently state, oh, it has to be this, right? It has to be this thing. And I noticed when I looked at the actual tool calls, I noticed it wasn't actually reading the code that I thought should be affected. And that made me just extremely suspicious. And at that point I was like, I'm not gonna, I can't trust any agent anymore because it's just completely hallucinating. And I think it's very easy to just build up that distrust and not feel helpless. I don't know how to help your agents succeed, but the management analogy is super helpful because imagine if you were a manager of an engineering team and you had an engineer on your team who was a really good coder, no business context whatsoever. You know, five seconds ago. And so how do you actually teach that person to be effective? So how you do that is through a skill, a skill being just markdown, right? But it encodes a lot of information and instructions. You can really draw out a lot of intelligence from an agent by, well, some people on Twitter call it pulling the agent to a different latent space, which is a fancy way of just saying, since LLMs predict the next token, when you give it some high quality tokens to begin with, then it can pattern match on a higher space that's smarter. So that's a very interesting model there. But I built P-Stack very incrementally. I started with just really observing how agents fail, different failure modes of agents. And every time I saw that, I just made that a skill, right? Like stop hallucinating, actually go and search up, look up the code, use a lot of sub agents and stop guessing.

2:19

Yeah, that makes sense. One follow up question here, both for myself and from a bunch of people in the chat. So I guess it's two parts. One is how do you maintain these skills? The product changes over time, obviously there's a lot of people shipping against the code base. So how do these skills get maintained? And then second to that is how do you know when your verification is good enough? You can trust that the verification loops that you've built are going to work, I guess you trust the outputs when they're done.

2:26

Yeah. Maybe I'll talk about, I think that's somewhat related. Maybe I'll start with this one first. How do I maintain these skills? If you're not familiar with this concept, an eval is essentially a way to, well, I think the mental model I have is it's a unit test for an agent. And you can actually make your own evals. You don't need a special framework for them. You can build one depending on how scientific and rigorous you want to be. My screen is red.

2:40

Yeah. There's a little button. Sorry. Oh, if you mind disabling the drawing or something, I can't see my screen. Yeah. Sorry. If you guys could not draw on the screen, that'd be great. But there's a little button. Is that a troll? Yeah. The little dropdown. How did I clear? Yeah. Okay. Yeah. You got it. Perfect.

2:55

Yeah. So evals are a way to unit test your skills, basically. And actually in Pstack, we ship under potato mode. There's a playbook, if you search for it called eval playbook. And it's pretty rigorous the way it's done. But essentially what I do is I spawn a lot of different sub-agents. I have my main coordinator agent come up with a rubric for what I want the skill to do. And then it spawns all these sub-agents and it creates individual directories for them, which are cleverly named to not let the sub-agent know that it's being evaluated because agents can actually tell. And when they do, they change their behavior.

3:02

And it does a bunch of stuff like that to essentially test whether or not the skill I'm making or changing is actually doing what I think it does. And one of the really nice things about Cursor is that we support so many different models. So you can actually eval your skill across all sorts of different models and get a sense of how well it performs across that different matrix, especially for the models that you use. So I do this a lot. Every time I modify a skill, I will run one of these evals, like the eval playbook, and make sure that it's actually leading to a result I want. But I will say maintaining skills is actually pretty hard. It requires a lot of taste and observation. So you kind of need to be very good at being a backseat driver. You know what I mean? If you've ever done pair programming, for example, and you watch a coworker code and you just think, you could probably do this better. You know, why did you not do this? Right. You ask a lot of questions to your coworker and it's a similar thing here. You don't want to just be a passive observer of the agent. You want to be very in the driver's seat in the initial stages when you're building up your own set of skills. Obviously you can use something like PSAC, but if you're building your own set of skills, it's very important, I think, to open up all the tool calls and read the code and read all the agent behavior and their thinking blocks. That's a really great way to see where they fail. Where are they being done? And then you can go and build a skill for that. And then with verification, how you trust it is it's a very similar iteration loop, where I actually did the same process for verifying the verification skill where I actually get, um, so one thing that's interesting about evals is that you can sort of hill climb them, meaning your eval can produce a score, right? A score that you can get your coordinator to produce, but also you can have a judge agent of a different model to cross-reference and make sure that the first model is not being biased, right? The model that's judging all of the sub-agents that are running the thing. But you can also hill climb. So meaning you can use slash loop in cursor and you can say, okay, keep looping on this eval, right? Until everything is 10 out of 10 as an example. And I did the same approach with the control skill. And so I kind of built that skill that way, like the CLI and that skill. And over time, it's gotten really good. But it was definitely not super smooth at the beginning. It required a lot of iteration. And I think there's an analogy here for me, which is, well, I make this analogy later in a different slide on my drawing here. But I think of it like, as an engineer now, you're sort of more like a manager or the analogy I like is you're like a chef in a restaurant. You're the head chef. You're not cooking all the food yourself anymore. You have a team of cooks, right? You have line cooks, you have a sous chef, all these different stations. And it's your job to really design the environment. You're in charge of setting up the kitchen. You're in charge of giving tasks to different people. So that's how I've basically built these verification skills.

3:07

Yeah. Just one follow up there. I had to go try to go one layer deeper. So are you, let's say we wanted to build an eval or a skill for something and we wanted to get better on its own, which is what I think you're suggesting. the food yourself anymore. You have a team of cooks, right? You have line cooks, you have a sous chef, all these different stations. And it's your job to really design the environment. You're in charge of setting up the kitchen. You're in charge of giving tasks to different people. So, yeah, it's a very interesting way of working. But yeah, that's how I've basically built these verification skills.

3:19

Just one point there on that. I had to go try to go one layer deeper. So are you, let's say we wanted to build an eval or a skill for something and we wanted to get better on its own, which is what I think you're suggesting. Are you doing that in a work tree, kind of isolated with the sub agents and then the reviewer agents and all that, is it happening in some type of cloud hosted environment? Like what's the practical steps if I wanted to go do this and set up a verification system for something, what would I do or where would I start?

3:26

I think the best place to start is local because you can observe what your agents are doing. So if you're building a verification skill for yourself, I would definitely start local and just have your agent bring up the application, whether it's a CLI or a desktop app or whatever. And so you can actually observe. You can see how the agent is interacting with the application. You can see how it calls the different APIs that allow it to interact with the application.

3:32

But for me personally, I have basically been kind of all in, mostly all in on cloud agents because they're extremely powerful. And the really powerful thing about cursor is the cloud agents, where if you spend a little bit of time setting up your environment, these control skills, these verification skills pay a huge amount of dividends because it's not just something that makes you as a single engineer better. It actually levels up your whole team and even your whole company because you can start thinking about cloud agents. You can start thinking about automations that automatically do things like I talk about this a bit later, but I'll get into it. Where you know, for example, I talk a lot about this agent we have called Benny, who takes all of the bug reports that we get and it automatically goes off in the cloud, opens up a cloud desktop. It runs cursor in its own computer and it uses the same control skills to interact with the application and try to reproduce the bug or the user report. And this is so powerful because at once I can immediately get so much information from this automatically. Like in this example, you can see that Benny actually reproduced the bug, but it's already fixed on main. So it actually confirms that we fixed this problem already. And all I need to do is just release another build of cursor. So that's huge information there that I didn't have to go off and sit with an agent and spend an hour trying to figure out, is this fixed? Is this not fixed? So you gain back so much time. But everybody on my team benefits from this, everybody in the company benefits from this. So definitely think that using cloud agents is super powerful. But yeah, it's a journey. You have to trust it first, right? Before you get to this point. And that goes back to what I was saying here where it's very hard. It's almost impossible. And I would definitely encourage you not to try to jump from, you know, if you're still in this zone, you don't want to jump to, I'm going to spawn a hundred or thousands of cloud agents right now, because you're just going to waste a lot of tokens. And it's going to be extremely expensive.

3:38

Yeah. So just to recap so far, basically if we wanted to go on the journey that you've gone on, it would be just start with verification, building some skills and some ways of determining that the agents are producing at least correct code, whether like you said, whether it's good code or not, it's maybe a separate question, but it's technically solving the problem by looking at stack traces, looking at the actual behavior in the app and so on. And then once we trust it locally, then we can start to think about scaling into the cloud and running more agents that are picking up signals on their own. Right. So whether that's a bug report that comes in or something, they can go and pick it up and solve the problem and give us back a PR and then maybe the last step is auto merging the PRs, which is where you're at, and maybe not where everyone is at. Yeah. And then reviewing the one main. But is that about right?

3:45

Yeah, exactly. I think yeah, that's why I drew this curve, right? Because that basically describes my journey of when I started, I barely could use a couple of agents and I was just observing every single thing. I think there's really no shortcut for going from here to there, because this is really about your personal level of trust in agents. Right. Obviously, as an engineer, you don't want to just slop code into production. So how do you actually build up that trust takes a lot of, I guess, taste and judgment. But, you know, I think plugins like P stack definitely can help you get up to speed much quicker. And so I guess it's like, if you trust me and you trust P stack, then by extension, you can maybe trust your agents. But if you don't trust me, and I definitely would not encourage people to blindly trust me, you know, if you build up your own set of skills that you can take a look at P stack and fork it, make it your own, improve the skills, definitely encourage that. But for me, it's really all about, it just keeps coming back to trust. Every one of us here in this chat have a different standard for engineering. And there are different things that are important for us in our code base. And when you are able to encode all of that into skills and you can verify that your agent is actually doing them, that allows you to really ascend this curve. And start automating things. There's another piece I wanted to talk about.

3:53

Yeah, go for it. I'll pick up more questions as I go, but yeah, I think there's a third part to this, which I haven't talked about yet, which is refactoring and rewriting. Like one of the most controversial topics in the industry, I think is, should you rewrite your app or not? Because I think engineers are very prone to this where, especially when you join a company, you come in and you see the code base and you're like, oh man, this is shit. Who wrote this code? It's terrible. I want to rewrite the whole thing. There is a very common inclination. And I think a lot of people, before agents, and I guess arguably even now, people will definitely discourage you from rewriting stuff. But I'm actually here to make a case for why you might want to consider it. Because I think it really depends. You know, brownfield applications, I think are actually in a pretty good spot, especially if they're set up well already. And like recently I've been talking to some people, but I was just observing, I just noticed this parallel, which is that a lot of big tech company problems are now everybody's problems. And the big tech company problem, you know, like when I was working at Meta, we had this giant monorepo. We had tens of thousands of engineers, just banging

3:59

There is a very common inclination. And I think a lot of, before agents, and I guess arguably even now people will definitely discourage you from rewriting stuff. But I'm actually here to make a case for why you might want to consider it. Because I think it really depends. Brownfield applications, I think are actually in a pretty good spot, especially if they're set up well already. And recently I've been talking to some people, but I was just observing, I just noticed this parallel, which is that a lot of big tech company problems are now everybody's problems. And the big tech company problem, when I was working at Meta, we had this giant monorepo. We had tens of thousands of engineers, just banging on their keyboards and shipping code and a lot of really great engineers at Meta. But I'll say you'll be surprised that the code quality is actually not that good. And so I often joke that before AI sloth, we had human sloth. And so I think a lot of big tech info, what Meta has or Google, really big tech companies are actually designed for that, where you're catering to the least capable engineer on your team, right? You build frameworks, you build conventions, you build guardrails, you restrict credentials so that your intern doesn't wipe your production database. If you have that level of infra already, I think your agents can actually already do a very solid job, right? Because the guardrails are already in place for agents to not cause havoc or not cause too much havoc in your code base. And you can always add more guardrails. But I think greenfield applications, especially are the brand new applications are the biggest risk in my opinion, and also the greatest opportunity because if you vibe code a project, a prototype, we did for Grokbot. Grokbot was spun up very, very quickly. And if you haven't heard of Grokbot, it's a new application we just launched yesterday. It's really cool. Lets you orchestrate your, create individual agents that have their own identity and you can orchestrate them. It's super cool. Definitely check it out. But yeah, that was a very greenfield application. Most prototypes are. So it was vibe coded very quickly. So the humans were not reading the code at all. And I had this tweet recently where I said something about organic architecture. The idea is that when you have a completely vibe coded application, you essentially have no guardrails whatsoever. So your agents, when you give them a task, they will just solve it in whatever method is the most convenient. And over time you get into a situation where you have a code base that is spiraling out of control because you don't understand it. Your agents understand it, in a way, but they've built something that is optimized for shortcuts. And you will suffer, you have a lot of issues with that application. So I think starting your code base with very strong constraints is very much needed. Because when you have a code base that you can trust, right? When you have guardrails that actually help your agents write good code, you can get into this part of the curve where I woke up today and I had 20 PRs merged by my agents. And that's because I invested a lot of time over 600 PRs. I calculated yesterday when I refactored all of GrokBot to this new architecture that I've been building. And yeah, I've gotten to a point where I don't really look at the code anymore. I say that not just to sell you tokens, but because it took a lot of work to get to that point. I spent a lot of tokens to get the code base to this point where I no longer have to look at it. But I'm very excited because of the potential where this doesn't just benefit me. It benefits everyone contributing to GrokBot. And it also empowers designers and product managers and people, even GTM people to add features to GrokBot. And I don't have to worry, I don't have to wake up at night in the middle of the night and worry, oh, someone's just merged a perf regression. Right. I have a ton of constraints in CI. It's very annoying to write code in GrokBot, but agents absorb all of that annoyance. I'm happy to talk about what exactly that is.

4:06

I think one question before we get into this part here is just around that element of what your CI looks like, or maybe some of the constraints, and then also the average PR size. I saw a question about that earlier, just to give people a glance. It doesn't have to be mathematically average, but what generally the size of the PR is, if it's only a couple lines of code or not. I think it depends on me. I'm trying to do this in a way where I'm not going to like. You don't have to share the actual number. This is fine. Benchmark.

4:26

But we have, okay, this is not that interesting, but a fun fact is that virtualization in GrokBot and in Cursor is actually powered by Pretext, which is a sort of new library that someone's built. That's really interesting. You should check it out, but that's not really that important. I think the average PR size, I actually don't know. I don't know if I want to click on these. I probably can, but I would say they can range anywhere from a few hundred lines or 50 lines to a thousand, depending on what the thing is doing. So here I'm actually deleting a bunch of files. So I expect that it's just mostly deletion. But yeah, it kind of varies. There's no hard cap or hard limit. They're all 50 line PRs.

4:34

Yeah. There's definitely no hard cap, but I do encourage my agents to split up their work into multiple PRs. I do that mostly because I like the idea of the Git history as a very rich source of context. And I like each PR to atomically describe what that small piece of thing is doing, which also makes it easier for me to revert changes and figure out, oh, I shipped a bug and it's here. It's not in this 40,000 line PR where who knows what landed in there. But I don't have a hard cap on PR size.

4:44

And then, yeah, also quick question on CI. So again, you don't have to go into the details of your CI, but just generally would you describe what the CI kind of looks like, or how strict it is? Yeah. So specifically for Grokbot. So Dune is the sort of cheeky code name for the architecture that we've built for Grokbot. The CI looks pretty annoying.

4:56

which also makes it easier for me to revert changes and figure out, oh, I shipped a bug and it's just here. It's not in this 40,000 line PR where who knows what landed in there. But I don't have a hard cap on PR size. Cool. And then, yeah, also quick question on CI. So again, you don't have to go into the screen share of your CI does, but just generally would you describe what the CI kind of looks like, or how strict it is?

5:03

Yeah. So, well, specifically for Grokbot. So Dune is the cheeky code name for the architecture that we've built for Grokbot. The CI looks pretty annoying because there's checks for everything. So literally I have, well, if you've written any React, for example, you know that one of the biggest foot guns in React is UseEffect. So in Dune and in Grokbot, we've banned UseEffect. So Dune, the mental model of what Dune is, you can think of it as Next.js for Electron apps and it's designed for agents to write, and it's custom for our agent powered applications. So the CI checks are very specific to that. Don't use UseEffect. It's banned. CI will fail and yell at you. We have some of the more interesting ones that people might raise eyebrows at is I actually banned code comments as well, which is very interesting. But I've noticed that 99% of the time agents just write code comments that describe some historical thing that is actually totally irrelevant to the code. It will often say, oh, Lauren said you should never do this. And it's in a code comment. Why? What? That was not a durable, global rule. I just meant your PR sucks and you should change that part. Agents don't really understand us that well, surprisingly. Or they assume too much and do things in very stupid ways. So yeah, we just ban everything, everything you can imagine. Anything the agents are bad at, we ban. So one example that we actually suffer a lot in the agents window is we have performance issues and we're constantly trying to fix them. But it's a never ending struggle because there's so many pull requests that get merged. Any one of them could just regress performance or stability or reliability. The agents window doesn't have this architecture yet. I plan to bring this learning back there and refactor everything there. But it just regresses super often because there's just one example: we have very poor isolation between processes. So on Electron, you have a renderer thread that renders your UI, but you also have a main thread where you can run other code that doesn't need to block the renderer. But we do a poor job of separating those things. So oftentimes you accidentally have code that gets pulled into running on the renderer thread. And then all of a sudden you're competing with the renderer that, if you want 60 FPS, has to be done in 16 milliseconds per frame. Very small deadline per frame if you want a smooth product. And when you start accidentally bringing in things that are very computationally heavy or have a lot of IO, then you get a lot of jank and your FPS really drops. You start losing frames. You get long tasks that take more than 16 milliseconds. And then you get this really choppy experience. So all of those patterns that we've learned building Electron apps, we've encoded into this framework and it becomes a hard failure. So in Grokbot, we literally have a directory called electron main, electron renderer, and we have import CI where we actually check the dependency graph to make sure you're not accidentally importing code from one directory to another. That's enforced by CI as well as bug bots, which is our, Cursor's code review tool that runs on CI, in our agents MD everywhere. I have this thing where I talk about like there are multiple layers for building a good code base. Obviously the code base is one where if you have an architecture like this, extremely strict, the way to build features is very conventional. That's the strongest level of enforcement because agents just love to copy existing patterns. So one example in Grokbot is we have concepts called a feature and we have entry points and transcript cards, the cards you see in the chat, these are all nouns in the framework. And so there's a very conventional way of creating them. A feature is all in a single directory. All of the code that contributes to that feature lives in one directory. So it's all co-located in one place, makes it super easy. Agents don't have to grab around and try to figure out where all the things are. It just looks at the feature and, oh, okay, I'm working on the onboarding feature in Grokbot. I'm just going to work in this directory. For 80% of the work, it's mostly just very encapsulated there. It's designed for the dumbest agent. You don't have to think. One of the key principles I have for this framework is the shortest path is the best path. Because that plays exactly to how agents love to write goals. They like to take shortcuts. They'll find the quickest way to solve the problem. So why not make that the best way to solve the problem? I probably won't get into all the specific details. This framework is really more a collection of ideas and principles rather than something that will open source. You can screenshot this if you want and tell your agent to build something like this for you too. But it's really all about the layers. The code base is one part with features and directories and import blocking import dependencies that shouldn't be imported. CI enforces that with static analysis. There's CI checks. We have a lot of lint for bad patterns that we observe, compiler diagnostics. There's also rules and bug bot, which I think are more soft. These two actually make CI fail. So there's a hard constraint where the agent can't just write crappy code. For rules and skills and bug bot, your agents can still forget. Or it may not always consistently apply them. So I like to layer them, but I don't like to rely on them as the only source of enforcement because it's very soft. If you only have rules and bug bot and skills and a style guide for your code, it's only a matter of time before your code base looks like complete trash. I definitely recommend investing in things that can be hard enforced. This is why the choice of tech stack that you use is also very important.

5:09

You can just write crappy code for rules and skills and bug bot. Your agents can still forget. Right, you can still, or it may not always consistently apply them. So I like to layer them, but I don't like to rely on them as the only source of enforcement because it's very soft. Right. And if you only have rules and bug bot and skills and a style guide for your code, it's only a matter of time before your code base looks like complete trash. I definitely recommend investing in things that can be hard enforced. Right. And this is why the choice of tech stack that you use is also very important. I think, for example, Rust is getting super popular again because the compiler is so strict, right? The compiler enforces so many different things. There's a borrow checker that you have to appease. And if you make sure your agents don't write unsafe code blocks, you can more or less feel confident that if the code compiles, it probably works and it's good. That gives you that level of trust and confidence that you as a human engineer no longer need to go and check it yourself. You rely on code and static analysis to make that a lot smoother. The worst place to be in is if you are stuck in code review land where you actually enforce all of the constraints and invariance in your code base by literally the human person reading the code and saying you should not do this. Every time you have to do that, you should consider that as a code smell, an anti-pattern. You should say, instead of me commenting on the PR, how do I turn this into a hard rule? How do I turn this into a lint rule? How do I turn this into a CI failure? Or how do I even categorically eliminate this problem entirely?

5:17

[SPEAKER_02]: I feel like that's where I am, honestly. I don't have all of these rules. I have some things to go do after this session in terms of being able to scale my agents. I'm at maybe a couple of parallel ones locally, two to three locally. And I'm sure most people here are on the same. We only have a couple minutes left. Lauren, was there anything else that you wanted to highlight? I know there's lots of questions, but I want to give you a few minutes if there's anything else you want to talk about. [SPEAKER_01]: I think I've been talking for quite a lot. So maybe let's just do questions.

5:31

[SPEAKER_02]: One question that came up a couple of times was around token usage. Is what you're describing realistic for people on a normal set of token usage who don't have unlimited tokens to work with?

5:39

[SPEAKER_01]: I mean, I work at an AI lab where we have unlimited tokens. So I definitely cannot say that this is something everyone should do in the exact same way that I did it. I think it's possible to get to this point without breaking the bank. But if you're an engineering leader or you have a startup that you lead, I think to me it's a question of ROI. Yes, you spend a lot of money on tokens in the upfront stage. Refactoring your code base is going to take a lot of tokens. But if we're heading to a world where agents are writing all the code and you want to be very lean, right? You don't want to have to hire, you don't want to become like Meta in terms of a 10,000 person engineering org. That's a cool problem to have, but you have so much overhead with planning. I think you want to stay very nimble. Agents are all about allowing you to do things that you couldn't do before. That's really the value of agents to me. It's not just storing tokens on every single little thing. But the thing I couldn't do before is enforce this level of constraints in a code base by myself. I'm just a single person. It would have taken me years to build this framework, do all the refactoring, test everything myself, and verify it. In the pre-agent era, just running it myself would take so long. My salary is pretty high. So the question an engineering leader might have is, do you hire someone to do this or do you spend the tokens to set up a code base so that even the most naive agents can do a good job? When you get to this point, even agents that are not production-size do an excellent job of writing code. This pays a lot of dividends for me personally where I have empowered not just myself, but PMs, designers, engineers who are not familiar with Grokbot to just contribute in a way that is sustainable. So it's definitely a trade-off. Nothing is free for sure, and tokens are pretty expensive. But we actually announced Grok 4.6 today. It's very smart and really good on the benchmarks. The cost per token is the same as 4.5. So you're actually getting more intelligence for the same cost. I think Cursor and other AI try to really optimize for that Pareto frontier of cost versus intelligence. You don't necessarily want to build the biggest model ever because that is extremely expensive to run. It's really about how you find that sweet spot. You don't need a giant model, but it's super smart and not very expensive for inference. I think the ROI you get from investing in stuff like this empowers not just yourself, but your whole team to be so much more productive. Imagine if you have an army of engineers shipping so many improvements and bug fixes every day. That is pretty exciting.

5:46

[SPEAKER_02]: One last question before we wrap up, for the people in product on the call. Let's say we do have an army of engineers shipping like Lauren. How is the product team or other functions keeping up given that if you're shipping so quickly, are they using AI more to do their jobs? [SPEAKER_01]: I think this is where Grokbot has been exceedingly powerful. Before Grokbot, we only had agents in the window.

5:58

you have an army of engineers like me who are shipping so much improvements and bug fixes every day, right? That is pretty exciting. Cool. One last question before we wrap up, this one is for the people in product on the call. So let's say we do have an army of engineers who are shipping like Lauren. I'm just curious, how is the product team or other functions of your company keeping up given that if you're shipping so quickly, are they using AI more to do their jobs? As much as you can speak to that, I know obviously you don't have, you're not in that role, but just curious about how that works.

6:04

I think this is where Grokbot has been actually exceedingly powerful. Before Grokbot, obviously cursor only had cursor, we only had agents window, we had a CLI, we had an IDE, and these are really power user tools, right? They're designed for developers. So it's very developer centric. You can do knowledge work in them, but the UI is not really optimized for that. So we actually didn't really have, a lot of people in GTM product might have used cursor to do their work, but it definitely wasn't a delightful experience with them.

6:12

I think now with Grokbot, it's become, Grokbot is basically the cursor moment for people who are not in tech, in my opinion. It's a very accessible way to use agents in a very comfortable, very familiar interface. It looks like iMessage, and it's very fun too. You can give your agent a fun name, you can do orchestration in a very natural way where each agent is a person and now you've got a team of agents working on something. You have one agent per account that you manage as an example. Or if you're a PM, you can have an agent that summarizes all the work that Lauren did last night. And then now you know what I did, right?

6:20

So I think our PMs are leveraging that a lot and they're shipping code too. Oftentimes they will just say, oh, here's a bug. I fixed it. Can you look at it? And then I'll go review it and actually it's just perfect. I'm like, okay, stamp. So that shows that the Dune architecture is holding up, right? The really strict constraints allow people who are not experts in engineering to contribute at a high level. So I feel like I'm already seeing that pay off a lot where designers and PMs are just able to ship features directly. And that just makes the GrokBot team super fast, where we can ship so quickly. And we have a lot planned, so I'm very excited to ship more stuff.

6:27

Yeah. That's awesome. We are at time. So Lauren, if folks want to support you, maybe go try out GrokBot, try out 4.6 and provide some feedback. This was awesome. Really appreciate you taking the time. Thanks everyone for all the messages in the chat. Lots of good questions. I know we didn't get through everything, but as I said at the top, way more questions than we could get through. Really, thanks for joining. Hopefully you enjoyed the session. Yep. Yeah. Thanks for having me. If you have any more questions, just DM me on Twitter. I'll open them up. I'll let the floodgates open. You're going to get a lot of DMs.

6:39

Yeah. I'll open the floodgates. So DM me. Maybe I'll do a Twitter space at some point as well for more questions, but really appreciate everyone for showing up, taking an hour out of your day. Yeah. All right. Thanks all. See you at the next one. Okay. Thanks everyone. Bye. uh, I've really been able to kind of ramp up my productivity. Uh, and again, like, yeah, like last month I shipped a thousand PRs, which is ridiculous. Uh, and then this month we're only on the 12th. I'm already at like almost 800 PRs landed. Uh, so the velocity is definitely high and you, you, I, I'm, I'm

7:14

sure a lot of you will definitely be questioning like how, how much of this code is actually good. Um, and I think, yeah, like that's definitely fair to question. Um, but, uh, yeah, I think, I think if you set up your agents well, you can definitely get to a very similar level. Um, and so I'm going to talk about how we do that. Uh, so for me, I think I'm curious, like, I guess, calling your experience as well, but, uh, for me, I think the most important skill that you should have in your toolbox when you work with agents is verification. Uh, and by verification, I mean the ability for an agent to actually run the code,

8:01

uh, or take CPU traces or heap snapshots or, uh, you know, open an iOS simulator, whatever, you know, however your application is exposed to your users, it can do the same thing and, uh, run it for real and actually test and verify it don't work. Because that's the thing that really actually closes the loop. Uh, it doesn't guarantee your agent writes good code, uh, but it allows them to at least write correct code, uh, which is a big, a really big step forward for being able to trust your agent. Um, I will, I can share one example that we have, uh, within cursor, uh, oops, where, let me open this.

8:59

Let me just make this thing, uh, make me full screen. There you go. Uh, so for the, for Cursors, Agent Window, uh, so this is actually an interesting story, but, uh, when I joined Cursor five months ago, uh, they're actually, uh, well, I was supposed to join a different team. I was supposed to join, like, the Cloud Agent team. Uh, but then since I have a lot of experience working on React and Agent Window is a React application, uh, I was, uh, I was asked to basically help out with, uh, the Agent Window work, uh, but, um, there wasn't really a lot of, like, skills to help me. So I just found myself, like,

9:45

okay, uh, Agent Window is going to launch in, like, a week, right? We have a really tight deadline. And, um, there was, uh, you know, I was just sitting there, like, okay, I'm going to open up the performance, the, the Chrome Dev tools and just, like, take a trace, look at it myself and try to make sense of this flame graph. And keep in mind, I was just, like, in my first week. So I had no idea what I was looking at. No idea where, you know, I mean, I had some idea, but, you know, the code base was completely fresh to me. Uh, and I realized, like, my agent had no idea either, you know, like,

10:18

I would take a screenshot of the trail, download trace, I would send it to it and it'd be like, yeah, it kind of looks like this, you know, uh, and it would, like, confidently state, like, it's this thing. And then I'd try to fix that. And turns out that's not the actual thing. So this was a very, very slow process. And if you've ever done any, like, performance work or yourself, or, you know, just even development with an agent where you don't have a verification skill, you are the verifier, right? You, you're the bottleneck. You, you, you tell your agent to do something and then it goes off and write some code. Then you open up your, you know, local dev build,

10:52

and then you start to say, oh, you know, it doesn't work. Then you have to copy paste screen, uh, you know, screenshots or console errors or whatever. Uh, and then your agent, like, slowly kind of, like, uh, you know, works with that and then tries to understand it and, um, fix the thing. But then you're constantly just in the loop and being a bottleneck. So there's really no way to parallelize. So the control glass skills are like one of the first skills I built, uh, for cursor. Uh, and glass, by the way, is the code name for agents window that we use internally, but it's just

11:26

cursor, I guess. Um, and so this skill, uh, is, I guess the, the, the code itself is not super interesting. Your agent can very easily make one for you, uh, where if, if you're building an electron app or a web app or even iOS, uh, applications, uh, you can teach your agent how to use like the Chrome DevTools protocol or through, uh, Apple has some utilities as well for running the simulator and taking traces and controlling programmatic control as well. Uh, so that's really useful. Uh, but one thing I actually want to talk about is, uh, the, this thing, uh, where is the read me? Uh, so this skill comes

12:14

with this very unique feature called, or not feature, a unique file called a feature map. And so the story then is like, I built this skill. And so now the agent was able to, uh, actually run the agent window and take traces and whatnot. Uh, but it had no idea what, what the agent's window was. So, um, you know, like someone would say like, oh, the, the left side bar is like laggy or something like that. Or, you know, the right side, the, the PR tab is not working and the agent would just be like kind of flailing around. It would spend a lot of time trying to like look up the code and, you know,

12:54

where is this feature? How do I actually get to it on the UI, which made it basically completely useless. Uh, you know, like we would, I would run the skill locally and, you know, it would spawn a dev build. Uh, but then it just be churning. Like I just try to click here. It wouldn't know how to get to things. Um, and it was just an awful experience. Uh, so who is putting arrows on my screen? Um, so, uh, yeah, this, this feature map has been really useful, uh, because it teaches the agent how to get to all of the features that you have. Um, and in Pstack, the plugin that I I've made, uh, if you search for

13:37

Pstack cursor on Google, you'll, you'll find it. Uh, but there is a create verification skill in that plugin, where it actually helps you set up something like this for yourself, um, including the feature map. So it will actually explore the code and build up this initial feature map that tells your agent how to get to all of the different features that you have. Uh, and this is extremely powerful because now that you have these user reports that come in, uh, you, you can actually map even like a vague report or even a screenshot. So we have this, uh, internally at cursor where, uh, we have a Slack channel where,

14:15

you know, lots of people giving us feedback on the agents window and rock bot and whatnot. Uh, and oftentimes the report is very bad, like very low quality. Like someone will just put very often we get like a screenshot, like, and then someone just says question mark, question mark, question mark, like, what is this? And you know, like without this, your agent is like, I have no clue. Right. But with a feature map like this, it has a lot more context and understanding of how to actually navigate, how to get to all of the different features. Uh, so like, you know, example, like, I guess like the sidebar, like what is the sidebar? Uh, you know, like all the different

14:54

sub features that are present in it. Um, like from the user point of view, which is where to, how to get to it, all the different keyboard shortcuts, uh, even like the, the, what do you call it? The DOM elements or yeah, like the attributes that you use for selecting things through the CDP, uh, are all there. So, uh, again, yeah, this is like really, really powerful, uh, for, for agents. Uh, and that piece that ships, uh, that create verification skill, but also a maintain verification skill. Uh, so you can keep this up to date. Cool. Yeah. I was just going to ask how you created that. So

15:34

do you mind sharing a little bit more about, um, that, that process in the context of P stack and maybe just what P stack is for the folks who aren't familiar? Yeah. So P stack is pretty interesting because, uh, well, first of all, the name is kind of goofy, like the P, the P and P stack is like potato, potato, potato stack, uh, because I, um, so, uh, uh, there's a pretty, uh, famous person, Gary Tan, who is the CEO of Y Combinator. And he's come up with this plugin called G stack, uh, Gary stack. And, uh, funnily enough, we share the last name. We have no relations. Uh, but I thought it'd be funny to kind

16:16

of, you know, poke fun at Gary and make P stack my version of, of, of, of his plugin, uh, but kind of just tailor it to my own set of engineering practices. Uh, but I honestly actually never set out to build P stack. Uh, it just started with a bunch of skills, right? Like I started with that control glass skill, and then I started with another skill like called how, which I also noticed through, like observing agents. Um, so like, you know, in the early days of me, you know, trying to climb this ladder, I was like super in the loop and I was basically nitpicking my agents to an extreme degree.

16:54

I was like, I would tell it, um, you know, this feature has stopped working. Here's a bug report. Like, why isn't it working? And very often the agent would just like confidently state like, oh, it has to be this, right? It has to be this thing. And I noticed like, when I looked at the actual tool calls, I noticed it wasn't actually reading the code that I thought should be affected. And that made me just extremely suspicious. And at that point I was like, I'm not gonna, I can't trust any, this agent anymore because it's just, it's just completely hallucinating. And I think, I think it's very easy to

17:32

just, you know, like build up that distrust and not, and kind of feel helpless. Like, you know, you don't know how to help your agents succeed, but like, again, I think the, the, the management analogy is super helpful because like, imagine if you were a manager of an engineering team and you had an engineer on your team who was a really good coder, no business context whatsoever. You know, you did, you know, like five seconds ago. And so how do you actually teach that person to be effective? So how you do that is through a skill, a skill being just, you know, it's just markdown, right?

18:10

But, you know, it encodes a lot of information instructions, a lot of, you can really draw out a lot of intelligence from an agent by, well, some people on Twitter call it like, you know, pull the agent to a different latent space, which is kind of like a fancy way of just saying, like, since, you know, LLMs are sort of like, they predict the next token, when you give it some high quality tokens to begin with, then, you know, it, it can kind of pattern match on like a higher space that's, you know, smarter. So that's like a very interesting model there. But yeah, I built P-Stack very,

18:50

very incrementally. So started with just really observing how agents, you know, all the fail, different failure modes of, of that agents were having. And every time I saw that, I just, okay, I'm just going to make that a skill, right? Like stop hallucinating, actually go and search up, look up the code, use a lot of sub agents and yeah, stop guessing.

19:16

Yeah, that makes sense. One, one kind of follow up question here, both for myself and from a bunch of people in the chat. So I guess it's two, two parts. So one is like, how do you maintain these skills? So like the product changes over time, obviously there's a lot of people who are shipping against the code base. So how do these skills get maintained? And then second to that is like, how do you know when your verification is, is good enough? Like, and, you know, you can trust that the verification loops that you've built are going to, I guess you trust the outputs when they're done.

19:47

Yeah. Yeah. Maybe I'll talk about, I think that's somewhat related. Maybe I'll start with this one first. So like, how do I maintain these skills? So if you're not familiar with this concept, an eval is essentially like a way to, well, I think the mental model I have is like, it's like a unit test for an agent. And you can actually make your own evals. You don't need like a special framework for them. You can build, you can, you can build one depending on like, you know, how scientific and how rigorous you want to be. My screen is red. Yeah. There's a little button. Sorry. Oh, if you mind like disabling the drawing or something, I can't see my screen.

20:33

Yeah. Sorry. If you guys could not draw on the screen, that'd be great. But there's a little button. Is that a troll? Yeah. The little drop down. How did I clear? Yeah. Okay. Yeah. You got it. Perfect.

20:49

Yeah. So evals are a way to unit test your skills, basically. And actually in Pstack, we ship under potato mode, there's a playbook, if you search for it called eval playbook. And it's like not, it's actually pretty, pretty rigorous the way it's done. But essentially what I do is I spawn a lot of different sub-agents. I have like my main coordinator agent come up with a rubric for what I want the skill to do. And then it spawns all these sub-agents and it creates individual directories for them, which are cleverly named to not let the sub-agent know that it's being evaluated because agents can actually tell. And when they do, they change their behavior.

21:42

And it does a bunch of stuff like that to essentially, yeah, like test whether or not the skill I'm making or changing is actually doing what I think it does. And one of the really nice things about Cursor is that we support so many different models. So you can actually eval your skill across all sorts of different models and, you know, get a sense of how well it performs across that different matrix, especially for the models that you use. So I do this a lot. Every time I modify a skill, I will run one of these, like the eval playbook and make sure that, you know, it's actually leading to a result I want. But I will say like maintaining skills is actually pretty hard.

22:32

It requires, I think, a lot of taste and observation. So you kind of need to be very good at being a backseat driver. You know what I mean? Like if you do pair, if you've ever done pair programming, for example, and you watch a coworker code and you just like, you could probably do this better. You know, you could do, you know, like, why did you not do this? Right. You ask a lot of questions to your coworker and it's kind of a similar thing here. You like, you don't want to just be a passive observer of the agent. You want to be very in the driver's seat in the initial stages when you're

23:04

building up your own set of skills. You know, obviously you can use something like PSAC, but if you're building your own set of skills, it's very, I think, you know, opening up the, all the tool calls and like reading the code and reading all the, the agent behavior and their thinking blocks is a really great way to see where they, they fail. Right. Like what, what, you know, where are they being done? And then you can go and build a skill for that. And then with verification, how you trust it is it's, I think it's also a very similar iteration loop, uh, where, you know, like I actually did the

23:39

same process for verifying the verification skill where I actually get, um, so one thing that's interesting about evals is that you can sort of hill climb them, meaning that, uh, your eval can produce a score, right? Uh, a score that you can get your coordinator to produce, uh, but also, uh, you can have a judge agent of a different model to, uh, kind of cross-reference and make sure that the first model is not being biased, right? The model that's judging all of the sub-agents that are running the thing. Uh, but you can also like hill climb. So meaning that you can, you can use like

24:18

slash loop in cursor and you can say, okay, keep looping on this eval, right? Until everything is 10 out of 10 as an example. Uh, and I did the same, the, basically the same approach with the control skill. And so I kind of, it was very, it was very hands-off actually. Uh, so, you know, I, uh, I kind of built, I built that skill that way, like the CLI and that skill. Um, and over time, it's gotten really good. Uh, but yeah, it was definitely not super smooth at the beginning. It required a lot of iteration. And I think there's an analogy here for me, which is, um, well, I make this analogy later

24:57

in a different slide on my drawing here. Uh, but I think of it like, uh, you know, as a, as a engineer now, you're sort of more like, uh, like maybe a manager or the analogy I like is like, you're like a chef in a restaurant. Uh, you know, you're the head chef. Uh, you're not cooking all the food yourself anymore. You have a team of cooks, right? You have line cooks, you have a sous chef, you know, you know, all these different stations. Um, and it's your job to really design the environment. You know, you, you're in charge of setting up the kitchen. You're in charge of, you know, like giving

25:34

tasks to different people. So, um, yeah, it's a very interesting way of working. Uh, but yeah, that's, that's how I've basically built, uh, these verification skills. Yeah. Just, just one fault there on like, I had to go, try to go one layer deeper. So are you, let's say we wanted to build, um, uh, an eval or a skill for, for something. And we wanted to kind of get better on its own, which is, is what I think you're suggesting. Are you doing that in like a work tree, kind of isolated with like the sub agents and then the reviewer agents and all that, is it happening like in some type of cloud hosted environment?

26:14

Like what's the, the more, the practical steps if I wanted to go do this, uh, and like set up a verification system for something, what would I, what would I do or where would I start? Um, I think that, uh, the best place to start is local because you can observe, you can definitely observe what your agents are doing. So, uh, if you're building a verification skill for yourself, uh, I would definitely start local and just have your agent bring up the application, whether it's like a CLI or a desktop app or whatever. And so you can actually observe, right? You can see how the agent is interacting with the, the application. You can see it, you know,

26:54

how it calls like the different APIs that allow it to interact with the, uh, the application. Um, but, uh, for me personally, uh, I have basically been kind of all in, mostly all in on cloud agents because they're extremely powerful. Uh, and the really powerful thing about cursor is the, the cloud agents actually, where if you spend a little bit of time setting up your environment, these control skills, these verification skills pay a huge amount of dividends because it's not just something that makes you as a single engineer better. It actually levels up your whole team, uh, and even your whole

27:35

company because, uh, you can actually start thinking about cloud agents. You can start thinking about automations that automatically do things like, uh, I'll, I get to, I kind of talk about this a bit later, but I'll just kind of get into it. Uh, where, where, you know, for example, like I talk a lot about this agent we have called Benny, right? Who, who, uh, you know, takes all of the bug reports that we get and it automatically goes off in the cloud, opens up a cloud. Uh, it's, you know, it's desktop. It runs a cursor in its own computer and it uses the same control skills to interact with the application

28:13

and try to reproduce the bug, uh, or the user report, right? And this is so, so powerful because at once I can immediately, I get so much information from this automatically. Like here in this example, you can see that, uh, the Benny actually reproduced the bug, uh, but it's already fixed on main. Um, so it actually confirms that we fixed this problem already. And all I need to do is just release another build of, of cursor. Uh, so that's like huge information there that I didn't have to go off and sit with an agent, you know, and spend an hour trying to fit like, is this fixed? Is this

28:48

not fixed? So you, you, you gain back so much time. Uh, but you know, everybody on my team benefits from this, everybody in the company benefits from this. Uh, so definitely think that, uh, you know, keeping these, uh, using cloud agents is super powerful. Uh, but yeah, it's like a journey. You have to trust it first, right? Before you, you get to this point. And that's, it goes back to what I was saying here where, you know, it's very hard. It's almost impossible. And I would definitely encourage you not to try to jump from, you know, like if you're still in this zone, you don't want to jump

29:24

to like, I'm going to spawn a hundred or thousands of cloud agents right now, because you're just going to waste a lot of tokens. Um, and it's going to be extremely expensive. Yeah. So just to kind of recap so far, basically the, if we wanted to go on the journey that you've kind of gone on, it would be just start with verification, um, building some, some skills and some, some ways of determining that the agents are producing at least like correct code, whether, like you said, whether it's good code or not, it's maybe a separate question, but like, it's, it's technically solving the problem by

29:55

looking at, you know, stack traces, looking at, you know, the actual behavior in the app and so on. Um, and then once we trust it locally, then we can start to think about scaling into the cloud and running more agents that are picking up signals, I guess, on their own. Right. So whether that's like a bug report that comes in or something, they can go and pick it up and solve the problem and give us back a PR and then maybe the last step is like auto merging the PRs, which, uh, is where you're at. And maybe not where everyone is at. Yeah. Um, and then reviewing the one main, but, um, is that,

30:24

is that about right? Yeah, exactly. I think, yeah, that's why I drew this, this, uh, this, this curve, right? Because that, this, this basically describes my journey of, you know, when I started, barely could use a couple of agents and I was just observing every single thing. I think there's really no shortcut for going from here to there, because this is really about your personal level of trust in agents. Right. Um, obviously, you know, as, as an engineer, you don't want to just slop code into production. So how do you actually build up that trust takes, um, a lot of, uh, I guess, taste and judgment.

30:58

Um, but, uh, you know, like I think plugins like P stack definitely can help you get up to speed much quicker. Uh, and so I guess it's like, if you trust me and you trust P stack, then in by extension, you can maybe trust your agents. But if you don't trust me, and I definitely would not encourage people to blindly trust me, uh, uh, you know, if you build up your own set of skills that you can obviously, you know, take a look at P stack and kind of fork it, make it your own, improve the skills, definitely encourage that. Uh, but for me, it's really all about, it just keeps coming back to trust. You know, every one of us here in this chat have a

31:40

different standard for engineering. Uh, and there are different things that are important for us in our code base. And, uh, when you are able to encode all of that into skills and you can verify that your agent is actually doing them, that allows you to really kind of ascend this curve. And, um, uh, you know, start automating things. Uh, there's another piece I wanted to talk about. Um, if there's. Yeah, go for it. I'll pick up more questions as I go, but yeah, I think there's a third part to this, which I haven't talked about yet, which is kind of an interesting one, which is like refactoring and rewriting. Like one of the, uh, I guess most controversial,

32:20

one of the most controversial topics in the industry, I think is like, should you rewrite your app or not? Um, because I think engineers are very prone to this where, especially when you join a company, you come in and you see like the code base and you're like, oh man, this is shit. Like who wrote this code? You know, it's, it's terrible. I want to rewrite the whole thing. There is a very common inclination. And I think a lot of, you know, before agents, um, and I guess arguably even now people will definitely discourage you from rewriting stuff. But I'm actually here to make a case for why you might want to consider it. Um, because

33:00

I think it really depends. Uh, you know, uh, brownfield applications, I think are actually in a pretty good spot, especially if they're set up well already. Uh, and like recently I've been talking to some people, but, uh, you know, I, I was just observing, I just noticed this parallel, which is that a lot of big tech company problems are now everybody's problems. Um, and the big tech company problem, you know, like when I was working at Meta, like we had this giant monorepo, like, uh, we had like, I don't know, tens of thousands of engineers, just, you know, like banging on their keyboards and, and shipping code and a lot of really great engineers at Meta. Uh, but, uh,

33:44

I'll say like, you know, you'll be surprised that the code quality is actually not that good. Um, and so I often joke that like, you know, before AI sloth, we had human sloth. Um, and so, uh, you know, I think a lot of big tech info, like, uh, like what Meta has or Google, you know, you know, really big tech companies are actually designed for that, where you're sort of like, you're catering to the, the, you know, like, uh, sound, this sounds so bad to say, but like the, the least capable engineer on your team, right? You build, you build frameworks, you build conventions, you build guardrails,

34:18

you know, you restrict credentials so that, you know, your intern doesn't wipe your production database. Um, there's, uh, you know, if you have that level of infra already, I think your agents can actually already do a very solid job, right? Because they have the, the guardrails are already in place for agents to not cause havoc or not cause too much havoc, uh, in your code base. Um, and you can always add more, you know, guardrails. Uh, but I think like greenfield applications, especially are, you know, like the brand new applications are like the biggest risk in my opinion, uh, and also the greatest

34:57

opportunity because, you know, if you vibe code a project, uh, a prototype, um, like we did for Grokbot, you know, Grokbot was spun up very, very, very quickly. Um, and if you, uh, if you haven't heard of, of Grokbot, it's like our, a new application we just launched yesterday. Uh, it's, it's really cool. Uh, lets you orchestrate your, create like individual agents that have their own identity and you can kind of orchestrate them. It's super cool. Definitely check it out. Uh, but yeah, that was, it's like a very, it was a very greenfield application. Like most prototypes are. So it was like vibe coded very quickly.

35:32

Uh, so, uh, the humans were not reading the code at all. And, uh, I had this tweet recently, uh, where I said something about organic architecture. Um, maybe I'll find it. Uh, but the idea is that, uh, when you have a completely vibe coded application, you essentially have no guardrails whatsoever. So, uh, your agents, when you give them a task, they will just solve it in whatever method is the most convenient. And over time you get into this, uh, situation where you have a code base that is spiraling out of control because you don't understand it. Uh, your agents understand it, I guess, in a way,

36:17

but like they've built something that is, you know, optimized for short, for shortcuts. Uh, and, uh, you know, it will, you will suffer, you have a lot of issues with that application. Uh, so I think starting your code base with, uh, like very strong constraints is very much needed. Uh, because like when you have a code base that you can trust, right? When you have guardrails that actually help you, uh, uh, help your agents write good code, you can get into the, you know, like into this part of the curve where I, I, where I, like I said, you know, I woke up today and I had like 20 PRs merged, uh, by my agents. And that's because I invested a lot,

37:02

a lot of time, uh, over 600 PRs. I, I, I calculated yesterday, uh, when I refactored all of GrokBot to this new architecture that I've been building. Um, and yeah, I've gotten to a point where I, I don't really look, I really don't look at the code anymore. And, um, I say that not just, you know, to sell you tokens, but because I, you know, it, it took a lot of work to get to that point. I spent a lot of tokens to get the code base to this point where I no longer have to look at it. Uh, but I'm very excited because, you know, of the potential where, you know, it's not just,

37:41

it, this doesn't just benefit me. It benefits everyone contributing to GrokBot. And it also empowers, you know, designers and product managers and, you know, people, even GTM people to add features to GrokBot. And I don't have to worry, you know, I don't have to wake up at night in, in the middle of the night and worry like, oh shit, someone's just merged a perf regression. Right. I have a ton of constraints and CI. It's like, it's actually very annoying to write code in, in GrokBot, but like agents absorb all of that annoyance. Um, but yeah, I'm happy to talk about what exactly that is. Um,

38:18

yeah, I think one question, um, before we get into the, this part here is just around that element of like what your, your, your CI looks like, or maybe some of the constraints, and then also like the average PR size. I saw a question about that earlier, just to give people a, you know, kind of a, a glance. It doesn't have to be like mathematically average, but just, uh, you know, like what generally the size of the PR is, um, if it's only a couple lines of code or, you know, um, yeah. Um, I think it depends on me. I'm trying to do this in a way where I'm not gonna like. Yeah. You don't have to share the actual number of you, like the actual average.

38:57

I think this is fine. Benchmark. But like we have, so, okay, this is not that interesting, but, uh, well, fun fact is that virtualization in GrokBot and in, uh, cursor is actually powered by, uh, Pretext, uh, which is a sort of new library that someone's built. Um, that's really interesting. You should, you should check it out, but that's not really that important. Uh, I think the average PR size, I actually don't know. I don't know if I want to click on these. Uh, I probably can, but I would say like they can range anywhere from a few hundred lines or 50 lines to like a thousand, depending on what the thing is

39:39

doing. Uh, so like here I'm actually like deleting a bunch of files. So I expect that it's just, just like mostly deletion. Uh, but yeah, it, it kind of varies. There's no like, yeah. There's no like hard cap or hard limit. They're all like 50 line PRs. Yeah. There's definitely no hard cap, but I do encourage my agents to split up their work into multiple PRs. Uh, I do that mostly because, uh, I like, I like the idea of the, I guess maybe this is much harder to do now as in the world of agents and you have like so many commits, but I like the idea that, you know, the Git history is a very rich source of context. Uh, and I like the,

40:18

I like each PR to sort of atomically describe what that small piece of thing is doing, which also makes it easier for me to revert changes and like figure out, you know, oh, I shipped a bug and it's just, it's here. It's not in this 40,000 line PR where who knows what landed in there. Uh, but I, I don't have a hard cap on PR size. Cool. And then, um, yeah, also quick question on like CI. So again, you don't have to go into like, uh, the screen share of like your, your CI does, but just generally would you describe what the CI kind of looks like, uh, or how strict it is? Uh, yeah. So, uh, well, specifically for Grokbot. So Dune is the, it's the sort of cheeky code,

41:04

code name for the architecture that we've built for Grokbot. Um, the CI looks pretty annoying because there's checks for everything. So like literally I have, um, uh, well, if you've written any React, for example, you know, you know that one of the biggest foot guns in React is UseEffect. Uh, so in, uh, Dune and in Grokbot, we've banned UseEffect. So Dune is just, you can, the, the mental model of what Dune is, uh, you can kind of think of it as like Next.js for, uh, Electron apps and it's designed for agents to write, uh, and it's like custom for, you know, our agent powered applications.

41:46

Um, so the CI checks are very like specific to that. Like, you know, don't use UseEffect. It's, it's, it's banned. Like CI will fail, uh, and yell at you. We have like some of the more interesting ones that people might raise eyebrows is like, I actually banned code comments as well, uh, which is very interesting. Um, but I've noticed that 99% of the time agents just write code comments that kind of describe some historical thing that is actually totally irrelevant to the code. Um, like it will often say like, you know, Oh, Lauren said you should never do this. And it's now in the, in a code comment. Like what? Like why, what that was, I didn't say that as like a durable,

42:27

you know, global rule. I just meant like your, this PR sucks and you should change that part. Uh, agents don't really understand us that well, surprisingly. Uh, and, or they kind of assume too much and they kind of do things in like very stupid ways. So like, yeah, we just ban everything, everything you can imagine. Like the agents are bad at, we ban. Uh, so one example that we actually suffer a lot in the agents window is we have, uh, you know, you know, if you've used agents, we do, you've definitely seen performance issues and you know, we're constantly trying to fix them.

43:02

Uh, but it's like a, it's a never ending struggle because there's so many pull requests that get merged. Every, any one of them could just regress performance or stability or reliability. Uh, you know, the agents window doesn't have this architecture yet. I plan to do, bring this learning back there and kind of refactor everything there. Uh, but, uh, it just regresses super often, uh, because, uh, there's just one example is like, we have very poor, um, isolation between processes. So like on, you know, on, on Electron, you have a renderer thread that renders your UI, but you also have like a main thread that you can run other code that, you know, doesn't need

43:43

to block the renderer. Um, but we do a poor job of separating those things. And so oftentimes you just accidentally have code that gets pulled into running on the renderer thread, right? And then all of a sudden you're competing with the, the renderer that, you know, that has a very, if you want like 60 FPS, you have to every frame that gets drawn has to be done in 16 milliseconds. So very, very small, you know, deadline per frame, uh, if you want, you know, a very smooth product. Uh, and when you start building, bringing in accidentally bringing in, you know, things that are like very computationally heavy, or they have a lot

44:21

of IO, uh, then you just get into like a lot of jank and your, your FPS really drops. You start, uh, you know, losing frames. You get long tasks that take more than 16 milliseconds. And then you just get this really choppy experience. So all of those patterns that we've learned basically building Electron apps, we've encoded into this framework and it becomes like a hard failure. So I literally, in, in Grokbot, we literally have a directory called electron main, electron renderer, and we have, uh, import, uh, CI, I guess, where we actually check the dependency graph to make sure

44:59

you're not accidentally importing code from one directory to another. Uh, so that's enforced by CI, um, as well as bug bots, uh, which is our, which cursor's, um, like code review tool that runs on CI, uh, you know, in our agents MD, it's everywhere. Like, so I, I, I, um, I have this thing here where I talk about like, um, you know, like there are multiple layers, I think for building a good code base. Uh, obviously the code base is one where, uh, if you have an architecture like this, where it's extremely strict, uh, you know, the, the, the way to build features is very conventional. That's like the

45:41

strongest, strongest level of enforcement because agents just love to copy existing patterns. So, uh, one example of this in Grokbot is like, we have this, these concepts called like a feature and we have entry points and transcript cards, like, oh, you know, the cards that you see in the chat, these are all like, like nouns, I guess, in, in the framework. And so there's a very conventional way of creating them. And so like a feature is all in a, in a single directory as an example. And so all of the code that contributes to that feature lives in one directory. So it's all co-located in one place,

46:17

makes it super easy. You know, agents don't have to like, uh, grab around and try to figure out like where all the things are. It just looks at the feature and like, oh, okay, I'm working on the onboarding feature in Grokbot. Uh, I'm just going to work in this directory. And for 80% of the work, it's mostly just very encapsulated there, but, uh, like it's like very, it's like designed again for, you know, like the dumbest agent, like you don't have to think, right? The, the, the, one of the key principles I have for this framework is like the shortest, the shortest path is the best path.

46:54

So, uh, because that plays exactly to how agents love to write goals. Like they like to take shortcuts really, you know, they'll, they'll find the quickest way to solve the problem. So why not make that the best way to solve the problem? Uh, so I, I, I probably won't get into all the specific details. Um, and, uh, the, the, this framework is really more of a collection of ideas and principles rather than something that will open source. Uh, you can, you can, you know, screenshot this, I guess, if you want, and, uh, tell your agent to, uh, do some, build, build something like this for you too. Um, yeah,

47:32

but it's really all about the layers. Uh, you know, like the, the code base is one part with features, uh, and directories and, you know, import, uh, blocking import dependencies, uh, that shouldn't be imported. Uh, but, and, and it all enforces that and static analysis. So like, uh, there's CI checks. We have a lot of lint for bad patterns that we observe, uh, compiler diagnostics. Uh, there's also rules and bug bot, which are, um, I think like three, four, five are more soft, right? These two actually make, make CI read, right? So that, you know, there's a hard constraint where the agent

48:13

can just write crappy code for rules and skills and bug bot. Your agents can still forget. Right. You can still, or it may not always consistently apply them. So I like to layer them, but I don't, I don't like to rely on them as the only source of enforcement because it's very, very soft. Right. And if you, if you only have rules and bug bot and skills and a style guide for your code, you will, it's only a matter of time before your code base looks like complete trash. Um, sorry to say that, but, uh, I definitely recommend, yeah, like, you know, investing in, you know, things that can be hard enforced. Right. And this is why, you know, maybe, uh,

48:57

the choice of tech stack that you use is also very important. Um, like I think for example, Rust is sort of making, you know, it's like getting super popular again, uh, because the compiler is so strict, right? The compiler enforces so many different things. You know, there's a borrow checker that you have to appease. And if, as long as you make sure your agents don't write unsafe code blocks, uh, you can more or less feel somewhat confident that if the code compiles, it's probably works and it's good. Uh, but you'll see, it gives you that level of trust and confidence that you as a human engineer, no longer need to go and check it yourself. You know, you, you rely on

49:39

code and static analysis to actually make that, uh, a lot smoother. Um, and I guess the worst part, the worst place to be in is if you are stuck in code review land where you actually enforce all of the constraints, the invariance in your code base by literally the human person saying, you know, reading the code and like, okay, you should not do this. Right. Every time you have to do that, you should consider that as a code smell, like a, uh, anti pattern. And you should say, okay, instead of me commenting on the PR, how do I turn this into a hard rule? Right. How do I turn this into

50:18

a lint rule? How do I turn this into a CI failure? Or how do I even categorically eliminate this problem? Uh, entirely. Uh, I, I can talk about another migration I've done, but I'll probably pause here. Sure. Yeah. I feel like that's, that's where I am to be honest is, is it what you're describing right now, which is that like, I don't have all of these rules. Uh, so I have some things to go do after this session, uh, in terms of being able to scale my agents. I'm, I'm definitely on like the, uh, you know, maybe a couple of parallel ones locally stage, like two to three locally.

50:50

And I'm sure most people here are on the same. So, uh, yeah, I know we only have a couple minutes left. Uh, Lauren, was there anything else that you wanted to, to highlight? I obviously there's lots of questions so I can grab more, but I want to give you a few minutes. Uh, if there's anything else you want to talk about. Well, I think I've been yapping for quite a lot. So I'm, maybe let's just do questions. Okay, cool. Uh, one question that had a couple of, uh, came up a couple of times was just around like token usage. So the question is like, is, is what you're describing a realistic thing for people who

51:19

are on, you know, uh, a normal set of token usage, they don't have, you know, basically unlimited tokens to work with. I think that's a really good point. I mean, like, obviously, you know, I work at an AI lab where we have unlimited tokens. So, uh, I definitely cannot say that, you know, this is something everyone should do in the exact same way that I did it. I think it's possible to get to this point without, you know, breaking the bank. But, you know, if you're like an engineering leader or, you know, you're, you're, you have a startup that you lead. Um, I think to me, it's a question of ROI. Um, and

51:58

it's like, uh, yes, you spend a lot of money on tokens in the upfront stage. You know, like, refactoring your code base is going to take a lot of tokens. Uh, adding all these things, uh, is going to take a bunch of tokens. But if we're heading to a world where agents are writing all the code and, you know, you want to be very lean, right? You don't want to have to hire, you don't want to be, you don't want to become like meta, right? Like, I mean, like, in terms of, you don't want to become a 10,000 person engineering org, because I mean, that's a cool problem to have, but also, you know, you, you have so much overhead. There's like planning, you know, like

52:38

it's, it's, uh, personally, I wouldn't, uh, it's not super fun, but, um, I think you want to stay very nimble, right? And you want to, you want to be like agents are all about allowing you to do things that you couldn't do before. That's really to me, like the value of agents, you know, it's not just storing tokens on every single little thing. But, um, to me, like the thing I couldn't do before is like enforce this level of constraints in a code base by myself, right? Like I'm just a single person, you know, uh, it would have taken me years to build this framework, uh, and do all the refactoring and

53:18

test everything myself and verify, you know, like run, imagine if there, it was just me right now in, in pre-agent era, just like running, you know, it would take me so long, right? And my salary is pretty high, right? Like, so, you know, the, the question I think an engineering leader might have is just then, you know, like what is, there's a trade-off of, do you hire someone to do this? Or do you spend the tokens to set up a code base so that even the, the most naive, right? The dumbest agents can do a good job. And when you actually get to this point, like even agents that are not,

53:55

you know, fable size do an excellent job of writing code. And this pays a lot of dividends as well for me personally, where I have empowered, not just myself, but again, like PMs, designers, engineers who are not familiar with Grokbot to just contribute in a way that is sustainable. So I think, yeah, it's definitely like a trade-off for sure. You know, like nothing is like free for sure. And tokens are pretty expensive. But, oh, actually, I don't know how many of you have seen this, but we actually announced Grok 4.6 today. So very exciting, finally out. So yeah, Grok 4.6 would be like a great, it was very, very smart. It's really good on the, on the benchmarks. And it's

54:42

the same, the tokens, well, I hopefully I'm not saying this incorrectly, but I believe the cost per token is the same as 4.5. So you're actually getting more intelligence for the same cost. I think this is an area that Cursor tries to, Cursor and SpaceX AI try to really optimize for like that Pareto frontier of, you know, cost versus intelligence. You know, we don't necessarily want to build the biggest model ever because that is extremely expensive to run. It's really about like, how do you find that sweet spot, right? You don't, you don't need a giant model, but it's just super

55:19

smart. Right. And it's not very expensive for inference. But yeah, I think to kind of round it up, I think it's like a, it's, it's, there's a, if you do your own analysis, I feel like it's pretty positive. It will be pretty positive that the ROI you get from investing and stuff like this just empowers, not just yourself, but your whole team to be so much more productive, right? Like imagine if you have an army of engineers like me who are shipping so much improvements and bug fixes, uh, you know, every day, right? Like that is pretty exciting. Cool. One last question before we wrap up,

56:02

this one is for the people in product on the, on the call. So let's say we do have an army of engineers who are shipping like Lauren. I'm just curious, like how is the product team or other functions of your company keeping up given that like, if you're shipping so quickly, have, are they using AI more to do their jobs? Like as much as you can speak to that, I know, obviously you don't have, like you're not in that role, but just curious about how that works. Um, I think this is where Grokbot has been actually exceedingly powerful, uh, where, so before Grokbot, like, you know, uh, obviously cursor only had cursor, like we only had agents window,

56:37

we had a CLI, we had an IDE, and these are really like power user tools, right? They develop, they're designed for developers. So it's very, very developer centric. You can do knowledge work in them, but it like the UI is not really optimized for that. So we actually didn't really have, uh, well, I think like a lot of people in like, you know, GTM product, like they might have used cursor, uh, to do their work, but it definitely wasn't like a delightful experience with them. Um, I think now with Grokbot, uh, it's become, Grokbot is basically like the cursor moment for people who are not in tech, in my opinion. Like it's like, it's like a very, very accessible way to

57:21

use agents in a very comfortable, very familiar interface. It looks like iMessage, um, and it's very fun too, you know, you can give your agent a fun name, uh, you can have, you can kind of do orchestration with, in a very like natural way where you can sort of, you know, each agent's like a person and now you've got a team of agents like working on, you have one, one agent per account that you manage as an example. Or if you're a PM, you have, you know, you can have an agent that summarizes all the work that Lauren did last night. And then now you know what I did, right? So I think our PMs are leveraging that a lot and they're shipping code too. Uh, so, you know,

57:58

like oftentimes they will just say, Oh, here's a bug. I fixed it. Can you look at it? And then I'll go review it and actually it's just perfect. I'm like, okay, stamp. Uh, so, uh, that I think that shows that, you know, the, the Dune architecture is holding up, right? The, all the, the really strict constraints allow people who are not experts in engineering to contribute at a high level. Uh, so I'm, I feel like I'm already seeing that pay off a lot where, uh, you know, designers and PMs are just able to, to, to ship features directly. Um, and that just makes the GrokBot team super fast,

58:35

right? Where we can ship so quickly. Um, and we have a lot planned, so I'm very excited, uh, to, you know, uh, to, to ship more, ship more stuff. Yeah. That's awesome. Uh, we are at time. So, uh, I guess Lauren, if, if folks want to support you, maybe go try out GrokBot, try out, uh, 4.6 and, uh, you know, get, get, provide some feedback, but yeah, this was awesome. Really appreciate you taking the time. Uh, thanks everyone for all the messages in the chat. Uh, lots of good questions. I know we didn't get through everything, but, uh, as I kind of said at the top, way more questions than, than we could get through, but, uh, yeah, really, really thanks.

59:10

Thanks for, for joining. Thanks everyone for joining and, uh, hopefully you, you enjoyed the session. Yep. All right. Yeah. I see. Thanks for having me. And, uh, if you have any more questions yet, just DM me on Twitter. I'll, I'll open them up, I guess. I'll let the, flood the floodgates. You're gonna get, you're gonna get a lot of DMs. Yeah. I'll open the floodgates. So yeah, DM me. Maybe I'll do like a Twitter space at some point as well for more questions, but really appreciate everyone for showing up, uh, you know, taking an hour out of your day. Yeah. All right. Thanks all. Uh, see you the next one. Okay. Thanks everyone. Bye.

Reading tools

Type to find a passage

Appearance
Ask this transcript

Add a note