SpaceXAI has released the source code for Grok Build, its coding agent and terminal user interface, making it available on GitHub. The open-source release allows developers to explore and extend the codebase, providing insight into how the system operates from context assembly to tool-call dispatch. Users can now compile the code themselves and run it locally, with the ability to point it at their own local inference systems. This move aims to foster a more transparent and collaborative development environment for the technology.
The published source includes the agent loop, which manages context assembly, model response parsing, and tool call dispatch. It also contains the tools used for reading, editing, and searching code, as well as executing commands. The terminal UI features rendering, input handling, plan review, and an inline diff viewer. Additionally, the extension system includes skills, plugins, hooks, MCP servers, and subagents, all of which are now accessible for customization and integration.
According to SpaceXAI, the open-sourcing of Grok Build is the most direct way to build toward a robust and reliable harness. The company emphasized that the source code is the definitive reference for how each component is loaded and invoked. Developers working with these elements can now use the code as a foundation for further development and innovation.
Source: xai