Wire and Logic
Hourly · Synthesized · Opinionated
toolsWednesday, July 15, 2026·3 min read

Introducing Grok Build: A Terminal-Based AI Coding Agent for Full-Screen TUI and Headless Automation

Grok Build is SpaceXAI's open-source terminal AI coding agent that offers an interactive TUI, headless scripting, and ACP integration.

Gunpoint - AI Code
Photo: Pentadact

Grok Build arrived on GitHub as SpaceXAI's new terminal‑based AI coding agent. It ships as a full‑screen, mouse‑interactive TUI that can edit code, run shell commands, search the web, and manage long‑running tasks. The project also supports headless operation for CI pipelines and can be embedded in editors via the Agent Client Protocol (ACP). Built in Rust and released under Apache‑2.0, it targets macOS, Linux, and best‑effort Windows binaries. For developers who want AI assistance directly inside their terminal, Grok Build promises a tightly integrated workflow.

What happened

The Grok Build repository (github.com/xai-org/grok-build) contains the Rust source for the grok CLI/TUI and its agent runtime. The binary, named xai-grok-pager and distributed as "grok", runs as a fullscreen TUI that understands the current codebase, can edit files, execute shell commands, perform web searches, and orchestrate long‑running tasks. Users can also invoke the agent in headless mode for scripting or CI, or connect through the Agent Client Protocol (ACP) to embed it in editors and other tools.

Pre‑built binaries are provided for macOS and Linux, with Windows builds marked as best‑effort and not actively tested. The project pins the Rust toolchain via rust-toolchain.toml, and includes a protoc launcher for protobuf code generation. On first launch the tool opens a browser for authentication, while environments without a browser can use an API key set in ~/.grok/config.toml.

The agent ships with the grok‑4.5 model—the same model available via the xAI API—and supports custom models through the user‑level config file. Documentation covers keyboard shortcuts, slash commands, plugins, hooks, theming, and sandboxing, and the repository layout is read‑only for the workspace root.

Why it matters

By moving AI‑assisted coding into the terminal, Grok Build reduces context switches for developers who spend most of their day in a shell or Vim/Neovim. The headless mode enables automated refactoring, code generation, and testing within CI pipelines, potentially accelerating development cycles. Integration via ACP also opens the door for IDE plugins and custom tooling, extending the reach of the underlying grok‑4.5 model beyond the TUI.

+ Pros
  • Full‑screen TUI offers rich, mouse‑interactive experience without leaving the terminal.
  • Headless mode fits naturally into CI/CD and automation scripts.
  • Extensible via ACP, custom models, plugins, and user‑defined hooks.
Cons
  • Windows binaries are best‑effort and lack thorough testing.
  • Initial authentication requires a browser or manual API‑key setup.
  • External contributions are not accepted, limiting community‑driven improvements.

How to think about it

Start by installing the pre‑built binary for your platform and run grok to complete the browser‑based authentication. For scriptable use, generate an API key and place it in ~/.grok/config.toml, then invoke commands like grok inspect to let the agent map your project. Choose the appropriate model with /model <name> inside the TUI or via the --model flag in headless mode. When integrating into an editor, use the Agent Client Protocol to forward requests, keeping the agent process separate for stability. Treat the TUI as a powerful REPL for code edits: experiment, accept or reject changes, and let Grok handle repetitive tasks such as dependency updates or boilerplate generation.

FAQ

Can Grok Build be used in CI pipelines without a TUI?+

Yes. Invoke the binary with the --headless flag and provide an API key in ~/.grok/config.toml to run commands programmatically.

Is there support for custom AI models beyond grok‑4.5?+

Custom models can be added by specifying their endpoint and credentials in the user‑level config file; the agent will load them at runtime.

What platforms are officially supported?+

Official pre‑built binaries are provided for macOS and Linux. Windows binaries are built on a best‑effort basis and are not officially tested.

Sources
  1. 01Grok Build
  2. 02GitHub - xai-org/grok-build: SpaceXAI's coding agent harness and TUI. Fullscreen, mouse interactive, extensible.
  3. 03Grok
  4. 04Grok Build | SpaceXAI Docs
Keep reading
Get the weekly dispatch

The week’s highest-signal tech and AI stories, synthesized into a five-minute read. One email a week, no spam, unsubscribe anytime.