AI Agent - July 28, 2026

Grok Build: Open-Source Coding Agent Guide

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:

SurfaceWhat to inspect
Agent loopContext assembly, model-response parsing, and tool-call dispatch
ToolsCode reading, editing, search, and command execution
Terminal UIRendering, input handling, plan review, and inline diffs
Extension systemSkills, 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:

  1. How workspace context is selected.
  2. Which instructions take precedence.
  3. How model output becomes a tool call.
  4. How tool results return to the model.
  5. What stops a repeated or failed action.
  6. 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:

  1. Ask for diagnosis without edits.
  2. Compare the cited files and call path with the source.
  3. Allow a scoped edit.
  4. Review the inline diff.
  5. Run the relevant tests.
  6. Inspect commands and tool calls.
  7. 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