{"slug": "google-antigravity-ships-dynamic-workflows-to-run-parallel-ai-coding-agents", "title": "Google Antigravity Ships Dynamic Workflows to Run Parallel AI Coding Agents", "summary": "Google Antigravity launched Dynamic Workflows, a `/run-workflow` slash command that has the main agent generate a reviewable Python script orchestrating parallel and sequential subagents with structured JSON Schema outputs. The generated programs use five primitives — `phase()`, `agent()`, `parallel()`, `pipeline()`, and `await trajectory()` — with each subagent running in its own conversation so file reads and logs stay out of the main context window, and scripts can be saved to `.py` files and re-run as repeatable workflows. The feature is available on Google AI Pro and Ultra plans in both the Antigravity App and CLI.", "body_md": "# Google Antigravity Ships Dynamic Workflows to Run Parallel AI Coding Agents\n\nGoogle Antigravity's new /run-workflow command has the agent write a Python script that orchestrates parallel and sequential subagents with structured handoffs.\n\n- Google Antigravity launches [Dynamic Workflows](https://antigravity.google/docs/dynamic-workflows?utm_source=alphasignal) via the new`/run-workflow` slash command.\n- Agent writes a reviewable Python script that orchestrates parallel and sequential subagents with structured JSON Schema outputs.\n- Each subagent runs in its own conversation, keeping file reads and logs out of the main context window.\n- Primitives include `phase()` ,`parallel()` ,`pipeline()` , and`agent()` with per-agent model and workspace control.\n- Scripts can be saved to `.py` files and re-run later as repeatable workflows.\n- Available on Google AI Pro and Ultra plans in both the Antigravity App and CLI.\n\nGoogle Antigravity has introduced [Dynamic Workflows](https://antigravity.google/docs/dynamic-workflows?utm_source=alphasignal), a way to coordinate multi-agent coding tasks through generated Python scripts. The `/run-workflow` command turns a request into a reviewable program with named phases, parallel or sequential execution, structured outputs, and a flow that developers can save and run again. This makes repeated reviews, package-level audits, and test-then-fix jobs easier to inspect and reproduce.\n\n## Python takes the coordinator’s seat\n\n1. The main agent loads Antigravity’s built-in workflow skill and generates a Python script for the requested task.\n2. Antigravity displays the script and waits for approval before executing it.\n3. A separate Python process runs the workflow in the background while the original conversation remains available.\n4. When execution finishes, the main agent reads the logs and summarizes the results.\n\nEach workflow-launched agent receives its own conversation and cannot see the orchestration script or its peers. The script must therefore supply every agent with the required context, task, and output format. This isolation supports independent work such as reviewing each changed file or testing separate packages.\n\nStructured returns keep the parent workflow predictable. A subagent submits its result through the `finish` tool, which validates the value against a specified JSON Schema before passing the parsed result to the script. File reads, searches, and test output remain in the subagent conversations, preserving the main conversation’s context window during high-volume jobs.\n\n## Five primitives define the flow\n\nThe generated program uses a small asynchronous API that covers logging, agent creation, concurrency, sequencing, and access to earlier conversation steps:\n\n- `phase(name)` starts a named phase and groups its logs and agent cards.\n- `agent(prompt, schema, role, model, workspace)` defines an agent. Awaiting it produces a single result; retaining its handle supports subsequent turns with the same agent.\n- `parallel(items, fn)` runs`fn(item)` concurrently for every item and preserves result order. If one operation fails, Antigravity cancels the remaining operations.\n- `pipeline(items, fn)` processes items sequentially.\n- `await trajectory(...)` makes selected earlier steps from the parent conversation available to the script.\n\nA generated workflow for parallel exception reviews could look like this:\n\n```\nphase(\"Discover\")\nfiles = await agent(\n    \"List the Python files changed since main. Paths only.\",\n    schema={\"type\": \"array\", \"items\": {\"type\": \"string\"}},\n)\n\nphase(\"Review\")\nreviews = await parallel(\n    files,\n    lambda f: agent(\n        f\"Review {f} for unhandled exceptions. One-line verdict.\",\n        schema={\"type\": \"string\"},\n        role=f\"Review {f}\",\n        model=\"flash\",\n    ),\n)\n```\n\nPer-agent controls let developers match cost and capability to each step. High-volume checks can use `flash_lite` or `flash`, while tasks requiring deeper reasoning can use `pro`. A workflow may also select Antigravity’s read-only research agent or a custom subagent.\n\nParallel editing jobs can assign `workspace=\"branch\"` to each agent, giving every worker an isolated Git worktree. Agents can then modify files and run tests concurrently without overwriting one another’s changes.\n\n## Choose by communication pattern\n\nAntigravity provides three multi-agent options, with the task’s coordination pattern determining the appropriate tool:\n\n| Task shape | Tool | How it coordinates work | \n|---|---|---|\n| Repeated checks or ordered stages | `/run-workflow` | A Python script controls execution and collects schema-validated results. | \n| Agents must negotiate or review one another’s work | [`/swarm`](https://antigravity.google/docs/swarm?utm_source=alphasignal) | Agents coordinate through a shared message board. | \n| One self-contained delegated task | [Subagent](https://antigravity.google/docs/subagents?utm_source=alphasignal) | A single agent handles the assignment with less orchestration overhead. | \n\n### Jobs suited to `/run-workflow`\n\n1. Run the same lint-style review across every file changed on a branch.\n2. Have a persistent reviewer identify bugs, dispatch parallel fixers, and verify the resulting changes.\n3. Refactor packages in isolated Git worktrees and run each package’s tests.\n4. Process a bug queue sequentially, creating a failing test before implementing each fix.\n\n## Plans, credits, and runtime\n\nDynamic Workflows are available with Google AI Pro and Google AI Ultra in the Google Antigravity App and Antigravity CLI. They have no separate price and consume the plan’s existing model credits. High-fanout workflows can trigger many model calls, so model selection provides the main control over credit use.\n\nThe workflow runs in a separate process using the Python runtime bundled with Antigravity, so no local Python installation is required. Developers who need a different interpreter can set the `ANTIGRAVITY_PYTHON` environment variable.\n\nSaving the generated program as a `.py` file in the workspace makes the same orchestration available for later runs. Teams can review that script alongside their code and reuse it for recurring audits, refactors, and test workflows.", "url": "https://wpnews.pro/news/google-antigravity-ships-dynamic-workflows-to-run-parallel-ai-coding-agents", "canonical_source": "https://alphasignal.ai/news/google-antigravity-ships-dynamic-workflows-to-run-parallel-ai-coding-agents", "published_at": "2026-11-13 19:41:43+00:00", "updated_at": "2026-11-14 01:22:04.317318+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "generative-ai", "artificial-intelligence"], "entities": ["Google Antigravity", "Google", "Dynamic Workflows", "Google AI Pro", "Google AI Ultra"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/google-antigravity-ships-dynamic-workflows-to-run-parallel-ai-coding-agents", "markdown": "https://wpnews.pro/news/google-antigravity-ships-dynamic-workflows-to-run-parallel-ai-coding-agents.md", "text": "https://wpnews.pro/news/google-antigravity-ships-dynamic-workflows-to-run-parallel-ai-coding-agents.txt", "jsonld": "https://wpnews.pro/news/google-antigravity-ships-dynamic-workflows-to-run-parallel-ai-coding-agents.jsonld"}}