Grok Build
Grok Build is a terminal-based agentic coding tool from SpaceXAI (formerly xAI) that reads the repository it’s started in, edits files, runs shell commands, and searches the web from plain-language prompts. It sits alongside other terminal coding agents, such as Codex CLI, Gemini CLI, and OpenCode.
The grok command opens a full-screen, mouse-aware terminal interface. The same agent also runs headlessly with grok -p for scripts and CI jobs, and editors can embed it through the Agent Client Protocol (ACP). It’s powered by Grok models, currently grok-4.7, and ~/.grok/config.toml can point it at other models through a custom base URL and API key.
Grok Build extends through skills, plugins, hooks, subagents, and MCP servers. It also picks up existing Claude Code configuration with no extra setup, including CLAUDE.md files, skills, hooks, and plugin marketplaces.
For Python work, a developer starts grok in a project folder, points at files with @path references, and asks for a new function, a fix for a failing test, or a refactor. The agent can then run the test suite itself to check its changes.
The harness is written in Rust and open source under the Apache 2.0 license, with prebuilt binaries for macOS, Linux, and Windows. Signing in happens through the browser on first launch, or through an XAI_API_KEY environment variable on headless machines.
Official website: docs.x.ai/build/overview
Related Resources
Tutorial
AI Coding Agents Guide: A Map of the Four Workflow Types
AI coding agents come in four types: IDE, terminal, PR, and cloud. Learn how each workflow fits into modern Python development.
For additional information on related topics, take a look at the following resources:
- Python MCP Server: Connect LLMs to Your Data (Tutorial)
- Gemini CLI vs Claude Code: Which to Choose for Python Tasks (Tutorial)
- How to Use Claude Code to Write and Debug Python (Tutorial)
- How to Write a CLAUDE.md File for Claude Code (Tutorial)
- How to Automate Your Workflow With Claude Code Hooks (Tutorial)
- Exploring AI Coding Agent Workflows (Course)
- AI Coding Agents Guide: A Map of the Four Workflow Types (Quiz)
- Connecting LLMs to Your Data With Python MCP Servers (Course)
- Python MCP Server: Connect LLMs to Your Data (Quiz)
- Gemini CLI vs Claude Code: Which to Choose for Python Tasks (Quiz)
- Getting Started With Claude Code (Course)
- How to Use Claude Code to Write and Debug Python (Quiz)
- How to Write a CLAUDE.md File for Claude Code (Quiz)
- How to Automate Your Workflow With Claude Code Hooks (Quiz)
Have a question about this? Mentor AI can show you examples, compare related terms, and point you to tutorials.
By Martin Breuss • Updated Nov. 23, 2026