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.
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
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
Same Simulation, Different Evidence: Where Retrieved Tool Output Costs LLM Agents Accuracy
Saving long tool output to files cut GPT-5.1 accuracy by 11.3 points; naming the authoritative file restored it.
Fake News, Real Crashes: Information Injection Attacks on LLM Financial Trading Agents
Fake headlines hijacked LLM trading agents 62% of the time versus 14% for prompt injection.
Harness Engineering 101: The LLM is the brain, the harness is the body
An agent is a loop managing a JSON array; 16 chapters build one from scratch
Harness2 by Google Research – Recursive Agent Harnessing
Recursively refining the harness with fixed model weights raised benchmark scores by up to 11.8 points.
Ousted Savannah police officer gave ICE agent husband access to Flock system
A police officer shared her Flock login with her ICE-agent husband; an audit found 983 searches and she was fired
Tmux and Claude Code: Sessions, Send-Keys, and the Ceiling
Running Claude Code agents in tmux works well, but limits appear around four agents.
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