Video notes · 1 talk · 57 min · 36 highlights · ~49 min to watch them all

The Agent Trust Ladder

Lauren Tan, an engineer at Cursor, explains how she went from reading every agent output to waking up to 20 PRs her agents had already merged. Her answer is trust, built in three layers: verification skills, evals that test those skills, and a codebase whose CI rejects the code agents get wrong. It maps closely to your goal of the least human intervention per task.

Thumbnail: Lauren Tan Reveals How to Build a 21+ Agent GrokBot Team

Lauren Tan

Engineer at Cursor, built GrokBot's architecture

Lauren Tan Reveals How to Build a 21+ Agent GrokBot Team

Ai insider · 56:52 · 2026-10-17

The playbook: from watching agents to auto-merge

Lauren climbs one rung at a time. Each rung removes one reason a human has to look. The order matters: skipping a rung only burns tokens.

skills and constraints invested →↑ trust in agents

1Close the loop: agents check their own work

Give each app a control skill

The agent must run the app the way users reach it and check the result. That means traces, heap snapshots, simulators and real clicks. This makes the code correct, if not yet good.

For your setup

You already have the drivers: FlowDeck and sim-navigate for iOS, claude-in-chrome for web, axdriver for Mac. The gap is a per-app skill that bundles them with how to launch and reach that one app.

Add a feature map to each one

The map lists each feature, how a user reaches it, its shortcuts and its selectors. It turns a vague report, or a bare screenshot, into a place the agent can go. A maintain step keeps it current.

For your setup

Start with the app you ship most. Put screen paths and accessibility identifiers in a feature map inside that app's skill. Make updating it part of the done criteria in the software-development skill.

Tune it locally before you scale

Build the skill on your own machine, where you can watch each step the agent takes. Move it to cloud agents only after it works.

For your setup

Slim simulators and the terminal-mac VM are your local loop. Watch one full run before you hand the skill to a scheduled or cloud agent.

2Turn failures into skills, then test the skills

Every failure becomes a skill

Read the tool calls and thinking blocks, not only the answer. When the agent names a cause without reading the code, write that failure down as a skill.

For your setup

Your improvement logs and /self-improve already catch failures. Lauren adds one habit: before you accept a confident answer, check which files the agent actually read.

Give each skill an eval

A coordinator writes a rubric and runs sub-agents in folders that hide the test. A judge on a different model checks the scores. Loop until every case scores 10 out of 10, and re-run after each edit.

For your setup

Pick one skill you use a lot, such as video-tldr or testflight-deploy. Use Codex (gpt-5.5) as the judge from a different model, and the loop skill to hill-climb.

3Move rules out of review and into CI

Every review comment is a missing rule

When you correct an agent by hand, ask how to make that a lint rule or a CI failure. Better still, remove the whole class of bug.

For your setup

Feedback memories and CLAUDE.md rules are soft: agents can forget them. Find the corrections that repeat across your improvement logs, and turn them into hooks, lints or CI checks.

Ban what agents get wrong

Dune bans useEffect and code comments. CI also checks the import graph so code cannot cross between Electron processes.

For your setup

In Swift apps, SwiftLint custom rules and Swift 6 strict concurrency do this job. In TypeScript apps, an import-boundary lint does it.

Make the shortest path the right path

Put each feature in one folder with fixed building blocks. Agents copy patterns and take shortcuts, so a strict pattern is the strongest rule you have.

For your setup

When a prototype moves up to the product tier, add this structure before you add features. Lauren calls vibe-coded greenfield apps the biggest risk.

4Scale out only after you trust it

Put cloud agents on real signals

Benny, her bug bot, takes each report and reproduces it on a cloud desktop with the same control skill. Once it found a bug already fixed on main, so she only had to ship a build.

For your setup

A scheduled agent (the schedule skill) could take bug reports for one app, reproduce them with its control skill, and answer: reproduced, already fixed, or can't reproduce.

Auto-merge comes last

Auto-merge works only after verification, evals and hard constraints are in place. She refactored GrokBot in over 600 PRs to get there.

For your setup

Try it first on a repo with strict CI and no users. Then review on main, as Lauren does.

Try this week

Five small steps up the ladder. Each one takes an afternoon or less.

  • Pick the app you ship most. List each feature, its screen path and its accessibility identifiers. Add the list to that app's verification skill.

    11:42–13:50
  • Write five cases and a rubric for one skill. Run them in sub-agents that cannot tell it is a test, judge with Codex, and loop until every case passes.

    19:11–20:29
  • Find three corrections that repeat in your improvement logs. Turn each one into a hook, a lint or a CI check.

    48:10–48:31
  • In one repo, add a check that fails when code crosses a layer it should not. An example is view code that imports the networking layer.

    42:41–43:33
  • Give one real bug report to an agent that has the app's control skill. Have it answer only: reproduced, already fixed, or can't reproduce.

    26:20–27:08

Lauren Tan · highlights

A live session with a host and chat questions. Lauren walks her trust curve: verification first, then skills and evals, then hard constraints in CI, then cloud agents and auto-merge.

InsightLeast human interventionPlaying now

Trust decides how far you can scale

Agents that guess, and claim the smoking gun for the hundredth time, lose your trust. Without trust you micro-manage, like a manager who checks every report's work. That caps how many agents you can run.

“When you don't have much trust in your agents, I feel like you really can't get the most out of them.”
InsightLeast human interventionPlaying now

The curve starts with watching every output

A year ago she ran a handful of agents and read every output. You cannot run many agents in parallel while you still have to check each one.

“You can't spawn 100 agents when you don't even trust the output of one agent.”
InsightPlaying now

Today her agents merge their own PRs

She woke up to about 20 PRs that agents had already merged, reviewed them on main, and they were good. Her output tracked her trust: a slow first month, about 1,000 PRs last month, and about 800 by the 12th of this one.

Do thisLeast human interventionPlaying now

Verification is the most important skill

Verification means the agent runs the code for real, the way users reach it: CPU traces, heap snapshots, an iOS simulator. It does not make the code good. It makes it correct, and that closes the loop.

“The most important skill that you should have in your toolbox when you work with agents is verification.”
InsightLeast human interventionPlaying now

Without verification, you are the bottleneck

In her first week, with a launch a week out, she fed flame-graph screenshots to an agent. It named the wrong cause with confidence, again and again. You end up copying screenshots and console errors back and forth, so nothing runs in parallel.

“You are the verifier. You're the bottleneck.”
TipLeast human interventionPlaying now

Build a control skill for your app

Her first Cursor skill, "control glass", lets an agent launch and drive the Agents Window ("glass" is its internal code name). For Electron or web apps, teach the agent the Chrome DevTools Protocol. For iOS, use Apple's simulator and tracing tools. An agent can write this skill for you.

TipLeast human interventionPlaying now

Add a feature map, or the agent flails

With the control skill alone, the agent could run the app but did not know what was in it. A report like "the left sidebar is laggy" sent it digging through code for ages. A feature map file in the skill tells it where each feature lives and how to reach it.

Do thisLeast human interventionPlaying now

Map vague bug reports to features

For each feature, the map lists how a user reaches it, its keyboard shortcuts, and its DOM selectors for automation. Now a Slack report that is only a screenshot and "???" is still actionable. PStack's create-verification skill drafts the first map from your code, and maintain-verification keeps it current.

InsightPlaying now

PStack began as a pile of skills

PStack ("potato sack") is her plugin, named as a joke on Garry Tan's gstack. She never set out to build it. It grew one skill at a time, tuned to her own engineering practices.

TipLeast human interventionPlaying now

Read the tool calls, not just the answer

When an agent named a root cause with confidence, she opened its tool calls. It had never read the code the bug would touch. That gap became one of her first skills.

InsightPlaying now

Skills onboard a brilliant new hire

Picture a strong coder who joined five seconds ago with no business context. You teach them through skills, which are only markdown. High-quality tokens up front pull the model toward smarter output.

Do thisLeast human interventionPlaying now

Turn every failure mode into a skill

She built PStack by watching agents fail. Each failure became a skill: stop guessing, look up the code, use many sub-agents.

“Every time I saw that, I'm just going to make that a skill.”
TipLeast human interventionPlaying now

Test skills with evals

An eval is a unit test for an agent, and it needs no framework. Her coordinator writes a rubric, then runs sub-agents in folders named so they cannot tell it is a test. She re-runs the eval after every skill edit, across each model she uses. PStack's "eval playbook" has the full method.

“Agents can actually tell, and when they do they change their behavior.”
TipLeast human interventionPlaying now

Be a backseat driver

Keeping skills good takes taste. Early on, read every tool call, the code the agent read, and its thinking blocks. Ask why it did that, as you would in pair programming. Each failure you find is the next skill.

TipLeast human interventionPlaying now

Hill-climb the eval with a loop

The coordinator scores each run. A judge agent on a different model checks the score for bias. Then loop until every case scores 10 out of 10. She built her control skill's CLI this way, mostly hands-off.

Do thisLeast human interventionPlaying now

Start local so you can watch

To build a verification skill, start on your own machine. Have the agent bring up the app, and watch how it drives it and which APIs it calls.

InsightLeast human interventionPlaying now

Cloud agents turn one skill into a team asset

Her bug bot, Benny, takes each bug report, starts a cloud desktop that runs Cursor, and uses the same control skills to reproduce it. Once it reproduced a bug and found it already fixed on main, so she only had to ship a build. Everyone at the company gets that for free.

Do thisLeast human interventionPlaying now

Do not skip rungs

Climb the curve one step at a time. If you still watch every output, spawning hundreds of cloud agents only burns money.

“You're just going to waste a lot of tokens and it's going to be extremely expensive.”
InsightLeast human interventionPlaying now

The path: verify, trust, scale, auto-merge

The host's recap, which she confirms: build verification first and trust it locally. Then run cloud agents that pick up signals like bug reports and return PRs. Auto-merge comes last. There is no shortcut, because the trust is yours.

InsightPlaying now

A case for the rewrite

Engineers are told never to rewrite. She says it depends. A brownfield app with good structure already works well with agents.

InsightLeast human interventionPlaying now

Big-tech guardrails suit agents

At Meta, tens of thousands of engineers shipped code of mixed quality. So big tech built frameworks, conventions and locked-down credentials for the least capable engineer. Agents work well inside those same guardrails.

“Before AI slop, we had human slop.”
InsightLeast human interventionPlaying now

Vibe-coded greenfield apps are the biggest risk

GrokBot began as a fast, vibe-coded prototype that no human read. With no guardrails, agents solve each task the most convenient way. The codebase grows an "organic architecture" of shortcuts and spirals out of control. Start with strong constraints.

InsightLeast human interventionPlaying now

600 PRs of refactoring bought her out of review

She moved all of GrokBot onto a new architecture in over 600 PRs. Now she does not look at the code. Designers, PMs and go-to-market staff add features, and she does not lie awake fearing a perf regression.

“It's actually very annoying to write code in GrokBot, but agents absorb all of that annoyance.”
TipPlaying now

Ask agents for small, atomic PRs

Her PRs range from 50 to about 1,000 lines, with no hard cap. She asks agents to split work so each PR describes one small change. Git history then stays rich context, and a bad change is easy to find and revert.

TipLeast human interventionPlaying now

Dune: a framework built for agents to write

Dune is the code name for GrokBot's architecture. Think of it as Next.js for Electron apps, designed for agents. Its CI fails on React's useEffect, a well-known footgun.

TipLeast human interventionPlaying now

Ban what agents get wrong, even comments

Dune bans code comments. Agents tend to write history into them, like "Lauren said never do this", which was feedback on one PR, not a rule. Her rule: whatever agents are bad at gets banned.

“Everything you can imagine the agents are bad at, we ban.”
TipLeast human interventionPlaying now

Enforce boundaries with an import check

The Agents Window keeps regressing because heavy code leaks onto Electron's renderer, which has 16 ms to draw each frame. GrokBot splits electron-main and electron-renderer folders, and CI checks the import graph so code cannot cross. Bugbot and AGENTS.md repeat the rule.

TipLeast human interventionPlaying now

Make the codebase itself the strongest rule

Agents love to copy existing patterns, so a strict, conventional architecture is the strongest enforcement. In GrokBot each feature lives in one folder, built from fixed nouns like entry points and transcript cards. For 80% of tasks the agent stays in one folder.

TipLeast human interventionPlaying now

Make the shortest path the best path

Agents take the quickest route to solve a problem. So design the framework so that the quickest route is also the right one. Dune will not be open-sourced; she suggests you screenshot the ideas and have an agent build your own.

“The shortest path is the best path.”
InsightLeast human interventionPlaying now

Hard rules turn CI red; soft rules get forgotten

Hard layers: code structure, blocked imports, static analysis, lints, compiler diagnostics. Soft layers: rules, Bugbot rules, skills, style guides. Agents forget soft rules, so use them as backup, never as the only line.

“For rules and skills and Bugbot, your agents can still forget.”
TipPlaying now

Pick a strict compiler

Rust is popular with agents because its compiler checks so much. Ban unsafe blocks, and code that compiles probably works. The compiler gives you the trust, so you do not have to check by hand.

Do thisLeast human interventionPlaying now

Every review comment is a code smell

The worst place to be is code-review land, where a human enforces every rule by reading PRs. Each time you write a comment, ask how to make it a lint rule or a CI failure, or how to remove the problem class entirely.

“Instead of me commenting on the PR, how do I turn this into a hard rule?”
InsightPlaying now

The token bill is an ROI question

She works at an AI lab with unlimited tokens, and says so. Refactoring and adding constraints cost many tokens up front. Weigh that against hiring, and against growing into a huge engineering org.

InsightLeast human interventionPlaying now

Agents let one person hold a team's standard

The value of agents is work you could not do before. Alone, she would have needed years to build this framework, refactor onto it and verify it all. Once the codebase is set up, even smaller models write excellent code.

InsightPlaying now

GrokBot brings agents to non-engineers

