Run Antigravity prompts in parallel
antigravity_swarmRun multiple Antigravity prompts concurrently in isolated workers. Each worker executes independently; failures don't affect others. Combine results for parallel sub-tasks.
Instructions
Run several Antigravity (Gemini 3.5 Flash High) prompts IN PARALLEL.
Fans the prompts out to independent agy workers that run truly concurrently
(each in its own isolated state dir, so they never race), capped at
max_concurrency. Returns one combined text block with every worker's answer,
labelled by index. A worker that fails is reported in place — the others still
return (error isolation).
Use this to parallelise independent, cheap sub-tasks (e.g. summarise N files, ask the same question about N repos). For a single prompt use antigravity_ask.
SECURITY: this launches N unsandboxed agy agents at once — N times the prompt-injection surface of a single call (see the module SECURITY note). Only use it with trusted prompts on trusted content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompts | Yes | One prompt per parallel worker. | |
| workspaces | No | Working directory per worker. Omit for the server cwd; pass a 1-item list to point every worker at the same dir; pass one entry per prompt to give each worker its own dir. | |
| max_concurrency | No | Max workers running at once (default 4). Higher = faster but more quota/rate-limit pressure and more agents at once. | |
| timeout_s | No | Per-worker timeout in seconds. Default 180. | |
| watch | No | If true, open the live "Antigravity Swarm" dashboard window (one row per worker; click a row to open that agent's full step log beside it). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |