XAI Open-Sources Grok Build Coding Agent
The company said releasing the code is the most direct way to build a more robust and reliable development framework.
XAI has open-sourced Grok Build, its AI-powered coding agent and terminal user interface (TUI), making the source code publicly available on GitHub to encourage transparency, community contributions, and broader adoption.
We've open-sourced Grok Build and have reset usage limits for all users.
— SpaceXAI (@SpaceXAI) July 15, 2026
Open sourcing Grok Build allows anyone to support making a reliable and robust harness. Check out our code, including the Git repo for the Grok Build CLI. https://t.co/3SSvPu2Nrz
The company said releasing the code is the most direct way to build a more robust and reliable development framework. Developers can now inspect how the coding agent works internally, including how it assembles context, processes model responses, and dispatches tool calls.
By making the project open source, XAI also aims to simplify customisation and extension. Developers working with skills, plugins, hooks, Model Context Protocol (MCP) servers, or subagents can use the source code as the primary reference to understand how these components are loaded and invoked.
"Finally, Grok Build can now run fully local-first: compile it yourself, point it at your own local inference, and drive everything from your config.toml," it company said in a blog post.
The published codebase includes the complete agent loop, detailing how context is assembled, model outputs are interpreted, and tool calls are executed. It also provides the tools used by the agent to read, edit, and search code, as well as execute terminal commands.
Additionally, the release includes the terminal user interface, featuring rendering, input handling, plan review, and an inline diff viewer.
The extension framework—covering skills, plugins, hooks, MCP servers, and subagents—is also part of the open-source package, enabling developers to build and integrate custom capabilities.