Cursor's other tools are built for developers. GrokBot looks like iMessage. You name each agent and orchestrate them like people: one agent per account, or one that tells a PM what Lauren shipped overnight.

InsightPlaying now

PMs now ship code she approves as-is

PMs send her fixes, and they are often just right. To her, that proves the strict Dune constraints let non-experts contribute at a high level.

Lauren Tan · transcript

Underlined passages are cited in the highlights. The line that is playing turns red. Turn on “Follow along” in the player to keep it in view.

0:00And with GrokBot, we really wanted to take you know, like a fresh perspective on what would it look like if your agent was really more like a colleague? >> Mhm. >> Uh and so I started thinking about how would I make it so my agents could just automatically fix bugs for me while I sleep? And so that was the inspiration for some of our earlier experiments with, you know, building like uh like a more like persistent bot.

0:24If you invest a lot in in having like early the the way I see engineers roles evolve in the agent world is uh you know, like I I like I mentioned, you're sort of like an engineering manager for your agents. But I think a big part of our responsibility now as engineers is also to like uh you know, keep the code base in in in a condition where, you know, product managers, designers can contribute like high-quality code.

0:52Uh okay, so I assume you can see my screen. >> Yes. Yeah, we're good. >> So yeah, today yeah, I think 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.

1:19And when you see agents just, you know, winging it and, you know, guessing, hallucinating, uh you know, confidently stating that they found the smoking gun uh for the hundredth time, uh but it's actually not the real problem, you lose a lot of trust. And when you lose when you don't have much trust in your agents, I feel like you you really can't get the most out of them.

1:43And for me, the parallel is like with management. Uh so if I'm an a manager an engineering manager for a team, and I have a bunch of, you know, I have a team of engineers uh on my team, and I don't trust them, then the mode of operation I'm going to be in is going to be like micro-management, right? I'll have to spend a lot of time looking over my reports' shoulders and checking that they're doing their work well, you know, that they're not shipping bugs to production.

2:13And so, I drew this chart because uh it's not it's not a very scientific chart, but like this is how I imagine myself and my journey through using agents. So, you know, like fast forward or back forward, uh or fast back, uh fast backwards like a year or so, when you know, nobody was or not many people were using agents to code, uh I think you uh you get into this mode where you are in very heavily in the loop with one or several, like

2:49a handful of agents, and you find yourself just constantly fig- uh you know, trying to understand what your agents are doing, uh and you're very very in the loop. You're watching every single output. You are sitting there prompting, um and you really can't parallelize beyond that because you don't Again, you don't have that trust, right?

3:10You can't go to 100 agents, uh like spawn 100 agents when you don't even trust the output of one agent. So, over the past 5 months, I feel like I've really been able to uh like ascend this trust curve, and now I'm at the point where uh I actually have This sounds kind of scary to say this, and it it makes me sound like a slot artist, but I I promise I'm not.

3:36But I actually have my agents now um auto-merging PRs for me, uh which is like a wild thing to say, but um like 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. Uh so, how did I get to that point? It's basically why I wanted to talk about today.

3:59And again, like yeah, feel free to jump in if you have questions, Colin. Um but uh Oh, yeah, of course I got to show this this chart. Uh where Don't do not trust to Someone requested to control my computer. Probably won't do that. Uh but yeah, so this chart I think I I'm sharing this chart not to kind of like flex, but to kind of show like the journey.

4:29Like so you can see like the curve like it sort of like inversely matches the contributions I've been able to land at Cursor. So, I joined 5 months ago. And 5 months ago like I you know, my first month I was like not very productive cuz I was you know, I was learning the code base. Didn't know what the heck was going on. And as I got more confident in in my agents, I've really been able to kind of ramp up my productivity.

4:56Uh and again, like yeah, like last month I shipped 1,000 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 I share a lot of you will definitely be questioning like how how much of this code is actually good.

5:19And I think yeah, like that's definitely fair to question. Um but 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 Colin, 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.

5:56Uh and by verification I mean the ability for an agent to actually run the code 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 users it can do the same thing and uh run it for real and actually test and verify it'll work.

6:24Cuz that's the thing that really 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.

7:00Let me make this bigger. Uh let me go full screen. There you go. Uh so for the for cursor's 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 agents team.

7:23Uh but then since I have a lot of experience working on React and agents 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.

7:45So, I just found myself that okay, uh Agent Swarm was going to launch in like a week. All 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 DevTools 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.

8:07So, I had no idea what I was looking at, no idea what you know, uh I mean, I had some idea, but you know, the the the code base was completely fresh to me. Uh and I realized like my agent had no idea either, you know, like I would take a screenshot to try to download trace or send it to it and be like, "Yeah, it kind of looks like this, you know." Uh and it would like confidently state like it's this thing.

