Skip to content
EventPast event

xAI engineer says AI coding is managed with code constraints

2 reports2 reporting sourcesLatest report

Start here

AI overview

At the AI Engineer conference, SpaceXAI chief engineer Lauren Tan shared the Grok Bot team's experience managing agent-generated code: rather than persuading AI with prompts, they harden error correction into code, including banning useEffect in business code, using directory structure and lint rules to prohibit the render thread and main thread from referencing each other, cutting 99% of comments and replacing them with lint errors that state the root cause and the correct fix. For verification, the team has AI call the Chrome DevTools protocol to self-check and submit evidence such as screen recordings and screenshots, uses TLA+ for model checking of complex flows such as notifications, and uses Lean to formally prove its in-house virtual list library. She said the PRs she merged in a single month rose from 68 in March to 3,127 in October; according to a chart she showed, the team merged about 11,000 PRs last month, and the rollback rate fell from 0.98% in June to 0.47% in October. She also proposed an inverted trust pyramid model, advocating prioritizing investment in deterministic checks such as code quality and Lint and type systems, and emphasizing that after an agent makes a mistake, the lesson should be turned into a deterministic check rather than adding natural-language rules to AGENTS.md; the team also uses Bombadil to do property-based testing of the interface, and after a new version is released the system automatically starts a Cursor project, calls a cloud agent to do fuzzing and automatically creates fix PRs. She said most of the product code the team merges no longer requires in-depth human review.

Generated by AI from reports · Updated 8 days ago

Attention and developments

Attention, hourly

Now 38, 0% in 24 hours·Peak 40 (Nov 22 21:00)

Nov 23Nov 24Nov 25Nov 26Nov 27Nov 28Now 38

Progress timeline

Nov 21
  1. WeChat · QbitAI
    Lauren Tan says she personally submitted 3,000 PRs last month and shared AI programming methods.

    SpaceXSI chief engineer and Grok Bot developer Lauren Tan shared AI programming methods; last month she personally submitted 3,000 PRs, and the team totaled 11,000 with a reversion rate of only 0.5%. She proposed a trust inverted-pyramid model, advocating prioritizing investment in code quality and deterministic checks such as Lint and the type system; Grok Bot disables about 99% of code comments, and in the product code of the client framework Dune it disables useEffect, which agents easily misuse. She emphasized that after an agent makes a mistake, the lesson should be turned into a deterministic check rather than adding natural-language rules to AGENTS.md. The team also moved a large amount of code review to the verification stage, introduced TLA+ and Lean for formal verification, and used Bombadil for property-based testing of the interface. After a new version is released, the system automatically starts a Cursor project, calls a cloud agent to do fuzz testing and automatically creates fix PRs; she says most of the product code the team merges no longer requires in-depth human review.

  2. WeChat · AI Era (Xinzhiyuan)
    SpaceXAI engineer Lauren Tan: Don't rely on prompts to persuade AI, lock error correction into code

    At the AI Engineer conference, SpaceXAI principal engineer Lauren Tan shared the Grok Bot team's experience managing agent-generated code, advocating for hardcoding error correction into code rather than relying on prompts to persuade AI. Her monthly merged PRs rose from 68 in March to 3127 in October; according to a chart she showed, the team merged about 11,000 PRs last month, and the rollback rate dropped from 0.98% in June to 0.47% in October. Specific practices include banning useEffect in business code, using directory structure and lint rules to strictly prohibit the render thread and main thread from referencing each other, cutting 99% of comments, and instead intercepting with lint errors that state the root cause and the correct fix. For verification, the team had AI call the Chrome DevTools protocol to self-check and submit evidence such as screen recordings and screenshots, used TLA+ for model checking of complex flows such as notifications, and used Lean to formally prove its self-developed virtual list library. She cautioned that if the coding inner loop is still producing garbage code, rushing to wrap it in outer-loop automation will only turn it into a garbage amplifier.

Related discussion

Total 2 items

Attention trend

New sources per day

2 in 9 days·most 2 (Nov 21)·today 0

  • Nov 21: 2 new sources (2 outlets, 0 accounts)
  • Nov 22: 0 new sources (0 outlets, 0 accounts)
  • Nov 23: 0 new sources (0 outlets, 0 accounts)
  • Nov 24: 0 new sources (0 outlets, 0 accounts)
  • Nov 25: 0 new sources (0 outlets, 0 accounts)
  • Nov 26: 0 new sources (0 outlets, 0 accounts)
  • Nov 27: 0 new sources (0 outlets, 0 accounts)
  • Nov 28: 0 new sources (0 outlets, 0 accounts)
  • Nov 29: 0 new sources (0 outlets, 0 accounts)

Hourly attention

Current attention 38·Peak in the comparable period 40 (Nov 22 21:00)·Change over the comparable past 24 hours 0%

010203040Nov 2221:00Nov 2418:00Nov 2616:00Nov 2813:00