# All Code Is Slop (Except Mine) — Lauren Tan, SpaceXSI
<!--
ref: @content/youtube/aie/2026-11-14-all-code-is-slop-except-mine-lauren-tan-spacexsi
version: 1
updated_at: 2026-11-22T13:20:00.505Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=O_zcc6Xl12g)**


*Synthesized from Lauren Tan's talk on AI Engineer, 2026-11-14.*

Lauren Tan, who also goes by "Potato," works on Grokbot at SpaceX SI and gave this as a solo conference talk, with no host.

## Core Thesis
Lauren Tan argues that the software engineer's job is now to keep code quality steady, or improve it, while output grows enormously. The way to do that is to earn justified trust in agents by investing in their environment. That trust comes mostly from deterministic guardrails in the codebase (API design, architecture, linters, types) and from strong verification. Written instructions come last. Lauren's view is that if you automate a loop that produces garbage, you just get more garbage, so the codebase and verification have to come before any "software factory."

## Key Insights
- **Scale of the shift:** Last month Lauren sent 3,000 pull requests to production, many of them merged while she slept. Getting to that point took her about half a year. In 2024 she might review 3 merge requests from colleagues on a given day, and that number is now close to 300. She notes that agents can make anyone a "coding machine," a label once kept for people like Bret Taylor, who reportedly rewrote all of Google Maps in a weekend.
- **Inverted pyramid of effort:** Lauren spends the most time on deterministic layers built from your own code: (1) API design, architecture and refactoring, and (2) linters, type systems, compilers and tests. Next comes (3) verification, both runtime and formal, which checks invariants and whether the agent understood your intent. Least of her effort goes to (4) descriptive instructions such as rules, skills and agents.md files, which are only for things that need judgment.
- **The codebase is the biggest input:** Agents copy what they see. Workarounds, anti-patterns, dead code and tech debt look like established patterns, so they spread like weeds. Lauren compares the work to gardening. The constraints are the concrete structure, and agent-written code grows around them almost like a living thing.
- **Prefer checks over rules:** When an agent does something wrong, turn the fix into a deterministic check rather than another line in agents.md. A check is easier to reproduce and enforce.
- **Dune:** Dune is the client framework her team built for Grokbot, described as "something like Next.js for Electron apps." It carries many constraints and lint rules that encode lessons from building desktop apps. One of those lessons is that any API that needs subtlety to use well gets misused by agents.
  - React's `useEffect` is banned in product code and allowed only in certain places inside the Dune API. That class of bug, and the review effort it caused, is now gone.
  - Context comes from directory structure. In Cursor, which is an Electron app, agents often imported main-thread code into the renderer, which caused long tasks and lag. Grokbot and Dune apps have two top-level directories, Electron renderer and Electron main, and a dependency-graph analyzer plus lint rules forbid imports between them.
- **Markdown as an excuse:** Agents use comments, docs, rules and skills to justify cutting corners. They also over-weight small corrections and treat them as rules that can never be broken. In Cursor, agents reached for imperative timers (`setTimeout`, `requestAnimationFrame`, `requestIdleCallback`) to paper over the clash between VS Code's imperative style and React's declarative style. They then wrote comments defending that choice. The timers spread, the rapid creation and teardown triggered heavy garbage collection, and performance dropped.
- **Ban ~99% of comments:** Grokbot bans about 99% of code comments. Comments go stale, people rarely read them, they give agents room to rationalize, and nothing enforces them. Lint rules with clear error messages that push the agent toward the root cause replace them.
- **Review shrinks to nothing:** The guiding principle is that every agent fix becomes a deterministic check or is designed out through API design or architecture. Done often enough, there is eventually nothing left to look at in review, and agents can merge most of their own PRs.
- **Review means reading verification artifacts:** Code review now mostly means looking at videos, screenshots, diagrams and formal-verification output.
- **Runtime verification:** Agents can run the app and use the same debugging tools humans use, such as the Chrome DevTools Protocol. A **"feature map"** acts as a sitemap of every user-facing feature, so phrases like "the thing on the left panel" have a shared meaning. A custom CLI and driver that the skills reuse cut token use and can be tested.
- **Formal verification:** The team uses **TLA+** to model core user flows, such as notifications across devices and platforms. It uses **Lean** to prove algorithms in its own virtualization library, so the list has no flicker or jitter. This has already caught many bugs, though Lauren calls it one layer among several, not a cure-all.
- **Property-based UI testing:** The team uses a library called **Bombadil**, which has already found several interface bugs.
- **Verification takes most of the tokens:** Lauren cites Cindy, who six months earlier tweeted that she couldn't trust her agents because of small errors. Cindy now says 70% of her daily tokens go to verification, and Lauren sees the same in her own work. None of these techniques are new. They used to be too costly to write and maintain, and agents have made them cheap, which Lauren calls "a golden era of software testing and verification."
- **State charts:** Lauren built a tool called "state chart" into her plugin. It draws state machines from the user's point of view, which makes it easier to check whether an agent understood the intent.
- **Results on the Grokbot team:**
  - 11,000 PRs went to production last month.
  - A new stable client release ships about once a day.
  - About 227 people opened at least one PR in October, including occasional contributors without full context.
  - Cancelled or reverted merge requests stay steady at about 0.5%.
  - App performance improved after launch: startup, typing, opening chats and switching chats all got faster. Lauren says it beats many other agent interfaces even though it is still an Electron app.
- **The outer loop:** Every time a new release ships, Grokbot automatically starts a Cursor project that fuzzes the whole build by using the app like a real user. It opens a fix PR for each bug it finds and auto-merges them. This works because the codebase's quality is high enough that PRs succeed by default.

## Actionable Takeaways
1. Before building a "software factory," tune agent output by improving your own codebase. Automating a bad inner loop gives you more garbage and higher token costs.
2. Add lint rules first, so no new anti-patterns get in. Then clean out the existing ones, since agents copy whatever is already there.
3. Whenever you correct an agent, turn the correction into a deterministic check (lint rule, type, dependency-graph rule) or remove the problem through API or architecture design. Don't add another line to agents.md.
4. Forbid APIs that need subtle judgment, such as React `useEffect`, outside a small set of approved framework wrappers.
5. Encode architectural boundaries in the directory structure, for example separate Electron renderer and Electron main directories, and enforce no-import rules between them with a dependency analyzer.
6. Ban most code comments (Grokbot bans about 99%). Write lint error messages that tell the agent how to fix the root cause.
7. Give agents runtime verification: let them run the app through tools like the Chrome DevTools Protocol, maintain a user-facing "feature map" for shared vocabulary, and wrap drivers in a reusable CLI to save tokens.
8. Add formal verification where it pays off: TLA+ for cross-device user flows, Lean for core algorithms. Add property-based UI testing, for example with Bombadil.
9. Make review about artifacts (videos, screenshots, diagrams, proofs) instead of reading diffs line by line. Expect verification to use most of your tokens.
10. Once the foundation holds, build the outer loop. For example, on every release, automatically fuzz the build with an agent that uses the app like a real user, then open and auto-merge a fix PR for each bug it finds.

## Notable Quotes
> "Last month I did something crazy: I sent 3000 pull requests to production." — Lauren Tan

> "Everything comes down to trust. Not blind trust, but investing in the agent environment." — Lauren Tan

> "Your codebase is like a garden." — Lauren Tan

> "Anything that requires subtlety to use effectively often leads to carelessness." — Lauren Tan

> "We are truly entering a golden era of software testing and verification." — Lauren Tan

> "If your internal code writing loop produces garbage, then automating that loop will only produce more garbage." — Lauren Tan

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*