Newsroom Wire

CN China11-21 19:34⏱ 6 min read

Grok's Top Female Influencer Goes Viral Teaching How to Submit 3,000 PRs a Month

SpaceXSI首席工程师土豆姐(Lauren Tan),带着这个狂得没边的演讲标题登上了AI Engineer CODE大会,于是演讲内容全网疯传。 土豆此前在Cursor工作,目前从事Grok Bot开发,被称为「全网最会用Grok Bot的人」。 啥概念呢?上个月,整个Grok Bot团队一共提交了交付了1.1万个PR(撤回率只有0.5%)。 「如果你…

Lauren Tan, chief engineer at SpaceXSI - known online as 'Potato' - took the stage at the AI Engineer CODE conference with this wildly audacious talk title, and the talk's content went viral across the internet.

Potato previously worked at Cursor and now works on Grok Bot development; she has been called 'the best Grok Bot user on the internet.'

What does that mean? Last month, the entire Grok Bot team submitted and delivered 11,000 PRs (with a revert rate of only 0.5%).

'If your AI coding output is a pile of garbage, automating this workflow will only manufacture more garbage.'

The most important job of software engineers today is finding a way to keep, or even raise, code quality while productivity rises dramatically.

In Potato's view, rather than building a 'software factory,' it is simpler to understand this as a 'trust problem.'

That is, the problem of 'converting a low-trust Agent working environment into a high-trust environment.'

At the top of the inverted pyramid, with the largest share, is the code itself, including API design, software architecture, and refactoring; one layer down are deterministic checking tools such as lint rules, type systems, compilers, and automated tests.

Further down come runtime verification, formal verification, and natural-language guidance such as Rules, Skills, and AGENTS.md.

If the codebase is full of hotfix patches, dead code, anti-patterns, and assorted technical debt, the Agent will treat them as established convention, imitate them, and carry them forward.

So software engineers are becoming more and more like gardeners, constantly clearing the weeds to give new code a healthy environment to grow in.

At the time, the Cursor client was built on the Electron architecture, where the imperative programming style of VS Code conflicted with React's declarative style.

Agents loved to use timers such as setTimeout, requestAnimationFrame, and requestIdleCallback to patch these architectural problems.

Huge numbers of timers were created and destroyed over and over, triggering frequent garbage collection and making the app stutter.

Not only that: the Agent would also write piles of comments next to the code explaining why it simply had to write it that way.

Agents working later would see that code and those comments, find them quite convincing, and copy the pattern in turn.

So in Grok Bot, Potato now simply bans about 99% of code comments.

In their place, lint rules check the code for problems directly, and explicit error messages guide the Agent to fix the root cause.

The client framework Dune, developed by the Grok Bot team, contains plenty of designs like this.

Potato describes Dune as 'Next.js for Electron apps.' It turns the experience accumulated during the team's development into enforceable architectural constraints and lint rules.

For example, the team found that features requiring careful judgment to use correctly were easily misused by Agents.

React's useEffect is the classic example. This Hook handles side effects, but using it correctly requires careful thought about dependencies, cleanup logic, and more - to the point that 'using useEffect well requires a PhD first.'

So the Grok Bot team's solution was simple: disable useEffect in product code outright, allowing it only within specific APIs inside the Dune framework. Problem solved once and for all.

Potato stresses (key point) that when an Agent writes bad code, many people's first reaction is to open AGENTS.md and add a line like 'do not xxx anymore.' But natural-language rules depend on the Agent understanding and following them on its own, so this does little good.

For example, add lint rules targeting the wrong code references and use the type system to constrain invalid calls; if an API keeps getting misused, redesign it so the architecture eliminates the possibility. Afterward, clean out the existing instances of the same problem in the codebase.

Potato explained that the Grok Bot team has moved a large share of code review work into the verification stage.

What they look at in review now is mainly screenshots, screen recordings, state diagrams, and formal verification results.

Concretely, they start with runtime verification.

The Grok Bot team gives the Agent the ability to run the application, plus debugging tools human developers commonly use, such as the Chrome DevTools Protocol (CDP).

The team also designed a feature map for the Agent, like a website's sitemap but from the user's point of view.

That way, the Agent no longer has to guess what you mean by 'that thing at the bottom of the sidebar on the left.'

The team has also wrapped some operational capabilities into custom CLIs and drivers placed inside verification Skills. That way the Agent can reuse the same toolset every time it runs a verification task, saving tokens while the tools themselves can also be tested independently.

Next is formal verification.

Potato said the Grok Bot team has recently begun bringing in two mathematical verification tools, TLA+ and Lean.

TLA+ is mainly used for model checking, analyzing whether the system satisfies the expected constraints in different states; Lean, the other tool, can verify the correctness of specific algorithms through formal proof.

Beyond that, they also brought in Bombadil to run property-based testing on the user interface.

That means no longer checking only pre-specified operation outcomes, but checking a much wider range of possible inputs and states around the properties the program should satisfy.

Potato said developers around her spend 70% of their tokens on verification, and she is at roughly the same level herself right now.

In her view, static analysis, automated testing, and formal verification are all nothing new - the cost of understanding, writing, and maintaining those tools was simply too high in the past.

So after this series of silky-smooth tricks, how efficient is the Grok Bot team now?

In October this year, the team as a whole submitted 11,000 PRs, more than 350 per day on average. And as development speed kept climbing, the team's PR revert rate actually fell, now holding steady at around 0.5%.

The client's release cadence rose with it: a new stable version now ships almost every day.

The team has now put in place a fairly insane automated development pipeline. Whenever Grok Bot ships a new version, the system automatically spins up a new Cursor project and calls cloud Agents to fuzz-test the entire application.

These Agents run and operate the software like real users to hunt for bugs. Once they find a problem, they automatically open fix PRs and can even complete the merge themselves.

According to her, most of the product code the team merges now no longer needs deep human code review.

Reference: [1] https://x.com/poteto/status/212

Snapshot for aggregated reading; content from the public web, © the original publishers.

AI NewsCove

Opening article…