delegate-antigravity
Delegates long, multi-step implementation tasks to Antigravity in an isolated git worktree, returning a task ID for progress polling, follow-up instructions, and final diff retrieval.
Instructions
Delegate a long, multi-step implementation task to Antigravity. Runs detached in its own git worktree/branch, by default on the Orchestrator model (planner + Gemini 4 Hydrogen implementer, built for long tasks). Returns a taskId immediately; poll status for live progress, continue to send follow-up instructions into the same conversation, and result for the final answer + diff. The worktree isolates git state only — with skipPermissions (default) the agent can run any command.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "delegate-antigravity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Agent mode (--mode): accept-edits, auto (sandboxed autonomy; not available on every account), or plan (answers go into a plan artifact). | |
| task | No | What Antigravity should accomplish (required for start). | |
| model | No | Model ID or label. Omit to use the Orchestrator (Carbon, else Argon) when your plan has one, otherwise Gemini 4 Hydrogen (High). | |
| action | No | start: spawn a delegated task; status: live progress; continue: send a follow-up turn to the same conversation; result (alias collect): final answer + diff; stop: kill the running turn; list: all delegations. | start |
| effort | No | --effort for non-Orchestrator models (Orchestrator has a fixed thinking level). | |
| signal | No | Signal for action=stop (default SIGTERM; SIGKILL for a run that ignores it). | SIGTERM |
| taskId | No | Delegation ID returned by start (any turn's task ID also works). | |
| cleanup | No | On result/collect: also remove the worktree and delete the branch after grabbing the diff. | |
| message | No | Follow-up instruction for action=continue. | |
| sandbox | No | --sandbox: run terminal commands in the OS sandbox. | |
| timeout | No | Per-turn --print-timeout in milliseconds (default 7200000 = 2h; 0 = no limit). | |
| autoTest | No | Command the agent must run to verify its work (e.g. "npm test"); it is told to loop until it passes. | |
| baseBranch | No | Branch/commit to base the worktree on (default: current HEAD of repo). | |
| branchName | No | Name for the new branch in the worktree. Default: agy/<random>. | |
| workingDir | No | Repo root (default: resolved automatically). | |
| skipPermissions | No | --dangerously-skip-permissions (default true: a headless run cannot answer permission prompts; false when `mode` is set; not allowed with mode plan). The worktree isolates git state, NOT the filesystem — the agent can still read/write outside it and run any command. | |
| acceptanceCriteria | No | Bullet list of criteria the implementation must satisfy. |