antigravity-delegate
Delegates bounded tasks to Gemini Flash through Google Antigravity CLI, defaulting to the newest listed Gemini Flash >= 3.8 at Medium effort, with optional High effort and exact model requests.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@antigravity-delegatereview src/parser.mjs for the empty-input bug; read-only; report cause with line refs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Antigravity CLI Delegate
中文 · Skill · Host setup
A small agent skill and event-driven runner for delegating bounded work to Gemini Flash through Google Antigravity CLI. The caller sends a short brief, receives live tool progress, and accepts a compact final result. No status polling or supervisor model.
Defaults to the newest listed Gemini Flash >= 3.8, Medium. High is opt-in. Exact model requests win; explicit Claude Opus Thinking is also supported.
One pending MCP call, standard progress notifications, one terminal response.
Prompts go through stdin; raw events and stderr stay in private local files.
Default final summary: 2,400 characters plus an explicit truncation marker and evidence paths. Tool arguments, outputs, and reasoning are excluded from progress.
CLI failure, invalid results, cancellation, and deadlines fail closed. No automatic retries.
This is a community project, not an official Google or OpenAI product. It uses agy,
not the gemini CLI. An existing authenticated Antigravity account is required.
Install
Requires Node 22+, macOS or Linux, and an authenticated agy installation.
Tested against agy 1.2.0; the runner checks capabilities and available models on each run.
git clone https://github.com/WangZhuo2015/antigravity-cli-delegate.git
cd antigravity-cli-delegate
npm ci --ignore-scriptsFor Codex skill discovery, link the repository to your skills directory. If the destination already exists, preserve it before replacing it:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
ln -s "$PWD" "${CODEX_HOME:-$HOME/.codex}/skills/antigravity-cli-delegate"Register the MCP server for the no-polling workflow:
codex mcp add antigravity-delegate -- node "$PWD/scripts/mcp.mjs"Set tool_timeout_sec = 660 in the resulting
[mcp_servers.antigravity-delegate] configuration table for the default 600-second
runner deadline. Restart the host session if needed. Other MCP hosts can run the same
stdio command; see host setup for timeouts and progress tokens.
The host controls whether progress is displayed and whether other work can run concurrently.
Related MCP server: cursor-agent-bridge
Use
Ask your agent:
Use $antigravity-cli-delegate to review src/parser.mjs for the failing empty-input case. Read only that module and its test. Report the cause with line references; do not edit files.
Or call the MCP delegate tool directly:
{
"cwd": "/absolute/project",
"task": "Goal: fix the empty-input case. Scope: src/parser.mjs and test/parser.test.mjs only; preserve unrelated changes. Check: node --test test/parser.test.mjs. Report: changed files and check results.",
"mode": "accept-edits"
}The default mode is plan with --sandbox. Use accept-edits only when the user
has authorized those edits. These settings and prompt constraints are not a filesystem
allowlist; use an isolated workspace when stronger containment is needed. The caller
still checks the diff and acceptance evidence. SUCCESS only means the CLI completed.
The same runner works without MCP dependencies from a foreground terminal:
node scripts/run.mjs --cwd /absolute/project --task-file /absolute/brief.txtOptional flags: --effort high, --model EXACT_LISTED_ID, --mode accept-edits,
--timeout-seconds 600, --max-summary-chars 2400. Use AGY_BIN for a custom CLI path.
How it avoids caller overhead
short brief → one delegate call → agy stdin / NDJSON event stream
↘ tool-state notifications → host UI
↘ complete local evidence → disk
↘ compact final result → caller modelThe runner waits on pipe and process events. Its only timers are a deadline and termination escalation; there are no heartbeat, sleep/check, or polling loops. A host that offers only polling shell sessions cannot provide no-polling background execution; use MCP or a single foreground call instead. There is no background job queue or durable reconnect/resume mechanism: closing the MCP transport cancels active work.
The rewritten skill is roughly 61% shorter by word count than its original local
version. This is not a measured token-cost reduction. Actual caller usage depends on
the host, brief, result length, and verification. The usage field is the worker's
usage. The runtime also avoids returning repeated preflight output to the caller.
Verify and contribute
npm test
node scripts/smoke.mjsnpm test is offline and uses a protocol double. The second command is an explicit
live check using your authenticated account: it asks Gemini to read a temporary fixture,
checks the answer and unchanged files, and receives progress through the official MCP
client. It is excluded from CI and may consume account quota. Test logs contain local
workspace data; review them before sharing and remove them when no longer needed.
Tests cover model routing, streaming before completion, duplicate filtering, bounded
summaries, private evidence, stdin quoting, unsuccessful status/exit, broken streams,
timeouts, and cancellation. Contributions should preserve these observable behaviors.
Run npm test before submitting changes; do not include credentials or local run logs.
License
MIT. Protocol references: Antigravity headless mode and MCP progress.
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.
- DazbenchOAuthapp.dazbench
Task management your AI agents can actually run. One line becomes a context-ready task over MCP.
Remote MCP for Antigravity agent run receipt MCP, structured receipts, audit logs, and reviewer-read
Discover and call AI agents via MCP. Supports A2A agents and platform agents with async tasks.
Related MCP Servers
- AlicenseBqualityAmaintenanceAn MCP bridge that lets Codex delegate long-running agent work to the Antigravity CLI, providing observable and resumable tool-based execution with project scoping.14177 PyPI11MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients like Claude Code to delegate coding tasks to the local Cursor Agent CLI, with persistent per-workspace sessions that resume across calls.12 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables AI clients to run Google Antigravity coding sub-agents as MCP tools, with synchronous and asynchronous execution, task polling, and sandboxed Docker workspace isolation.-
- AlicenseAqualityCmaintenanceEnables AI harnesses to delegate code analysis, modification, testing, and long-running tasks to the locally installed Antigravity CLI via stdio MCP, with job status tracking and conversation continuity.3MIT