Antigravity Delegate
Delegate coding work to Antigravity's agy over ACP and manage the delegated sessions.
delegate: Send a task brief and workspace soagycan implement (agent), write a plan (plan), or answer codebase questions (ask); optionally specify model, effort, attached context files, or resume a session.Session handling: Clarifying questions come back in the result; resume with
resumeSessionIdand answers inspec. Results include the final answer, changed files, session ID, model/thinking level, and plan when applicable.Permissions: Auto-approves every permission request from
agy.cancel: Best-effort cancel an in-flight delegation by session ID, optionally force-killing the agent process.steer: Send a new instruction to redirect an in-flight delegation.doctor: Diagnose setup, client capabilities, andagylauncher resolution;deep: trueverifies ACP handshake, models, modes, and account tier.No shelling out: Use the provided tools instead of invoking
agydirectly.
Integrates with Google Antigravity's CLI agent (agy) to delegate code edits and implementation tasks; supports plan-first workflows, codebase Q&A, resuming sessions for clarification, and returning structured results such as changed files, session ID, and model/thinking level.
Antigravity Delegate
Delegate edits to Google Antigravity's CLI agent (agy) — your agent writes the brief and reviews the diff.
Antigravity Delegate is the MCP bridge that lets Claude Code, ChatGPT/Codex, Copilot — or any MCP client — hand implementation to agy over the Agent Client Protocol, then get a structured result back for review.