8:28And then I try to fix that. And it turns out that's not the actual thing. So, this was very very slow process. And if you've ever done any like performance work yourself or you know, just even development with an agent where you don't have a verification skill, you are the verifier. All right, you you're the bottleneck. You you you tell your agent to do something, and then it goes off and writes some code.

8:51Then you open up your, you know, local dev build, and then you start to say, "Oh, you know, it doesn't work." Then you got to copy-paste screen you know, screenshots or console errors or whatever. Uh and then your agent like slowly kind of like you know, works with that and then tries to understand it and um uh fix the thing. But then you're constantly just in the loop and and being a bottleneck.

9:14So, there's really no way to parallelize. So, the control glass goes like one of the first skills I built uh for Cursor. Uh and glass, by the way, is the code name for Agent Window that we use internally, but it's just Cursor, I guess. Um and so, this skill uh is I guess that that the code itself is It's super interesting.

9:36Your 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 and 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.

10:01Uh so that's really useful. Uh but one thing I want actually want to talk about is uh the this thing. Uh where is the readme? Uh so this skill comes with this very unique feature called or not feature yet uh unique file called a feature map.

10:23And 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.

10:46Or you know, the right side the the PR tab is not working. And the agent would just be like in a flailing around. It would spend a lot of time trying to like look up the code and you know, 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 this 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.

11:12It wouldn't know how to get to things. Um and it was just an awful experience. Uh so who was 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 P Sack, the plugin that I I've made, uh if you search for P Sack cursor on Google, you'll you'll find it.

11:42Uh 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.

12:11So we have this uh internally at Cursor where uh we have a Slack channel with, you know, lots of people giving us feedback on the agent's window and walk bar and whatnot. Uh and often times the report is very bad, like very low quality, like someone 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?

12:35>> [laughter] >> And you know, like that it with without this, your agent says, "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 sub-features that are present in it.

12:59Um like from the user point of view, here's where that 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.

13:24>> And >> Uh and a 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, 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.

13:50Like the P the P in P stack is like potato potato sack. Um because I um so uh the there is a pretty uh famous person, Garry Tan, who is the CEO of Y Combinator. And he's come up with this plugin called G stack. Uh Garry stack. And uh funnily enough, we share the last name.

14:13We have no relation. Uh but I thought it'd be funny to kind of, you know, poke fun at Garry and make P stack my version of of of of his plugin. Uh but kind of just tailor it to my own set of prac- engineering practices. Uh but I honestly actually never set out to build P stack. Uh it just started with a bunch of skills.

14:36All 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. I was like I would tell it um you know, this feature has stopped working.

15:01Here'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 they should be affected. And that made me just extremely suspicious.

15:23And at that point I was just like, I'm not going to I can't trust any this agent anymore cuz it's just it's just completely hallucinating. And I think I think it's very easy to 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 in your team who was a really good coder, no business contacts whatsoever, you know, they they just you just hired them and they they onboarded,

16:00you know, like uh 5 seconds ago. Uh and so how do you actually teach that person to be effective? So how you do that is through skill. Uh skill being just, you know, it's just markdown, right? But you know, it it codes a lot of information, instructions, a lot of uh 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.

16:28Which is kind of like a fancy way of just saying like since uh you know, LLMs are sort of like they predict the next token. Uh when you give it some high-quality tokens uh to begin with then, you know, it it can kind of pattern match on like a higher space that's, you know, smarter. Um so that's like a very interesting model there.

16:50But yeah, I built P stack very, very incrementally. Uh so uh started with just really observing how agents, you know, all the failed 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. All right, like stop hallucinating, actually go and search up look up the code. Use a lot of sub agents.

17:12Uh and yeah, stop guessing. >> Yeah, that makes sense. One one kind of follow question here both from 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?

17:34And then second to that is like how do you know when your verification is is good enough? Like in you know you can trust that the verification loops that you've built are going to I guess you trust that that would put when when they're done. >> Yeah, maybe I'll talk about I think I have something related. Maybe I'll start with this one first.

17:55So like how do I maintain these skills? So if you're not familiar with this concept and eval [clears throat] is essentially like a way to 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.

18:18You 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. >> Are you disabling the drawing or something? I can't see my screen. >> Yeah, sorry. If you guys could not draw on the screen that would be great but there's a little button in the Yeah, the the little drop down.

18:43>> I like clear. >> Yeah. >> Okay, yeah. >> You got it. Perfect. >> Um Yeah, so evals are a way to unit test your skills basically. And actually in Pystack we ship under potato mode there's a playbook if you search for it called eval playbook. And it's uh It's like not it's actually pretty pretty rigorous the way it's done.

