Grok Delegate
v4.0.0Bring the Grok Build CLI into your agent's council for second opinions, plans and edits.
Grok Delegate is the MCP bridge to the Grok Build CLI. From Claude Code, ChatGPT/Codex, Copilot or any MCP client, your agent can ask Composer or Grok for a second opinion, put one question to several models at once, or hand Grok a plan to build, and get a structured result back from each call. Grok reads the repo and answers in ask mode, and your agent sets that answer beside its own. You see where the two disagree before you choose a direction. Ask several at once, and your agent sends each the same brief in parallel, compares the answers, and checks the claims that matter:
Summary extracted from the README.
Grok Delegate
Turn your coding agent into a council. Bring Composer and Grok into the conversation, then hand them the work.
Grok Delegate is the MCP bridge to the Grok Build CLI. From Claude Code, ChatGPT/Codex, Copilot or any MCP client, your agent can ask Composer or Grok for a second opinion, put one question to several models at once, or hand Grok a plan to build, and get a structured result back from each call.

π§ Get a second opinion
Ask Grok what it thinks about moving the session store to SQLite.
Grok reads the repo and answers in ask mode, and your agent sets that answer beside its own. You see where the two disagree before you choose a direction.
Ask several at once, and your agent sends each the same brief in parallel, compares the answers, and checks the claims that matter:
Ask Composer and Grok whether we should split this service, and tell me where they disagree.
With Codex Delegate or Antigravity Delegate installed too, the same prompt reaches GPT or Gemini models.
π οΈ Hand off the work
Delegate to Grok: migrate src/api from callbacks to async/await and update the tests. Plan it first.
Your agent writes the brief, Grok edits the files, and your agent reads the diff and runs the tests before it reports back.
- π Plan, approve, build β
planmode returns Grok's plan; once you approve, the same session implements it. - π¬ No stalled runs β when Grok needs a decision, it ends the turn and returns the question as a normal result. Your agent answers by resuming the same session.
- π§΅ Resume, even on another model β follow up in the same session with
resumeSessionId;effectiveModeltells you when a different model served the turn.

Features
- π¦ Clean, named results β final answer and session id, plus the files the edit tools reported, and todo progress when work is left unfinished, returned as one compact JSON payload. Nothing to scrape.
- β³ Runs in the background, with MCP Tasks β
delegateserves the MCP Tasks extension (io.modelcontextprotocol/tasks), so a host that speaks it gets a task back once Grok has the prompt and the result when Grok finishes. In the main session of the interactive Claude Code CLI, you keep working and the result arrives as a task notification; calls from subagents wait for the result. - πΌοΈ Attach what prose can't point at β
contextFilessends screenshots, mockups and other files along with the brief. - π Runs on Grok's usage pool β Grok models draw from your Grok plan's weekly usage (plans and usage), separate from your host's chat quota.
- π€ Native plugins β install into Claude Code, ChatGPT/Codex, Google Antigravity, or GitHub Copilot CLI and just say "ask Grok" or "delegate this to Grok". The shared skill teaches your agent to write the brief and review the result.
- π©Ί Self-diagnosing β a
doctortool that tells you exactly what's missing if setup isn't right. - π Portable β plain stdio MCP, so it runs anywhere: VS Code, JetBrains, Windsurf, Visual Studio, OpenCode, Antigravity, and more.
workspace is the agent's working directory, not a limit, and the CLI narrows what ask and plan may do β Security and the delegate reference spell out what the bridge enforces and what it reports back.

Your agent and its peers
Each plugin works on its own, and they are built to work together. Install the ones your subscriptions cover, and the agent you already use can bring Gemini 4 Neon, Carbon or Hydrogen, GPT-6.2 Sol or Astra, and Grok 4.7 or Composer 2.5 into the same conversation as peers. One question goes to all of them in parallel, and your agent sets their answers beside its own.
Ask Gemini Neon, Codex Sol and Grok 4.7 how they would restructure the auth module, then tell me where they agree.

- Codex Delegate β the OpenAI Codex CLI: GPT-6.2 Sol, GPT-6.2 Astra and the other Codex models
- Grok Delegate (this one) β the Grok Build CLI: Grok 4.7, Composer 2.5
- Antigravity Delegate β Google Antigravity's CLI: Gemini 4 Neon, Carbon and Hydrogen
Model names are examples; each CLI offers what your account includes.
Install
You need Node.js 20+ and Grok Build, signed in (grok login).
Claude Code
/plugin marketplace add andreilungeanu/grok-delegate-mcp
/plugin install grok-delegate@grok-delegate-mcp
Then just ask:
Delegate to Grok: migrate src/api from callbacks to async/await and update the tests, then walk me through what changed.
That's the whole loop β Claude writes the brief, Grok grinds through the files, Claude walks you through the diff.
ChatGPT desktop / Codex
codex plugin marketplace add andreilungeanu/grok-delegate-mcp
codex plugin add grok-delegate@grok-delegate-mcp
Google Antigravity
agy plugin install https://github.com/andreilungeanu/grok-delegate-mcp
Restart the Antigravity app to load it. If you added grok-delegate to mcp_config.json by hand, remove that entry.
Without the CLI, use the manual config under Client-specific config locations.
GitHub Copilot CLI
copilot plugin marketplace add andreilungeanu/grok-delegate-mcp
copilot plugin install grok-delegate@grok-delegate-mcp
Any other MCP client
{
"mcpServers": {
"grok-delegate": {
"command": "npx",
"args": ["-y", "grok-delegate-mcp"]
}
}
}
Client-specific config locations
Or add it manually:
{
"servers": {
"grok-delegate": {
"type": "stdio",
"command": "npx",
"args": ["-y", "grok-delegate-mcp"]
}
}
}
Or run Chat: Install Plugin From Source with this repository's URL.
Under Settings β Tools β AI Assistant β Model Context Protocol (MCP), add a server with command npx and arguments -y grok-delegate-mcp.
Same mcpServers block as the generic snippet above. Cascade caps you at 100 tools across all servers.
Same servers + type: "stdio" shape as VS Code. Requires Visual Studio 2026, or 2022 17.14+. Note the top-level key is servers, not mcpServers. Visual Studio also discovers .mcp.json next to the solution, plus .vscode/mcp.json.
OpenCode does not use mcpServers. Local servers go under mcp, with type: "local" and command as one array:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"grok-delegate": {
"type": "local",
"command": ["npx", "-y", "grok-delegate-mcp"],
"enabled": true
}
}
}
{
"mcpServers": {
"grok-delegate": {
"command": "npx",
"args": ["-y", "grok-delegate-mcp"],
"timeoutSeconds": 21660,
"tools": { "delegate": { "background": "always" } }
}
}
}
Same mcpServers block as the generic snippet above. Workspace file wins when both exist.
Same shape as OpenCode: type: "local" and command as one array. In the VS Code extension: Settings β MCP β Add Server β Local (stdio). On Windows, if npx is not found, use command cmd with arguments /c, npx, -y, grok-delegate-mcp.
License
MIT Β© Andrei Lungeanu
Technical reference Β· Security Β· Privacy Β· Terms Β· Changelog