Features
🤝 Native plugins — install into Claude Code, ChatGPT/Codex, or GitHub Copilot CLI and say "delegate this to Antigravity". The shared skill teaches your agent how to delegate well.
💬 No stalled runs — if agy needs to clarify, it ends the turn and returns the question as a normal result. Your agent answers by resuming the same session.
⏳ Runs in the background in Claude Code — in an interactive Claude Code CLI session,
delegateruns as an MCP task: the call returns once agy has the prompt, and the result arrives as a task notification when agy finishes.📦 Named results — final answer, changed files, session id, model and thinking level, returned as one compact JSON payload.
📋 Plan first —
planmode: agy writes a plan, returned in full asplan; you review it, then the same session implements it.🔍 Ask anything —
askmode: Q&A over your codebase.🩺 Self-diagnosing — a
doctortool that reports what is missing, the models agy offers, and the account tier.
plan and ask are instructions to the agent, and workspace is its working directory — Security and the delegate reference spell out what the bridge enforces and what it reports back.
Related MCP server: agy-mcp
Install
You need Node.js 20+ and the Antigravity CLI (agy), signed in — run agy once and sign in.
Claude Code
/plugin marketplace add andreilungeanu/agy-delegate-mcp
/plugin install agy-delegate@agy-delegate-mcpThen ask:
Delegate to Antigravity: migrate src/api from callbacks to async/await and update the tests, then walk me through what changed.
Cursor
Or add it under Customize → MCPs in the sidebar, or in ~/.cursor/mcp.json (every project) or .cursor/mcp.json (this project):
{
"mcpServers": {
"agy-delegate": {
"command": "npx",
"args": ["-y", "agy-delegate-mcp"]
}
}
}ChatGPT desktop / Codex
codex plugin marketplace add andreilungeanu/agy-delegate-mcp
codex plugin add agy-delegate@agy-delegate-mcpGitHub Copilot CLI
copilot plugin marketplace add andreilungeanu/agy-delegate-mcp
copilot plugin install agy-delegate@agy-delegate-mcpThe server alone, without the skill: copilot mcp add agy-delegate -- npx -y agy-delegate-mcp.
More clients
{
"servers": {
"agy-delegate": {
"type": "stdio",
"command": "npx",
"args": ["-y", "agy-delegate-mcp"]
}
}
}Under Settings → Tools → AI Assistant → Model Context Protocol (MCP), click Add and paste this JSON:
{
"mcpServers": {
"agy-delegate": {
"command": "npx",
"args": ["-y", "agy-delegate-mcp"]
}
}
}This config is for Devin Local, the default agent (Local 3.6+). On Windows the file is %APPDATA%\devin\mcp_config.json. Legacy Cascade and older Windsurf builds read ~/.codeium/windsurf/mcp_config.json.
{
"mcpServers": {
"agy-delegate": {
"command": "npx",
"args": ["-y", "agy-delegate-mcp"]
}
}
}Heads-up: Devin Desktop's Cascade agent caps you at 100 tools across all servers.
{
"servers": {
"agy-delegate": {
"type": "stdio",
"command": "npx",
"args": ["-y", "agy-delegate-mcp"]
}
}
}Visual Studio 2022 needs 17.14+. Note the top-level key is servers, not mcpServers. A .mcp.json in the solution directory scopes it to that solution.
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": {
"agy-delegate": {
"type": "local",
"command": ["npx", "-y", "agy-delegate-mcp"],
"enabled": true
}
}
}This is the v1 shape, which OpenCode v2 still reads (v2's native form is mcp.servers).
Same shape as OpenCode: type: "local" and command as one array.
{
"mcp": {
"agy-delegate": {
"type": "local",
"command": ["npx", "-y", "agy-delegate-mcp"],
"enabled": true
}
}
}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, agy-delegate-mcp.
Kiro and any other MCP client
Add the following server to the client's MCP config — for Kiro, ~/.kiro/settings/mcp.json (user) or .kiro/settings/mcp.json (workspace):
{
"mcpServers": {
"agy-delegate": {
"command": "npx",
"args": ["-y", "agy-delegate-mcp"]
}
}
}License
MIT © Andrei Lungeanu
Technical reference · Security · Privacy · Terms · Changelog
Available Tools
4 toolscancelADestructiveIdempotent
Best-effort cancel of an in-flight delegation by sessionId. session/cancel is advisory — the agent may finish the turn anyway, and the delegate result then carries cancelRequested. Status: cancelled, killed (agent process observed to exit), not-running (turn already ended, still resumable), not-found (id not in this process's session history).
Inputs: sessionId (required), force.
delegateADestructive
Delegate a coding task to Antigravity's agy over ACP. Never shell out to agy — use this tool only. Auto-approves every permission the agent requests, in any mode and anywhere on disk. agy's clarifying questions arrive in questions — resume with resumeSessionId and the answers in spec. Leave model and effort unset unless the user explicitly asks. See the delegate skill.
Inputs: spec (required), workspace (required), mode, model, +3 more.
doctorARead-onlyIdempotent
Setup diagnostics: plugin version, MCP client capabilities, agy launcher resolution. Run when delegation fails or agent.found is false.
Inputs: deep.
steerADestructive
Redirect an in-flight delegation by sessionId: message goes to agy as a new instruction for the running turn, and the delegate call returns the redirected turn's result. Status: steered (sent), not-ready (prompt not sent yet; retry), not-running (turn already ended — resume instead), not-found (id not in this process's session history).
Inputs: message (required), sessionId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool maps to a distinct action in the delegation lifecycle: delegate starts/resumes, cancel stops, steer redirects, doctor diagnoses. The only mild overlap is cancel vs steer (both target an in-flight sessionId) and steer vs delegate-with-resumeSessionId, but the descriptions clearly separate in-flight redirect from post-turn resume.
All four names are single lowercase words with no style mixing. Three are action verbs (delegate, cancel, steer) while doctor is a noun-style diagnostic, a minor deviation in verb convention but still predictable and readable.
Four tools is a tight, well-scoped set for a delegation plugin — each covers a real lifecycle need. It sits at the low end of the comfortable range, with no filler tools.
The surface covers start, resume, cancel, redirect, and diagnostics, so core workflows are closed. The main gap is the absence of a status/list-sessions tool, so an agent cannot inspect an existing session without acting on it.
Maintenance
Related MCP Connectors
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Coordinate coding agents through MCP using existing AI plans, saved work, and independent checks.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Project board for ChatGPT, Claude and coding agents, with scoped MCP access to projects and tasks.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP bridge that lets Claude Code delegate heavy tasks to the Antigravity CLI (agy) — purpose-built tools, model routing with fallback, session continuity, and output truncation to save Claude's context and tokens.6143 npm68MIT
- AlicenseAqualityDmaintenanceLets Claude Code use Google's Antigravity CLI (agy) to review plans or execute them in isolated git worktrees, with safety controls like secret scanning.4MIT
- AlicenseAqualityCmaintenanceLets MCP clients such as Claude Code, Claude Desktop, Cursor, or Codex hand tasks to the Antigravity CLI (agy) so the work runs on the user's Antigravity plan instead of the client's. Exposes tools for delegated coding tasks and reviews, web search with sources, image/PDF analysis, shell command generation or execution, brainstorming, and model/quota checks.7MIT
- AlicenseBqualityCmaintenanceEnables MCP clients such as Claude Code and Cursor to delegate long multi-step coding tasks to Google Antigravity CLI, generate read-only plans and code reviews, digest large codebases, and manage background sessions in isolated git worktrees.15162 npm2MIT