19:11But um essentially what I do is I spawn a lot of different sub agents. I have like my main coordinator agent uh come up with a rubric for uh what I want the skill to do. Um and then it spawns all these sub agents and it it creates individual directories for them uh which are cleverly named to not let the sub agent know that it's being evaluated because uh agents can actually tell and when they do they change their behavior.

19:44Uh but it does a bunch of stuff like that to um essentially yeah, like test whether or not the skill I'm making or changing is actually doing what I think it does. Um and one of the really nice things about Cursor is that we are we have we support so many different models. So you can actually eval your skill across all sorts of different models.

20:07Um and you know, get a sense of how well it performs across that different matrix. Um especially for the models that you use. Uh so I do this a lot. Every time I I modify a skill, I will run one of these. Uh like the eval playbook uh and make sure that you know, it's actually leading to a result I want.

20:29Uh but I will say like maintaining skills is actually pretty hard. Uh 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 uh and you watch a coworker code and you just like you you could probably do this better.

20:52You know, you could do you know, you 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 agent. You want to be very in the driver seat in the initial stages when you're building up your own set of skills. Uh you know, obviously you can use something like P Sack, 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 uh the agent behavior and their thinking blocks is uh a really great way to see where they they fail, right?

21:28Like 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 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?

21:58Uh 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 {slash} loop in cursor and you can say, "Okay, keep looping on this eval, right?

22:26Until 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 in that skill. Um and over time it's gotten really good.

22:47Uh 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 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 you uh like maybe a manager or the analogy I like is like you're like a a chef in a restaurant.

23:17Uh 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 a line cooks, you have a sous chef, you have you know, all these different stations. Um and it's your job to really the environment. You know, you you you're in charge of setting up the kitchen. You're in charge of you know, like giving tasks to different people.

23:39So um yeah, it's a very interesting way of working. Uh but yeah, that's that's how I basically built uh these verification skills. >> Yeah, just just one thought there and like I try to go try to go one layer deeper. So, are you let's say we wanted to build um an eval or a skill for for something and we wanted to kind of get better on its own, which is is what what I think you're suggesting.

24:06Uh are you doing that in like a work tree kind of isolated with like the sub agents and and then the reviewer agents and and all that? Is it happening like in some type of cloud-hosted environment? 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 way to start is local because you can observe.

24:33You 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.

24:55You can see it, you know, how it calls like the different APIs that 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 dividend because it's not just something that makes

25:31you as a single engineer better, it actually levels up your whole team uh and even your whole company because uh you can actually start thinking about cloud agents and start thinking about automations that automatically do things like uh I'll I get I 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?

25:58Who 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 cursor in its own computer, and it uses the same control skills to interact with the application and try to reproduce the bug uh or the user report, right?

26:20And this is so so powerful because at once I can immediately I I get so much information from this automatically. Like here in this example, you can see that uh the Benny actually reproduce the bug, uh 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 of cursor.

26:43Uh 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 figure out is this fixed or is this not fixed? So, you you you can max so much time, uh but you know, everybody on my team benefits from this. Everybody at the company benefits from this. Uh so, definitely think that you know, keeping these using cloud agents is super powerful.

27:08Uh 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 to like I'm going to spawn a hundred or a thousand of cloud agents right now because you're just going to waste a lot of tokens and it's going to be extremely expensive.

27:38>> 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, building some some skills and some some ways of determining that the agents are producing at least like correct code or there like you said, whether it's good code or not is maybe a separate question, but like it's it's technically solving the problem by looking at you know, stack traces, looking at you know, the the actual behavior in the app and so on.

28:03And 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 and they can go and pick it up and solve the problem and and give us back a PR. And then maybe the last step is like auto merging the PRs, which is where you're at. >> Maybe not where everyone is.

28:23>> Yeah, yeah. >> And then reviewing them on main, but is that is that about right? >> Yeah, exactly. I think yeah, that's why I drew this this this this curve, right? Because that this this basically describes my journey of you know, when I started barely could use a couple 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 the agents.

28:49Right? Um obviously, you know, as a as 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. Um but uh you know, like I think plugins like Pstack definitely kind of help you get uh get up to speed much quicker. Uh and so, I guess it's like if you trust me and you trust Pstack, then in by extension, you can maybe trust your agents.

29:19But if you don't trust me and I 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 Pstack 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.

29:40You know, every one of us here in this chat have a 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 agents actually doing them, that allows you to really kind of ascend this curve. And um uh you know, start automating things.

30:05Uh there's another piece I wanted to talk about um if there's >> Yeah, go for it. I'll I'll pick up more questions as I go, but >> Yeah, I think there's a 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 one of the most controversial topics in the industry, I think, is like should you rewrite your app or not?

30:30Um 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, "Man, this is Like who wrote this code? You know, it's it's terrible. 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.

30:56But I'm actually here to make a case for why you might want to consider it. Um because I think it really depends. Uh you know, 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 about uh you know, I I I was just observing.

