Another major bomb has dropped in the AI programming agent circle. xAI has officially announced that Grok Build is now open source. The complete source code of this coding agent, along with its terminal user interface (TUI), created by SpaceXAI, is now fully available on GitHub for inspection. This is not a symbolic code release but rather an exposure of the entire system's skeleton, muscles, and blood vessels under the sunlight.

xAI gave a practical reason for open-sourcing: making the code public is the most direct way to build a robust and reliable execution framework. Previously, you could only trust a black box to write code for you. Now, you can trace down the source code and see with your own eyes how the context is assembled, how the model's responses are parsed, and how tool calls are distributed. Every step is no longer a mystery.

image.png

More importantly, open sourcing makes this framework exploratory and extensible. If you're working on skills, plugins, hooks, MCP servers, or subagents, this source code is the most authoritative manual—it precisely tells you not just vague descriptions in the documentation, but the real implementation of how each component is loaded and called.

What really excites developers is another point: Grok Build now supports fully local-first operation. You can compile it from scratch, point it to your own local inference service, and drive all the system's behaviors through a config.toml configuration file. In other words, even if you don't want to rely on any cloud, you can run this agent clearly on your own machine.

This publicly released source code contains a lot of hardcore content. First, the core logic of the agent loop, which shows how context is assembled, how model responses are parsed, and how tool calls are distributed — this is the heartbeat of the entire system. Second, the implementation of the toolset, which shows how the agent reads, edits, searches code, and executes commands. The terminal interface part covers rendering, input processing, plan review, and inline diff viewers, allowing you to clearly see the origin and evolution of every change right within the command line. Finally, the extension system, which includes how to integrate skills, plugins, hooks, MCP servers, and subagents — it's like handing you the construction blueprints to renovate this building.

Project address: https://github.com/xai-org/grok-build