xAI Open-Sources Grok Build: A Review
Simon Willison · rss · 2026-07-16
xAI has open-sourced the Grok Build repository. The author took the opportunity to review the implementation details of this coding agent and the previously controversial data upload issue.
Key takeaways include:
- It was previously discovered that running grok-build could upload an entire directory to xAI's Google Cloud bucket. Some users even reported that their SSH keys, password manager databases, documents, and photos were siphoned off.
- Following massive community backlash, xAI first disabled the upload feature and later open-sourced the entire Grok Build codebase under the Apache 2.0 license.
- The codebase is massive; SLOCCount estimates roughly 844,530 lines of Rust, with only about 3% appearing to be vendored code.
- Implementation details highlighted include: separated system and sub-agent prompts, a Mermaid terminal renderer, and a suite of tools mimicking Codex / OpenCode.
- Remnants of the GCS upload logic are still visible in the code, though the feature itself has been disabled.
Overall, this serves as a comprehensive case study combining a coding agent product, a privacy controversy, and an open-source review.
More from coding & agent
- An MCP server signs every AI agent tool call into a verifiable Merkle chain — Funky_Chicken_22 · 2026-07-22
- Annotated transcript of a Claude Code team interview is now available — trq212 · 2026-07-22
- Claude Code skill uses 10 Markdown rules to make outputs ADHD-friendly — alex_verem · 2026-07-22
- BUZZ launches as an open-source group chat layer for teams and agents — Scobleizer · 2026-07-22
- A Firecracker-based platform says it can host 6,000 AI agents on one 256 GB server — maritime_sh · 2026-07-22
- A better path to agent autonomy is running waves, finding friction, and iterating — JnBrymn · 2026-07-22