31:18I 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. We had like, I don't know, tens of thousands of engineers just you know, like banging on their keyboards and and shipping code.

31:41And a lot of really great engineers at Meta, uh but uh 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 infra, like uh like what Meta has or Google, you know, you know, really big tech companies, are actually designed for that where you 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,

32:16right? You build You build frameworks, you build conventions, you build guardrails, 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?

32:37Because they have the the guardrails are already in place for agents to not cause havoc or not cause too much havoc 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.

32:59Uh and also the greatest 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 if you haven't heard of of Grokbot, it's like our our 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.

33:25It's super cool, definitely check it out. Um 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. 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.

33:50Uh 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.

34:17Uh your agents understand it, I guess, in a way, 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 of issues with that application. Uh so, I think starting your code base with uh like very strong strains is very much needed.

34:42Uh 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, right? Good code. You can get into the you know like into this part of the curve where I I where I like I 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 of a lot of time uh over 600 PRs I I I calculated yesterday uh I when I refactored all of GrokBot to this new architecture that I've been building.

35:17Um and yeah, I 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 it I you know, it 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.

35:39Uh but I'm very excited because you know, of the potential where, you know, it's not just 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, even GTM people to add features to GrokBot. And I don't have to worry, you know, I don't have to to wake up at night in in the middle of the night and worry like, oh someone's just merged a perf regression.

36:06Right? I have a a ton of constraints and CI is 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 >> Yeah, I think one question um >> Yeah. >> 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.

36:34I 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 a you know like what generally the size of the a PR is um if it's only a couple lines of code or you know um yeah. >> Um I think it depends. Um maybe I'm trying to do this in a way where I'm not going to like >> Yeah you don't have to share the actual number if you like the actual average just >> this is fine.

37:02>> Benchmark. >> But like we have So okay. This is not that interesting but uh well fun fact is that virtualization in Grugbot 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.

37:23You 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 probably 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 doing. Uh so like here I'm actually like deleting a bunch of files so I expect that it's just this like mostly deletion.

37:50Uh but yeah it it kind of varies. There's no like Yeah. >> like a hard cap for how many of them are like 50 line PRs? >> cap. There's definitely no hard cap but I 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 I guess maybe this is much harder to do now is in the world of agents and you have like so many commits.

38:15But I like the idea that you know the Git history is a very rich source of context. Uh and I like the 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 this it's here, right? It's not in this 40,000 line PR where you know, who knows what landed in there.

38:41Uh, but yeah, 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 is the sort of cheeky code code name for the architecture that we built for Grokbot.

39:12Um, the CI looks pretty annoying because there's checks for everything. So, like literally, I have um, uh, well, if you've read any React for example, you know, you know that one of the biggest footguns in React is use effect. Uh, so in uh, Dune and in Grokbot, we've banned use effect.

39:34So, 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. Um, so the CI checks are very like specific to that. Like, you know, don't use use effect.

39:55It'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.

40:21Um like it will often say like, you know, "Oh, Lauren said you should never do this." And it's now in the in the code comment. I'm like, "What? Like, why what that that was I didn't say that as like a durable, you know, global rule. I just meant like your this PR sucks and you should change that part." Like, agents don't really understand this that well, surprisingly. Uh and or they kind of assume too much and kind of do things in like very stupid ways.

40:47So, 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 window, you've definitely seen performance issues and, you know, we're constantly trying to fix them. Uh but it's like a it's a never-ending struggle because there's so many pull requests that get merged.

41:14Every anyone 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 there's one example is like we have very poor um isolation between processes.

41:39So, 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 to block the renderer. Um but we do a poor job of separating those things. And so, often times you just accidentally have code that gets pulled into running on the renderer thread. Uh 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 ms.

42:12So, 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 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 you just get this really choppy experience.

42:41So, 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 you're not accidentally importing code from one directory to another.

43:07Uh, so that's enforced by the CI, um, as well as Bobbocks, uh, which is our which cursors, um, like code review tool that runs on CI. Uh, you know, in our agents MD, it's everywhere. Like, so I 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.

43:33Uh, 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 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.

44:00Like, all 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 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.

44:22Makes it super easy, you know, agents don't have to like grep 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. I'm just going to work in this directory." And for 80% of the work, it's mostly just very encapsulated there. >> [clears throat] >> But like it's like very it's like designed again for, you know, like the dumbest agent.

44:47Like, you don't have to think. All 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. So, because that plays exactly to how agents love to write code. Like, they like to take shortcuts, really. You know, they'll they'll find the quickest way to solve the problem.

45:09So, why not make that the best way to solve the problem? So, I probably won't get into all the specific details. And this framework is really more of a collection of ideas and principles rather than something that will open source. You can you can, you know, screenshot this, I guess, if you want and tell your agent to do some build build something like this for you, too.

