
Lauren Tan: 'All Code Is Slop (Except Mine)' — the secret is the Potato Pyramid, the Dune framework and 70% of tokens for verification
Vũ Khôi
Tác giả tại Wotech Electronics Blog

Lauren Tan: "All Code Is Slop (Except Mine)" — the secret is the Potato Pyramid, the Dune framework and 70% of tokens for verification
AI generates code ~10× faster, but review is exhausting because of "slop" — code that looks right but hides workarounds, anti-patterns and tech debt. Yet last month Lauren Tan alone shipped 3,000+ PRs to production. The secret is not better prompts, but redesigning the whole environment around the AI — per Antoine's detailed write-up of Lauren Tan's talk at the AI Engineer Code Summit.
Quick answer: Lauren Tan (poteto — Principal Engineer working on Grok Bot at SpaceX/xAI) says the Grok Bot team merged 10,926 PRs in October with 227 contributors, shipped a new stable release almost daily, with a revert rate under 0.5% — and the app runs faster than at launch. The secret has three parts: (1) the codebase is the agent's memory — the "Potato Pyramid" puts the codebase and static analysis on top, plus the internal "Dune" framework with strict code discipline; (2) the golden age of verification — about 70% of daily tokens go to verification, not code generation; (3) do not automate a bad loop — only when the inner loop (write + lint + verify) is clean and trustworthy do they connect the outer loop into a real software factory.
This article summarises Lauren Tan's talk per Antoine's post in the VGU Tech Alumni group. It is a different article about the same talk as share 40 on Wotech (a reel), but from a different source post and in far more depth — especially the Potato Pyramid, Dune, comment deletion and 70% verification tokens.
(1) The codebase is the agent's memory — the Potato Pyramid
The core problem: AI generates code ~10× faster, but review is exhausting because of "slop" — code that looks right but hides workarounds, anti-patterns and tech debt. The Grok Bot team's secret is not better prompts or fatter AGENTS.md files — it is redesigning the whole environment around the AI.
The "Potato Pyramid" — an inverted pyramid of investment priority — stacks the layers from bottom to top as follows:
| Layer (bottom to top) | Role |
|---|---|
| Human review + prose rule files (AGENTS.md, rules, skills) | The bottom layer — important but not decisive |
| The codebase and static analysis | The two top, decisive layers — deterministic |
The whole repo is the AI's biggest input context. Code flows continuously — from a few PRs a day in 2024 to hundreds a day now. The codebase is like a garden: one workaround slipping through review gets copied everywhere by later agents like weeds.
The Grok Bot team built an internal framework "Dune" with strict code discipline:
- Ban high-subtlety APIs outright. For example useEffect in React — banned in product code, allowed only inside the framework's standard APIs.
- Folder structure as hard boundaries. Electron-renderer separated from electron-main; a dependency analyzer plus lint rules block cross-imports that jam the UI thread.
- Delete 99% of comments. At Cursor, the hybrid VS Code + React architecture led AI to abuse setTimeout/requestAnimationFrame as temp fixes, then write long comments justifying them; later agents copied the "reasonable" pattern into ~200 timers across the app, causing heavy lag. At Grok Bot, comments went from 65,000+ lines to ~1,200 — removing AI's justification escape route — and every fix lesson became a new lint rule (160+ lint rules; each AI mistake becomes a new lint rule whose error message shows the root-cause fix).
(2) The golden age of verification — 70% of tokens just for verification
Each engineer operates like an army of hundreds of agents. Reading every diff is meaningless; code review shrinks to checking "verification artifacts" — real run videos, screenshots, state diagrams, formal proofs. About 70% of Lauren's daily tokens go to verification, not code generation.
The runtime layer:
- A "Feature Map" — all features from the user's perspective, so AI and humans share one vocabulary.
- A custom CLI — agents self-build, self-launch the app, operate via Chrome DevTools Protocol, and screenshot/record the exact flow just fixed for reviewers.
Formal verification:
- TLA+ model checking for complex flows (multi-device notification sync).
- Lean to verify a hand-written virtualization library (no frame jank/flicker).
- Bombadil for property-based testing / auto-fuzzing the UI to catch corner-case bugs.
(3) Don't automate a bad loop
"If your basic code-writing loop still produces slop, scaling it to thousands of cloud agents just helps you burn money faster to create more garbage." Only when the inner loop (write + lint + verification) is clean and trustworthy do they connect the outer loop into a real software factory: each new Grok Bot release auto-triggers Cursor Cloud Agents to fuzz the whole build like a real user, auto-open PRs fixing each bug found, and auto-merge to main without deep human intervention.
October numbers, per the post: 10,926 PRs merged; a new stable release every ~25–28 hours; revert rate 0.49%. Despite Electron, performance improved vs launch: cold start −34%, typing latency −46%, conversation switching 86% faster, idle RAM −64%.
The final slide: Lauren crossed out "Mine" — "All Code Is Slop (Except Yours)" — the engineer's role ahead is designing guardrails, rules and verification systems tight enough to turn AI's raw power into decent products.
Apply it now: three things you can take from the talk
| Action | How, per the talk |
|---|---|
| Turn the codebase into the agent's memory | Treat the repo as the AI's biggest input context; folder structure as hard boundaries; ban high-subtlety APIs; turn every AI mistake into a new lint rule whose error message shows the root-cause fix |
| Spend most tokens on verification | Review means checking verification artifacts — real run videos, screenshots, state diagrams, formal proofs — not reading every diff; build a Feature Map and a CLI so agents self-build, self-run and record the flow they just fixed |
| Only scale when the inner loop is clean | Do not automate a bad loop — check that the write + lint + verify loop is trustworthy first, then connect the outer loop (auto-fuzz, auto-PR, auto-merge) |
Frequently asked questions
1. What does "slop" mean in this talk? Code that looks right but hides workarounds, anti-patterns and tech debt inside. AI generates code ~10× faster, but review is exhausting because reviewers must spot this slop.
2. What is the Potato Pyramid? An inverted pyramid of investment priority: the bottom layer is human review and prose rule files (AGENTS.md, rules, skills); the two top, decisive layers are deterministic — the codebase and static analysis. The whole repo is the AI's biggest input context.
3. Why did the Grok Bot team delete 99% of comments? Because AI abused comments to justify temp fixes (setTimeout/requestAnimationFrame), and later agents copied the "reasonable-looking" pattern everywhere — at Cursor this produced ~200 timers causing heavy lag. Deleting comments removed AI's justification escape route; every fix lesson became a new lint rule.
4. What does 70% of tokens for verification mean? About 70% of Lauren's daily tokens go to verification, not code generation. Code review shrinks to checking verification artifacts (real run videos, screenshots, state diagrams, formal proofs) instead of reading every diff.
5. What were the Grok Bot team's October numbers? Per the post: 10,926 PRs merged in October with 227 contributors; a new stable release every ~25–28 hours; revert rate 0.49%; cold start −34%, typing latency −46%, conversation switching 86% faster, idle RAM −64% vs launch.
Source: Antoine (VGU Tech Alumni group) on Lauren Tan's talk at the AI Engineer Code Summit.
Bài viết liên quan

23 tháng 11, 2026 · 7 phut doc
AgentScope: Alibaba DAMO Academy's Open-Source Python Framework for Building AI Agents — 100% Apache 2.0
China has just released a Python framework for building AI agents. 100% open source, Apache 2.0 license. It is called AgentScope — and the difference, according to the post introducing it, is that it…

23 tháng 11, 2026 · 11 phut doc
Almost 2027 — Do You Have a Real System for Running Agents Yet? A Linux Mini PC, Backups Twice a Day, and the Cost Question
Last week, sick at home, Vương Nguyên Bình started upgrading the machine running his agents. His post is a blunt reminder: if you really intend to use agents for work, prepare the foundation for your…

23 tháng 11, 2026 · 9 phut doc
OpenAI Discloses Internal Numbers: GPT-6.2 Astra Solved a Millennium Prize Problem, an Unnamed Internal Model Is Already at 0.732
On November 22, Jakub Pachocki, OpenAI's Chief Scientist, published "Perplexity and Intelligence" and did something no lab has done: he disclosed the internal pretraining log-perplexity of each model…