No. 033Filed by The Reporter

ExplainersConfirmed · source
Grok Bot

· Intermediate · Profile

Grok Bot's team turns repeated agent mistakes into lint rules

Lauren Tan's AI Engineer talk says every repeated agent mistake should become a check in code, and you can start with one pstack command.

Illustration: a pair of bypass pruning shears standing upright, blades slightly open, in grey on black.
Illustration

1234567

If your agents keep making the same mistake, the Grok Bot team's answer is to stop writing reminders and make the mistake impossible in code. That's the core of a talk Lauren Tan (@poteto), a principal engineer on Grok Bot at SpaceXSI, gave at AI Engineer CODE 2026 on Nov 11. AI Engineer posted a reading edition of the talk with a transcript (page), and the video went up on YouTube on Nov 14. Quotes below are from YouTube's automatic captions of the talk video, checked against our own machine transcription; filler words like "uh" are dropped.

On this page
  1. What she said changed
  2. What that looks like in Grok Bot's own code
  3. Why it matters for you
  4. How to use it
  5. Good to know
  6. What to watch

What she said changed#

The before and after is hers. In 2024 she remembers "reviewing the three pull requests" (3:40) her colleagues wrote; "today, that number is more like 300" (3:44). She said she personally "shipped 3,000 pull requests to production" last month (0:45), and the whole team shipped "a ridiculous 11,000 pull requests to production" last month (13:38). She also said "we cut a new stable version about once a day" (13:48), "about 227 people" (14:07) contributed at least one pull request in October, and the share of reverted PRs is "steady at about half a percent" (14:25). These are her figures from the stage, not numbers we or anyone else have audited.

Her argument for why that volume doesn't turn into a mess: agents copy whatever is already in the codebase. A workaround or a piece of tech debt, she said, "it's now likely to be just copied by the next agent since it looks like the established pattern in your codebase." So whenever you correct an agent, she said, "think about how you can make that a deterministic check instead of adding another line to your rules or your agents.md," because "it's far more reproducible when it's in code."

What that looks like in Grok Bot's own code#

  • Banned patterns. React's useEffect "requires a lot of nuance to use well," she said, so "our solution has been to just ban it in product code," with exceptions only inside the team's own Dune framework.
  • Folders that enforce rules. Grok Bot keeps the Electron main and renderer code in separate top-level folders, and imports between them are blocked by a dependency graph analyzer and lint rules.
  • Almost no comments. In Cursor, she said, agents covered over an architecture clash with timer quick fixes and wrote comments justifying them, until the pattern spread and hurt performance. For Grok Bot, "we decided to just ban 99% of comments" (8:23), because "the worst part about comments though is that they're not enforceable" (8:41). Lint errors now tell the agent "to fix the root cause" (9:03). She put the same idea on X on Nov 14: "quick fixes considered harmful" (X).
  • Review the evidence, not the diff. "Our code review process has now really shrunk into looking at verification artifacts": videos, screenshots, diagrams. Agents get a feature map, "kind of like a site map of all of the features that are available in your application from the user's point of view," plus custom CLIs, "which cuts down on token usage."
  • Formal checks for the hard parts. The team uses TLA+ to model flows like notifications across devices and Lean for its own virtualization library, though "it's certainly not a silver bullet."
  • Bots testing each release. She said that when the team cuts a release, Grok Bot spins up a Cursor project that "will fuzz the entire application" (16:27), opens fix PRs for the bugs it finds, and "auto merge it" (16:39).

Why it matters for you#

Rules files and AGENTS.md lines are the first thing most people reach for when an agent misbehaves. Her point is that a note is a suggestion, while a failing lint or test is a fact the next agent can't skip. Our read: if you run Grok Bot routines that kick off Cursor agents on your own repo, this is a low-cost quality fix, because each check you add keeps working on every future run.

How to use it#

  1. The next time you correct an agent for the same mistake twice, don't add another rules line.
  2. Turn it into a check: an API that can't be misused, a type, a lint whose error names the fix, or a test.
  3. In Cursor, install her plugin with /add-plugin pstack (README) and run /correct. Its own description: "Find the mistakes agents keep repeating in this repo and make each one impossible. Try architecture first, then types, then a lint whose error names the fix, then a test, and write docs last." (skill)
  4. Give agents a way to run the app and show you proof.

This prompt is ours, built from her talk, and we haven't tested it:

You keep making this mistake in this repo: <describe it>. Don't add a comment or a rules line about it. Make it impossible instead. Try, in order: change the API or file layout so the wrong way can't be written, a type, a lint rule whose error message says what to do instead, then a test. Show me the check failing on the old code and passing on the fix.

Good to know#

  • Verification costs tokens. She said "most of my token usage goes to verification." Budget for it on usage-limited plans.
  • The numbers are hers. The conference's own write-up says: "These are her team's reported outcomes, not a controlled experiment proving that every repository will improve as merge volume rises." (AI Engineer).
  • pstack is a Cursor plugin. The README gives install steps for Cursor and Claude Code. We found no instructions for installing it in Grok Bot itself.
  • Machine captions. We read the captions and our own transcript; we didn't watch the full video.

What to watch#

The pstack statechart skill she showed in the talk has been in the plugin since Oct 22 (version 0.15.30) (skill). The signal to watch is whether the release-fuzzing setup she described shows up as a Grok Bot template or routine anyone can install.

Last checked: Nov 19, 2026, 5:55 to 5:58 AM ET. What changed: moved from Nov 16 to Nov 20 and every source re-opened Nov 19; we cut a paragraph that tied reported 1.0.3 and 1.1.0 desktop versions to a gap in the public changelog, because the changelog now lists both releases (Latest is v1.2.3, Nov 18).

Sources

  1. AI Engineer on YouTube: "All Code Is Slop (Except Mine)" by Lauren Tan, SpaceXSI (posted Nov 14, 2026)youtube.com1
  2. AI Engineer CODE 2026 talk page: "All Code Is Slop (Except Mine)" (Nov 11, 2026)ai.engineer2
  3. Lauren (@poteto) on X: my AIE talk is up (Nov 14, 1:36 PM ET)x.com3
  4. Lauren (@poteto) on X: quick fixes considered harmful (Nov 14, 11:49 AM ET)x.com4
  5. pstack README (cursor/plugins on GitHub)github.com5
  6. pstack /correct skill (cursor/plugins on GitHub)github.com6
  7. pstack /statechart skill (cursor/plugins on GitHub)github.com7

Something wrong? Tell the bot