Agent swarm (mixed Antigravity + Codex + Copilot + Cursor + …, parallel)
agent_swarmRun many independent sub-tasks in parallel across multiple AI backends in one call, mixing model families and returning each labelled answer plus any failed worker in place.
Instructions
Best for many independent sub-tasks: runs them IN PARALLEL across backends in one call. Each task names its backend (Antigravity, Codex, Copilot, Cursor, Claude Code, Grok, opencode, Muse), so one swarm can mix model families; every answer comes back in one labelled block, and a failed worker is reported in place. Give each task workspace=; without it that worker sees no repo. Workers are one-shot (no continue). N autonomous agents at once is N times the prompt-injection surface: trusted prompts only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tasks": "<tasks>"
},
"name": "agent_swarm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | One object per worker. backend (required): "antigravity" ("agy"), "codex", "copilot", "cursor", "claude", "opencode", "grok" or "muse". prompt (required). workspace: the project dir (default: the server cwd, so no repo). sandbox: "read-only" (default), "workspace-write" or "danger-full-access", each with that backend's own meaning (see its *_ask). ANTIGRAVITY differs: "read-only" is plan mode, "workspace-write" is refused, and an omitted sandbox leaves the worker UNRESTRICTED, so set one. model: optional, in the backend's own format (opencode: "provider/model"). | |
| watch | No | If true, open the live "Agent Swarm" dashboard window (one card per worker, with its backend's logo; click a card for its full step log). | |
| timeout_s | No | Per-worker timeout in seconds. Default 180. An opencode worker is given at least 300s regardless, as a ceiling: its free models answer in seconds today but have been queue-scheduled to minutes before. The budget is only ever raised, never lowered. | |
| max_concurrency | No | Max workers running at once (default 4). Higher = faster but more quota/rate-limit pressure and more agents at once. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |