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
- Is inference latency becoming the biggest bottleneck for production AI agents? — Euphoric_Sea632 · 2026-09-11
- Anthropic researcher: 99% of engineers now run swarms of 300+ self-improving agents — AlishaOutridge · 2026-09-11
- Gergely Orosz: Shipping 10x PRs With AI Agents, Sites Fill With Small Regressions — ducha_aiki · 2026-09-11
- Same Echo Maze prompt, three frontier models: all passed visually but shipped the same hidden bug — eyishazyer · 2026-09-11
- Astra storyboards plus Minimax H3 per-shot generation boost video success rates — Hailuo_AI · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11