Antigravity Multiagents Starterpack Scaffolder
This VS Code extension instantly scaffolds a complete, production-ready Fullstack AI Multi-Agent Orchestrator environment powered by Google Antigravity CLI (agy)[cite: 1, 2].
Built around Antigravity's native Hub-and-Spoke architecture (respecting subagent recursion protection), this starterpack sets up 1 Main Orchestrator Agent and 6 specialized Subagents that collaborate seamlessly using file-based artifact handoffs and isolated context windows[cite: 1, 2].
✨ Features
- Predefined Hub-and-Spoke Architecture: Automatically generates native
.agents/agents/{agent_name}/agent.md configurations with pre-mapped model tiers (pro and flash) and native tools (invoke_subagent, run_command, view_file, replace_file_content)[cite: 1].
- Sequential & Parallel Execution: Configured to run independent subagents concurrently (
designer and backend in parallel) to speed up development[cite: 1].
- Token-Efficient Artifact Handoff: Subagents communicate through structured specification files in
docs/ rather than passing bloated chat histories[cite: 1].
- Automated QA Fix Loop: Built-in self-healing workflow where
qa bug reports automatically trigger frontend or backend fixes until all checks return PASS[cite: 1, 2].
- Persistent Memory & Security Rules: Includes long-term lessons learned tracking (
context/memory.md) and behavioral file access boundaries (.agents/rules/boundaries.md)[cite: 1, 2].
- Safe Initialization: Prevents accidental overwrites of existing workspaces.
🤖 Agent Roles & Responsibilities
| Agent |
Role |
Type |
Model Tier |
Output Artifacts |
Responsibility |
orchestrator |
Project Manager |
Main Agent (mainAgent: true) |
pro |
context/memory.md |
Reads project memory, breaks down user prompts, invokes subagents via invoke_subagent, manages parallel tasks, and coordinates the QA Fix Loop[cite: 1]. |
analyst |
Systems Analyst |
Subagent (subagent: true) |
pro |
docs/requirements.md |
Translates high-level user requests into structured requirements (Core Features, User Flows, Non-functional specs)[cite: 1]. |
architect |
System Architect |
Subagent (subagent: true) |
pro |
docs/architecture.md, docs/api-contract.md |
Defines tech stack, database schemas, and strict REST API contracts to enable parallel frontend/backend work[cite: 1]. |
designer |
UI/UX Designer |
Subagent (subagent: true) |
flash |
docs/design-spec.md |
Creates UI component hierarchies, color palettes, typography, and responsive layouts. Runs in parallel with backend[cite: 1]. |
backend |
Backend Developer |
Subagent (subagent: true) |
pro |
src/backend/ |
Initializes server projects, installs packages, and implements APIs & database logic based on api-contract.md. Runs in parallel with designer[cite: 1]. |
frontend |
Frontend Developer |
Subagent (subagent: true) |
flash |
src/frontend/ |
Builds the client UI following design-spec.md and integrates endpoints strictly from api-contract.md[cite: 1]. |
qa |
Quality Assurance |
Subagent (subagent: true) |
flash |
docs/qa-report.md |
Runs tests/builds, inspects code against requirements and API contracts, and returns a PASS or FAIL verdict[cite: 1]. |
🔄 Runtime Execution Flow
USER ("Build an e-commerce website")
│
▼
ORCHESTRATOR (Reads context/memory.md)
│
├──► 1. Invoke `analyst` (Sequential)
│ └── Outputs: docs/requirements.md
│
├──► 2. Invoke `architect` (Sequential)
│ └── Outputs: docs/architecture.md & docs/api-contract.md
│
├──► 3. Invoke `designer` & `backend` (PARALLEL EXECUTION)
│ ├── `designer` outputs: docs/design-spec.md
│ └── `backend` outputs : server code in src/backend/
│
├──► 4. Invoke `frontend` (Sequential - waits for step 3)
│ └── Outputs: client code in src/frontend/
│
└──► 5. Invoke `qa` (Sequential)
└── Outputs: docs/qa-report.md
│
┌─────┴─────┐
▼ ▼
[PASS] [FAIL]
│ │
│ └──► FIX LOOP: Orchestrator re-invokes `backend` or
│ `frontend` to fix bugs ──► Re-runs `qa`.
▼
DONE (Updates context/memory.md & reports to User)
📂 Generated Folder Structure
project-root/
├── .agents/
│ ├── rules/
│ │ └── boundaries.md # Security policy (blocks reading .env, *.pem, *.key, etc.)
│ └── agents/
│ ├── orchestrator/
│ │ └── agent.md # Main Orchestrator Agent
│ ├── analyst/
│ │ └── agent.md # Systems Analyst Subagent
│ ├── architect/
│ │ └── agent.md # Software Architect Subagent
│ ├── designer/
│ │ └── agent.md # UI/UX Designer Subagent
│ ├── backend/
│ │ └── agent.md # Backend Developer Subagent
│ ├── frontend/
│ │ └── agent.md # Frontend Developer Subagent
│ └── qa/
│ └── agent.md # QA & Testing Subagent
├── docs/ # Shared specifications, contracts, and QA reports
├── context/
│ └── memory.md # Persistent lessons learned across tasks
├── src/
│ ├── backend/ # Backend source code directory
│ └── frontend/ # Frontend source code directory
└── tests/ # Test suites directory
🚀 Usage Guide
Step 1: Scaffold the Workspace
- Open an empty folder in VS Code.
- Open the Command Palette (
Ctrl + Shift + P or Cmd + Shift + P).
- Run
AI Agents: Initialize Project.
Step 2: Launch Antigravity CLI & Activate Orchestrator
- Open the integrated terminal in your project root and start Antigravity[cite: 1]:
agy
- Open the Agent Manager panel[cite: 1]:
/agents
- Use the ↑ / ↓ arrow keys to highlight
orchestrator under Available Agents[cite: 1].
- Press Enter to select it, then press Esc to apply (indicated by a green dot
●)[cite: 1].
Step 3: Run a High-Level Task
Type your project request directly into the main prompt[cite: 1]:
"Build a simple e-commerce website with a product catalog, shopping cart, and checkout page."[cite: 1]
Step 4: Monitor & Control Subagents in Real-Time
- View Live Hierarchy: Type
/agents while a task is running to see the parent-child tree and live statuses ([RUNNING], [DONE], [ERROR], [KILLED])[cite: 1].
- Inspect Subagent Thought Process: In
/agents, highlight any running subagent and press Enter (or press Alt + J from the main screen) to jump into its isolated execution thread[cite: 1]. Press Esc to return[cite: 1].
- Approve Terminal Commands: When
backend, frontend, or qa requests permission to execute run_command, press A (or Ctrl + K) to Approve, or D to Deny[cite: 1].
- Kill Stuck Subagents: Open
/agents, highlight a stuck subagent, and press K to terminate it[cite: 1].
| |