How this helps you
You fix each recurring mistake once, in code, so you stop repeating yourself and have less to check in every review.
I just corrected you on [pattern, e.g. using setTimeout to patch a rendering bug]. Don't add this to your rules, a skill or a code comment. In [repo], turn it into a deterministic check instead: a [lint rule / dependency rule / type / test] that fails when [pattern] appears in [folders]. Make the error message tell the next agent the root-cause fix: [what to do instead]. Show me how many existing cases it finds. Make it block new cases first, then propose a separate change that cleans up the old ones. Include a failing and a passing example and the check's output.
Fill in: [pattern]: the exact mistake you corrected. [folders]: where the rule applies (she allows some patterns only inside framework code). [what to do instead]: the fix you'd have explained. The prompt is ours, built from the method in her talk.
What they did
In her AI Engineer talk 'All Code Is Slop (Except Mine)', Lauren Tan (poteto), an engineer on the Grok Bot team, explains how the team keeps agent-written code trustworthy at high volume. She says she shipped 3,000 pull requests last month, the team shipped 11,000, and the share that gets reverted is steady at about 0.5%. Her rule: whenever you correct an agent, ask how to make that correction a deterministic check in code instead of another line in your rules or AGENTS.md, because code is reproducible and enforceable and prose isn't. The team banned React's useEffect in product code, made imports between the electron main and renderer folders fail a dependency check, and banned about 99% of code comments after agents used comments to justify quick fixes like stray timers. Their lint errors tell the agent to fix the root cause rather than patch around it.
Who it's for: Developers who use Grok Bot to run coding agents (Cursor cloud agents, CLIs) on a codebase they own.
Before you start
- A code repo your Bot or coding agent can work in (for example through the GitHub connector or Cursor cloud agents)
- A linter, type checker or dependency checker the agent can run, ideally in CI
- A correction you keep giving, like a pattern the agent keeps misusing
How to try it
- Next time you correct the agent, stop before you add a line to its rules, a skill or a code comment.
- Ask whether the mistake can be made impossible or loud: a lint rule, a banned API, a type, a test, or a folder layout where the wrong import fails a dependency check.
- Have the agent write the check with an error message that says what to do instead, so the next agent fixes the root cause.
- Turn it on for new code first so no new cases slip in, then clean up the existing ones in a separate change. This is the order she recommends.
- Delete the prose rule or comment the check replaces.
- Add verification on top: ask for screenshots, videos or diagrams of the running app with each change, and review those instead of every line. Only automate the loop once this works.
What to expect
Her timers example: agents kept reaching for setTimeout and requestAnimationFrame as quick fixes for a clash between VS Code's imperative style and React's declarative style, and wrote comments explaining why each fix was justified. The timers spread, garbage collection rose and the app lagged. In Grok Bot the team now bans most comments and uses lint rules whose errors point at the root cause. A successful check is one the agent hits, reads, and then fixes properly without you saying anything.
Common mistakes
- Adding another line to rules or AGENTS.md. Prose isn't enforceable, and she has seen agents over-rotate on one small correction as if it were an unbreakable law.
- Letting agents explain workarounds in comments. She says comments give agents an escape hatch to justify not doing the right thing.
- Error messages that only say what's wrong. Hers say what the real fix is.
- Automating before the inner loop is solid. If your coding loop produces slop, automating it produces more slop and costs more tokens.
Related tips
- How to trust your Bot's work more: Put most of your effort at the top: code structure, then lint/tests/CI, then prose rules, then human review.
- Install pstack and run /poteto-mode: plan first, one verified step per commit: Ask your Bot to install Cursor's pstack plugin, set the model and reasoning budget, then use /poteto-mode so each task picks a playbook and works through a checklist with proof.
- Make your Bot the manager, not the coder: one rule and locked doors: Let your Bot plan and check the work while coding agents write the code. Start with one rule, and remember every Bot shares one computer and its logins.
- A support Bot that asks you once, then updates its playbook: Your Average Tech Bro's support Bot answers what it knows, asks him about anything new, then updates its own instructions so the same question never needs him again.
- Give your Bot a way to check its own work before it reports: The Grok Bot team's smallest useful loop: tell the Bot how to test what it made the way a real user would, so it finds and fixes problems before you see them. Works for emails and reports, not just code.
- Keep each Bot's rulebook in a repo where changes need a second approver: SpaceXSI's finance team moved its Bots' rulebooks out of editable docs into a code repo: one person proposes a change, a different person approves it, and every rule has a dated changelog line.
Worth knowingFor runtime verification the team gives agents a 'feature map', a site map of the app's features from the user's point of view, plus reusable command line tools inside skills to save tokens. She says most of her tokens now go on verification. Once the foundations were there, Grok Bot became the outer loop: on each release it starts a Cursor project that tests the build like a real user, opens a fix pull request for each bug and merges it.
Learn more: Grok Bot Use Cases: Real Workflows From Real Users · All Grok Bot workflows tips