grok-build

grok-build is a skill for Claude Code, Codex from XiaomiMiMo/MiMo-Code. It costs 92 tokens per session (1,142 once invoked), scanned A, original, MIT.

Reference and workflow guidance for Grok Build, a command-line tool for running an AI coding agent from a terminal.

In plain words
What is it for?
Use it when operating Grok Build interactively, from scripts or automated checks, through its agent interface, or while inspecting workspace configuration.
Why use it?
It helps you choose how the tool should run and understand its sessions, permissions, sandboxing, integrations, and output.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when operating Grok Build interactively, from scripts or automated checks, through its agent interface, or while inspecting workspace configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaomimimo/mimo-code/grok-build
About the project

MiMoCode is a terminal-based AI coding assistant that reads and writes code, runs commands, manages Git, and remembers project context across sessions. Developers use it to work with software projects through a command-line interface and connect it to language-model providers; the catalogue includes skills and instructions for it.

XiaomiMiMo/MiMo-Code · 13,799 stars · on GitHub · mimo.xiaomi.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XiaomiMiMo/MiMo-Code --skill grok-build
Clone the repo
git clone --depth 1 https://github.com/XiaomiMiMo/MiMo-Code

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grok-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/grok-build/github.svg)](https://agentmods.dev/skills/xiaomimimo/mimo-code/grok-build)
Your own site
<a href="https://agentmods.dev/skills/xiaomimimo/mimo-code/grok-build"><img src="https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/grok-build/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grok-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaomimimo/mimo-code/grok-build"><img src="https://agentmods.dev/badge/skills/xiaomimimo/mimo-code/grok-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01142
Opus 5.5 $0.00037 $0.00457
Sonnet 5.5 $0.00018 $0.00228
Haiku 4.5 $0.00009 $0.00114

Measured 1mo ago against content hash 9584d163f577, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

grok-build scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/cli/src/skill/builtin/.bundle/grok-build/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Grok Build CLI

Operate Grok Build from a terminal while keeping execution mode, permissions, sandboxing, session state, and output handling explicit.

Start with Local Evidence

  1. Confirm that the CLI is available:

    command -v grok
    grok version
    
  2. Inspect the installed command before giving version-sensitive advice:

    grok --help
    grok <subcommand> --help
    
  3. Inspect the configuration discovered for the target workspace when behavior depends on rules, skills, plugins, hooks, or MCP servers:

    grok --cwd /path/to/repo inspect
    grok --cwd /path/to/repo inspect --json
    
  4. Treat current official documentation and installed help as authoritative when they differ from this bundled reference.

Choose an Execution Mode

  • Run grok with no arguments for the interactive TUI.
  • Run grok "<initial prompt>" to open the TUI with an initial task.
  • Run grok -p "<prompt>" for one non-interactive turn that prints a result and exits.
  • Run grok agent stdio for an ACP client that communicates over stdin/stdout.
  • Run grok dashboard to open the Agent Dashboard.

Prefer headless mode for scripts, CI, bots, and agent orchestration. Prefer ACP only when the caller implements the ACP JSON-RPC lifecycle and consumes session/update chunks.

Authenticate

Use an interactive login on a developer machine:

grok login

Use device-code authentication in headless or remote environments:

grok login --device-auth

Use a locally cached login or provide XAI_API_KEY only to the process that needs it. Never print, persist, or commit credentials. Use grok logout to clear cached credentials.

Run Headlessly

Use an explicit working directory and output format:

grok --no-auto-update \
  --cwd /path/to/repo \
  --sandbox workspace \
  -p "Inspect the repository and explain the failing test." \
  --output-format json

Choose output according to the consumer:

  • Use plain for humans.
  • Use json for one final machine-readable object.
  • Use streaming-json for newline-delimited incremental events.
  • Add --json-schema '<schema>' when the installed CLI supports constrained structured output.

Read the full file on GitHub · 137 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -10 tokens per session 9584d163f577
  2. 3mo ago First seen · 137 lines · 102 tokens per session scan A 4a1d683938df

Subscribe to this mod's changes

grok-build is a skill published in the GitHub repository XiaomiMiMo/MiMo-Code (13,799 stars, last pushed yesterday), licensed MIT. It adds 92 tokens to every session and 1,142 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

grok-build compared with skills from other repositories

grok-build next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
grok-buildXiaomiMiMo/MiMo-CodeSkill14kyesterdayMITA92Claude Code, Codex
feishuHmbown/CodeWhaleSkill41k2d agoMITA33Claude Code, Codex
interviewHmbown/CodeWhaleSkill41k2d agoMITA40Claude Code, Codex
atmos-validationcloudposse/atmosSkill1.4ktodayApache-2.0A31Claude Code
atmos-configcloudposse/atmosSkill1.4ktodayApache-2.0A31Claude Code
gamedev-shadersericrisco/rsc-harnessSkill6915d agoMITA102Claude Code, Codex
uniflyhyperb1iss/uniflySkill28215d agoApache-2.0A63Claude Code