45:35Um yeah, but it's really all about the layers. You know, like the code base is one part with features and directories and, you know, import blocking import dependencies that shouldn't be imported. But and and it all enforces that and static analysis. So, like there's CI checks. We have a lot of lints for bad patterns that we observe.

46:00Compiler diagnostics. There's also rules in bug bot which are, um, I think like three, four, five are more soft, right? These two actually make make CI red, right? So, that you know, there's a hard constraint where the agent can just write crappy code. For rules and skills and bug bot, your agents can still forget, all right?

46:26You 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.

46:51I'm sorry to say that, but I definitely recommend, yeah, like you know, investing in, you know, things that can be hard enforced, right? And that's this why, you know, maybe uh, 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?

47:15The 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 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.

47:41You you know, you you rely on code and static analysis to actually make that, uh, a lot smoother. Um, and I 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 invariants in your code base by literally the human person saying, you know, reading the code and be like, "Okay, you should not do this." Right?

48:10Every time you have to do that, you should consider that as a code smell, like a 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 a lint rule? How do I turn this into a CI failure? Or how do I even categorically eliminate this problem uh entirely?

48:31Uh 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 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 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, so like two to three locally.

48:55And 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 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 I had uh a couple of came up a couple times was just around like token usage.

49:19So the the question is like is is what you're describing a realistic thing for people who are on you know, uh a normal set of token usage, they don't have, you know, basically unlimited tokens uh to work with. >> Well, I think that's a really good point. I mean, like obviously, you know, I work at a 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.

49:49I think it's possible to get to this point without, you know, breaking the bank. But, you know, if you are like an engineering leader or, you know, you're you're you have a startup that you lead, um I think the main is a question of ROI. Um and it's like yes, you spend a lot of money on tokens in the upfront stage.

50:10You know, you like refactoring a 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 need you have so much overhead.

50:40There's like planning, you know, like you it's it's uh personally I 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 throwing 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.

51:12Right? 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 test everything myself and verify, you know, like run Imagine if there was just me, right? No in in pre-agent era, just like running, you know, by my It would take me so long, right?

51:33And 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.

51:56And when you actually get to this point, like even agents that are not, you know, fable size, do an excellent job of writing code. And this pays a lot of dividends as well for me in personally where I have empowered not just myself, but again, like PMs, designers, engineers who are not familiar with Grok to just contribute in a way that is sustainable.

52:21So, I think, yeah, it's definitely like a trade-off for sure, you know, like nothing is like free for sure. Uh and tokens are pretty expensive. Uh but oh, actually, uh I I I don't know how many of you have seen this, but we actually announced Grok 4.6 today. So, very exciting, finally out. Um so, yeah, Grok 4.6 would be like a great It is very, very smart.

52:43Uh it's really good on the on the benchmarks. Uh and it's the same the tokens uh I hopefully I'm not saying this incorrectly, but uh I believe the cost per token is the same as 4.5. So, you're actually getting more intelligence for the same cost. Uh 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.

53:13Uh 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 smart, right, and it's not very expensive for inference. Uh but um yeah, I think to kind of round it up, um 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.

53:40It It'll be pretty positive that the ROI you get from investing in 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 and bug fixes uh you know, every day. All right, like that is pretty exciting.

54:04>> Cool. Uh one last question before we wrap up. Uh 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 have are they using AI more to do their jobs? Like as much as you can speak to that.

54:26I 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 Grok Bot has been actually exceedingly powerful. Uh where so before Grok Bot like you know, obviously Cursor only had Cursor. Like we only had agents window, we had a CLI, we had an IDE. And these are really like power user tools, right?

54:49Like the 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 Well, I think like a lot of people in like you know, GTM product like they might have used Cursor to do their work but it definitely wasn't like a delightful experience for them.

55:12Um I think now with Grok Bot uh it's become Grok Bot 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 use agents in a very comfortable, very familiar interface. It looks like iMessage. Um and it's very fun too.

55:34You know, you can give your agent to have 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 is like a person and now you have 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?

55:57So I think our PMs are leveraging that a lot. And they're shipping code too. So you know, like often times they will just say oh here's a bug, I fix 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 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.

56:25So I'm I feel like I'm already seeing that pay off a lot where you know, designers and PMs are just able to to to ship features directly. And that just makes the Grok Bot team super fast, right? Where we can ship so quickly. Um and we have a lot planned so I'm very excited to you know, to to ship more ship more stuff.

Built from YouTube auto-captions. Names are spelled as heard. The captions write PStack as "P Sack" and "Pystack", Bugbot as "Bobbocks", GrokBot as "Grugbot" in places, and "slop" as "sloth". The host is "Colin" in the captions.