xai-org/grok-build, now open source

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Anyone who ran the grok CLI may have had entire directories, including SSH keys, uploaded to xAI, and they can now audit the Apache 2.0 codebase themselves.

Read this as

xAI's Grok Build is a command-line coding assistant, software that helps write code from a terminal. Last month it upset users by secretly copying entire folders, including one person's SSH keys and password database, to xAI's cloud storage. The company disabled that behavior, deleted the stored data, and released the full program's code under the permissive Apache 2.0 license so anyone can inspect it. The code, about 845,000 lines of the Rust language, is now on GitHub.

xAI faced a trust crisis when its grok CLI was found uploading whole directories, including credentials, to company cloud buckets. It responded by disabling uploads, promising deletion of retained data, and open-sourcing the full codebase under Apache 2.0, presumably to rebuild credibility against rivals like OpenAI's Codex. Decision-makers evaluating AI coding tools should note the scale: nearly 845,000 lines of Rust, comparable to Codex's 950,000. Whether transparency restores trust depends on independent audits of the code.

Grok Build is 844,530 lines of Rust by SLOCCount (about 3% vendored), released in a single Apache 2.0 commit as xai-org/grok-build. Notable components: main and subagent system prompts as templates, a Unicode box-drawing terminal renderer for Mermaid diagrams (ported to WebAssembly by Willison), and tool implementations ported from Codex (apply_patch, grep_files) and OpenCode (bash, edit, glob) under Apache/MIT notices. The old GCS upload code remains but is disabled via a hard-coded session_state_upload_unavailable error.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

xAI Grok Build OpenAI Codex OpenCode GitHub Claude Code

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.4a0

Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.