Scaling AI coding agents through trust: deterministic checks, verification and lint rules at Grok Bot: analysis
Transcript · Report with the audio
Lauren Tan (poteto) of the Grok Bot team at SpaceXSI argues that an engineer’s job now is to keep code quality steady or better while output grows sharply, by building an agent environment that can be trusted (Lauren Tan 0:48). She lays out an inverted “trust pyramid”. The codebase and deterministic checks come first, then runtime and formal verification, then prose rules last (Lauren Tan 1:40; Lauren Tan 2:32). Examples from the Dune framework include banning useEffect, forbidding imports between Electron main and renderer code, and replacing comments with lint rules (Lauren Tan 5:08; Lauren Tan 6:02; Lauren Tan 8:33). Most of her tokens now go to verification (Lauren Tan 11:52). The team shipped 11,000 PRs in a month with a revert rate near 0.5%, and the app got faster (Lauren Tan 13:26; Lauren Tan 14:15). She advises building these foundations before automating into a software factory (Lauren Tan 15:02).
People
- Lauren Tan (100.0% of talking time, 2,845 words): Solo speaker, also known as poteto (transcribed as ‘Potato’), who works on Grok Bot at SpaceXSI and previously worked on Cursor (Lauren Tan 0:00; Lauren Tan 6:02). She argues that every correction given to an agent should become a deterministic check or an API or architecture change, not another line of prose (Lauren Tan 2:32; Lauren Tan 8:33). She is direct and a little irreverent. Her team bans 99% of comments (Lauren Tan 7:44), and she admits formal verification is still an experiment and ‘not a silver bullet’ (Lauren Tan 11:03).
Chapters
- Turning slop into gold [0:00]. Tan opens by saying she shipped 3,000 pull requests to production last month (Lauren Tan 0:00). Her previous company called rare, very productive engineers like Bret Taylor ‘coding machines’, and she says agents now let anyone be one. The job is to keep or improve quality while productivity rises. She frames this as trust earned by investing in the agent’s environment, not blind trust (Lauren Tan 0:48).
- The trust pyramid and the codebase as a garden [1:40]. She says it took her six months to reach thousands of PRs, many shipped while she slept (Lauren Tan 1:40). Her inverted pyramid puts deterministic layers first (code, API design, architecture, lint rules, types, compilers, tests), then runtime and formal verification, then prose such as rules, skills and agents.md (Lauren Tan 1:40; Lauren Tan 2:32). The codebase is one of the largest inputs to agents, so they copy its tech debt and anti-patterns. She compares the codebase to a garden that must be kept free of weeds (Lauren Tan 3:27; Lauren Tan 4:18).
- Dune framework and enforced architecture [5:08]. Dune, which she likens to Next.js for Electron apps, encodes the team’s lessons as constraints and lint rules (Lauren Tan 5:08). Product code may not use useEffect, because it takes nuance to use well and agents misuse it (Lauren Tan 5:08; Lauren Tan 6:02). Top-level electron main and renderer directories, with imports between them banned, stop the imports that caused jank at Cursor (Lauren Tan 6:02).
- Replacing comments with lint rules [6:56]. Agents use Markdown and comments to justify shortcuts, or treat a small correction as a hard rule (Lauren Tan 6:56). At Cursor, imperative timers spread to patch over the clash between VS Code’s imperative style and React’s declarative style. Comments defended each quick fix, and garbage collection from the timers hurt performance (Lauren Tan 6:56; Lauren Tan 7:44). Grok Bot bans 99% of comments and uses lint rules whose error messages point agents at the root cause (Lauren Tan 7:44; Lauren Tan 8:33). Repeated enough, this leaves little to review, and agents merge most of their own PRs (Lauren Tan 9:23).
- Runtime verification and feature maps [9:23]. Code review has shrunk into reviewing verification artifacts: videos, screenshots, diagrams and formal proofs (Lauren Tan 9:23). In runtime verification, agents run the app themselves with tools like the Chrome DevTools Protocol. A ‘feature map’, like a site map of the app’s features from the user’s point of view, gives agents and humans shared names for them. Custom CLIs cut token use and can be tested (Lauren Tan 9:23; Lauren Tan 10:16).
- Formal verification with TLA+ and Lean, and UI property testing [10:16]. The team uses TLA+ to model-check major flows, such as notifications across devices (Lauren Tan 10:16). Lean proves properties of a custom virtualization library, such as the absence of flicker or jitter. It has already found bugs, but she calls the approach experimental and one layer among many (Lauren Tan 11:03). Property-based UI testing with Bombadil has also caught bugs (Lauren Tan 11:03).
- Spending most tokens on verification [11:52]. She cites a tweet from Cindy, who now spends 70% of her daily tokens on verification, and says her own usage looks similar (Lauren Tan 11:52). These are old techniques that agents have made cheap, so she calls this ‘a golden age of software testing and verification’ (Lauren Tan 11:52; Lauren Tan 12:40). She introduces the State Chart skill in her pstack plugin, which draws state machines from the user’s point of view to review alongside videos (Lauren Tan 12:40).
- Grok Bot results: 11,000 PRs, 0.5% revert rate, faster app [13:26]. The Grok Bot team shipped 11,000 PRs last month and cuts a stable client release about once a day. About 227 people contributed at least one PR in October, many of them drive-by contributors (Lauren Tan 13:26). The revert rate fell in relative terms and holds at about half a percent. Startup, typing and chat switching all got faster, though Electron sets a ceiling (Lauren Tan 14:15).
- Foundations before software factories [15:02]. She advises fixing the codebase first, with lint rules and cleanup of old patterns, then strengthening verification, because automating a sloppy inner loop produces more slop (Lauren Tan 15:02). On those foundations, Grok Bot can orchestrate the outer loop through connectors and routines that launch Cursor cloud agents (Lauren Tan 15:49). On each release, a Cursor project fuzzes the build, then opens and auto-merges fix PRs (Lauren Tan 15:49; Lauren Tan 16:35).
Follow-ups
- Tan points listeners to the State Chart skill in her pstack plugin, which visualizes state machines from the user’s point of view (Lauren Tan 12:40).
- Her plan for listeners: when correcting an agent, add a lint rule against new occurrences, clean up old patterns, strengthen verification, and only then automate (Lauren Tan 15:02).
- She invites teams to use Grok Bot to build the outer loop once their foundations are ready (Lauren Tan 15:49).
Open threads
- Formal verification with TLA+ and Lean is still an experiment. Tan calls it promising but not a silver bullet, and does not say how far the team will take it (Lauren Tan 11:03).
- Electron limits Grok Bot’s performance (‘there is a ceiling’), and her ‘for now’ hints at a move away from it that she does not explain (Lauren Tan 14:15).
- She says most product code no longer needs deep human review and that fuzz-found fixes are auto-merged, without discussing limits or failure cases (Lauren Tan 16:35).
Mentions
- SpaceXSI (organisation): Tan’s employer, where she works on Grok Bot. (Lauren Tan 0:00)
- Grok Bot (tool): The Electron desktop app her team builds, transcribed as GraphBot or GroqBot. Source of the 11,000-PR figure, and offered as an outer-loop orchestrator. (Lauren Tan 0:00, Lauren Tan 13:26, Lauren Tan 15:49)
- Bret Taylor (person): Her example of a ‘coding machine’ from before agents. She says he rewrote Google Maps in a weekend. (Lauren Tan 0:48)
- Google Maps (work): Named in the Bret Taylor anecdote. (Lauren Tan 0:48)
- Dune (tool): In-house client framework for Grok Bot, like Next.js for Electron. It encodes lessons as constraints and lint rules. (Lauren Tan 4:18, Lauren Tan 5:08)
- Next.js (tool): Her comparison point for Dune. (Lauren Tan 5:08)
- Electron (tool): Platform for Cursor and Grok Bot. Directory structure enforces the main/renderer split, and Electron caps performance. (Lauren Tan 6:02, Lauren Tan 14:15)
- React useEffect (tool): Banned in Grok Bot product code because agents misuse it. (Lauren Tan 5:08)
- Cursor (organisation): Electron app Tan worked on before Grok Bot. Source of the anti-pattern examples (main-thread imports, timers). Cursor cloud agents run in Grok Bot’s factory. (Lauren Tan 6:02, Lauren Tan 6:56, Lauren Tan 15:49)
- VS Code (tool): Its imperative style clashed with React’s declarative style inside Cursor, which led to the timer workarounds. (Lauren Tan 6:56)
- agents.md (other): Prose agent instructions, at the bottom of the trust pyramid. (Lauren Tan 2:32)
- Chrome DevTools Protocol (tool): Debugging tool agents use for runtime verification. (Lauren Tan 9:23)
- TLA+ (tool): Model-checks major user flows such as cross-device notifications. (Lauren Tan 10:16)
- Lean (tool): Proves properties of a custom virtualization library. (Lauren Tan 11:03)
- Bombadil (tool): Property-based UI testing library that has caught UI bugs. (Lauren Tan 11:03)
- Cindy (person): Wrote a tweet about not trusting her agents, and six months later one about spending 70% of her tokens on verification. (Lauren Tan 11:52)
- pstack (tool): Tan’s plugin, transcribed as ‘PSAC, Potato SAC’. It contains the State Chart skill. (Lauren Tan 12:40)
- State Chart (tool): pstack skill that visualizes state machines for review. (Lauren Tan 12:40)
- October (date): Month in which about 227 people contributed at least one PR to Grok Bot. (Lauren Tan 13:26)
Quotes
with agents, anyone can now be a coding machine
Lauren Tan 0:48. The premise of the talk.
think about how you can make that a deterministic check instead of adding another line to your rules or your agents.md
Lauren Tan 2:32. Her core principle for correcting agents.
the job of being a software engineer is kind of becoming like gardening
Lauren Tan 4:18. Her garden metaphor for a codebase that agents grow.
anything that requires nuance to use well often leads to slop
Lauren Tan 5:08. Why Dune bans useEffect and similar APIs.
we decided to just ban 99% of comments
Lauren Tan 7:44. Grok Bot’s policy on code comments.
the worst part about comments though is that they’re not enforceable
Lauren Tan 8:33. Why she prefers lint rules to comments.
it’s certainly not a silver bullet
Lauren Tan 11:03. Her caveat on formal verification.
really we’re entering a golden age of software testing and verification
Lauren Tan 12:40. Agents make old verification techniques cheap enough to use.
if your inner coding loop, uh, produces slop, then automating that loop just produces more slop
Lauren Tan 15:02. Her warning against building a factory before the foundations.
Statistics
Computed from the times of the transcript’s words. A turn runs until someone else takes the floor. A backchannel, a reply of at most 3 words and 1.5 s such as “yeah” or “mm-hmm” after which the speaker before it carries on, does not take the floor. The pause before speaking runs from the previous speaker’s last word to this speaker’s first.
| Lauren Tan | |
|---|---|
| Talking time | 15:20 |
| Share of talking time | 100.0% |
| Words | 2,845 |
| Words per minute | 185 |
| Turns | 1 |
| Median turn | 1034.4 s |
| Longest turn | 1034.4 s |
| Backchannels | 0 |
| Median pause before speaking |
Handovers. Each cell counts how often the row’s speaker was followed directly by the column’s.
| Lauren Tan | |
|---|---|
| Lauren Tan | 0 |
The floor changed hands 0 times, 0.0 times a minute on average, and most often at 0:00, 0 times in that minute. The longest silence is 13.0 s, at 0:00.