Grok Build is open source
TL;DR Highlight
SpaceXAI open-sourced its Rust terminal coding agent CLI/TUI under Apache-2.0.
Who Should Read
Developers who want to dig into the harness internals of coding agents like Claude Code or Codex
Core Mechanics
- A terminal AI coding agent
- Grok Build is SpaceXAI's terminal-based coding agent.
- It runs as a full-screen TUI that understands your codebase, edits files, and runs shell commands.
- It also searches the web and manages long-running tasks.
- Three ways to run it
- Use it interactively in the TUI.
- Run it headlessly for scripts and CI.
- Embed it in editors via ACP (Agent Client Protocol).
- Rust workspace layout
- Crates split the TUI, agent runtime, tool implementations, and workspace (filesystem, VCS, checkpoints).
- The binary is named xai-grok-pager, and official installs ship it as grok.
- License and contribution policy
- First-party code is Apache-2.0.
- External contributions are not accepted.
- It syncs periodically from SpaceXAI's monorepo, and SOURCE_REV records the commit SHA.
- Includes ported third-party code
- Some tool implementations are ports of openai/codex and sst/opencode.
- Sources and licenses are listed in THIRD-PARTY-NOTICES.
- Documented extensibility
- The user guide covers MCP servers, skills, plugins, hooks, headless mode, sandboxing, and theming.
- First launch opens a browser to authenticate.
Community Reactions
- Surprising features in the code
- One commenter noted a terminal Mermaid renderer using Unicode box-drawing.
- Another said the amount of code seems huge for what it offers and doesn't look intentionally designed.
- Forks appeared right away
- A commenter listed a privacy fork with telemetry stripped (gork-build).
- Others include a multi-provider CLI, a Tauri desktop GUI, and a theming fork.
- Concerns about user data upload
- Commenters mentioned an upset days earlier over forfeiting the whole working directory.
- One said claims of data deletion aren't trustworthy without third-party certification.
- Advice to run it in a sandbox
- A commenter suggested Docker Sandboxes and `sbx policy log` to see allowed and blocked requests.
- They noted it doesn't replace reading the code.
- Mixed reviews of quality
- One commenter said the model beats Opus 4.8 and the harness is smooth.
- Another recommended pi.dev over Grok Build with an xAI subscription.
How to Apply
- Build from source and skim the agent structure
- Run `cargo run -p xai-grok-pager-bin` today after installing dotslash.
- Read the tool implementations in `crates/codegen/xai-grok-tools`.
- Compare with your own agent's tool design
- If you build agents, compare xai-grok-workspace's checkpoint and execution split with your design.
- List the terminal, file-edit, and search tool implementations as references.
- Run it inside a sandbox
- Don't run the install script directly; try it in an isolated environment first.
- Set an explicit network allowlist and check the request logs.
Try It
# Paste into a terminal (macOS/Linux) - build and run Grok Build from source
cargo install dotslash
git clone https://github.com/xai-org/grok-build
cd grok-build
cargo run -p xai-grok-pager-bin
# Next: open the tools folder to see the agent's tool list
# ls crates/codegen/xai-grok-toolsTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques
Related Resources
- https://github.com/xai-org/grok-build
- https://news.ycombinator.com/item?id=48928913
- https://github.com/thedavidweng/gork-build
- https://github.com/DigiGoon/digi-grok-build
- https://github.com/victor-software-house/open-grok
- https://github.com/LukaMucko/grok-build
- https://github.com/RapidAI/grok-build-desktop
- https://github.com/mazdak/grok-build
- https://github.com/thomas9120/grok-build-archival
- https://github.com/saqoah/grok-build
- https://pi.dev
- https://github.com/docker/sbx-kits-contrib/pull/156