Quick answer: Grok Build is xAI’s open-source coding-agent harness and terminal UI. xAI published the source on July 15, 2026, including the agent loop, code tools, terminal interface, and extension system. The project can also run local-first when compiled and connected to local inference through its configuration.
Open source changes how to evaluate the agent: read the implementation and configuration paths instead of treating a product summary as the final behavior contract.
What xAI published
The official announcement divides the codebase into four useful review surfaces:
| Surface | What to inspect |
|---|---|
| Agent loop | Context assembly, model-response parsing, and tool-call dispatch |
| Tools | Code reading, editing, search, and command execution |
| Terminal UI | Rendering, input handling, plan review, and inline diffs |
| Extension system | Skills, plugins, hooks, MCP servers, and subagents |
These are architecture categories, not security guarantees. Review the exact commit and configuration used by your build.
Local-first does not mean model-free
xAI says Grok Build can be compiled and pointed at local inference through config.toml.
That establishes a local-first harness path. It does not prove:
- Compatibility with every local model or server.
- Equivalent tool use across model backends.
- Offline behavior for all extensions.
- Safe default command permissions.
- Identical performance to the hosted product.
Confirm the model endpoint, tool-calling format, context behavior, and extension network access for the exact configuration.
Review the agent loop first
Before running the agent against a real repository, trace:
- How workspace context is selected.
- Which instructions take precedence.
- How model output becomes a tool call.
- How tool results return to the model.
- What stops a repeated or failed action.
- Which events are logged for review.
This path determines whether a seemingly small prompt can become a file edit, command, network request, or subagent task.
Treat tools as the security boundary
xAI says the published tools can read, edit, and search code and run commands.
Start with:
- A disposable test repository.
- Read-only actions where possible.
- Explicit workspace paths.
- Narrow command allowlists.
- No production credentials.
- A diff and test requirement before accepting changes.
Inspect how shell arguments, symlinks, environment variables, ignored files, and paths outside the workspace are handled.
Review extensions independently
Skills, plugins, hooks, MCP servers, and subagents expand the harness in different ways. A safe core does not make every extension safe.
For each extension, record:
- Source and version.
- Instructions or lifecycle hooks it adds.
- Tools and filesystem access.
- Network destinations.
- Credentials or connector scopes.
- Whether results can trigger another action.
Enable one extension at a time so regressions remain attributable.
A bounded evaluation
Use a small repository and one bug with a known correct fix:
- Ask for diagnosis without edits.
- Compare the cited files and call path with the source.
- Allow a scoped edit.
- Review the inline diff.
- Run the relevant tests.
- Inspect commands and tool calls.
- Repeat with local inference if that is the deployment target.
The goal is not to prove the agent can produce a large patch. It is to verify that context, tools, review, and stopping behavior form a trustworthy loop.
For hosted recurring work, use the Grok Automations guide. For current Grok model context, see Grok 4.
Frequently asked questions
Is Grok Build open source?
xAI announced the source release of its coding agent and terminal UI on July 15, 2026. Use the official repository and its license as the source for the exact code and reuse terms.
What parts of Grok Build are published?
xAI lists the agent loop, code tools, terminal UI, and extension system for skills, plugins, hooks, MCP servers, and subagents.
Can Grok Build run with a local model?
xAI says it can run local-first when compiled and pointed at local inference through config.toml. Verify backend compatibility and tool behavior for the exact local model.
Does local-first mean fully offline?
Not necessarily. Models, extensions, MCP servers, package installation, telemetry, or other dependencies may use the network. Audit the configured system.
Is Grok Build available on Flowith?
This guide describes xAI’s open-source coding-agent harness. It does not establish a Flowith product integration or model mapping.
Primary source
- Grok Build is Now Open Source — xAI’s July 15, 2026 source-release and local-first architecture summary.