Back to feed
News Story
Simon Willison
9 sources

xAI Open-Sources Grok Build After Privacy Backlash

xAI has open-sourced its Grok Build CLI tool under Apache 2.0 after a privacy backlash where the tool was found to upload entire directories, including SSH keys and password databases, to xAI's cloud. The company has deleted all retained user data and disabled default data retention, aiming to restore trust. The codebase, consisting of 844,530 lines of Rust, is now available on GitHub.

SynthePulse Insight · AI deep reading

Grok Build Open Source: xAI's Coding Agent and Terminal UI Fully Released

Version 1 · 1 source

xAI announced the full open-sourcing of Grok Build's source code, including the agent loop, tool system, terminal UI, and extension framework, with local-first support, aiming to drive transparency and extensibility in the coding agent ecosystem.

  • xAI announced on July 15, 2026, the open-sourcing of Grok Build, including the complete source code for its coding agent and terminal UI.
  • The open-source code covers the agent loop, tool system (read, edit, search code and run commands), terminal UI (rendering, input handling, plan review, inline diff viewer), and extension system (skills, plugins, hooks, MCP servers, sub-agents).
  • Grok Build can now run fully local-first: users can compile it themselves, point it to a local inference engine, and configure it via config.toml.
  • xAI states that open-sourcing is the most direct way to build a robust and reliable harness, and the source code serves as the authoritative reference for extensions like skills and plugins.
  • The code is hosted on GitHub, and users can install and run it with a single command.
Open section navigationOpen Source Motivation: Transparency and Extensibility

Open Source Motivation: Transparency and Extensibility

In its official blog, xAI explained that the core purpose of open-sourcing Grok Build is to directly build a robust and reliable harness (the underlying framework for coding agents). By making the source code public, developers can precisely understand how it works, from context assembly to tool call dispatch.

Additionally, open-sourcing makes it easier to explore and extend the harness. For developers using skills, plugins, hooks, MCP servers, or sub-agents, the source code is the authoritative reference for how each component is loaded and invoked.

Codebase Composition: From Agent Loop to Extension System

The released source code includes four main parts: the agent loop (context assembly, model response parsing, tool call dispatch), the tool system (how the agent reads, edits, searches code, and runs commands), the terminal UI (rendering, input handling, plan review, inline diff viewer), and the extension system (skills, plugins, hooks, MCP servers, sub-agents).

This architecture covers the full chain from interaction to execution for a coding agent, providing developers with a complete reference implementation.

Local-First Operation: Full Autonomy and Control

Grok Build now supports fully local-first operation: users can compile the source code themselves, point it to their own local inference engine, and drive all configuration through a config.toml file. This means Grok Build can be used in a local environment without relying on xAI's cloud services.

This feature is especially important for developers who prioritize data privacy or need to work offline, and it also provides a foundation for customized deployments.

Access and Usage: GitHub and One-Click Installation

The Grok Build source code is hosted on GitHub, where users can browse it directly. Additionally, xAI provides a one-click installation command that users can run quickly in their terminal.

xAI encourages developers to explore the source code and build their own toolchains based on it.

Credibility boundary

The information in this article comes from xAI's official blog, a first-hand official announcement, and is highly credible. However, the actual quality of the open-source code, community reception, and subsequent maintenance remain to be seen.

Insight takeaway

The open-sourcing of Grok Build marks an important step by xAI toward transparency in the coding agent field, providing developers with a fully localized, extensible coding agent framework that is expected to drive community collaboration and innovation.