ANTIGRAVITY LABJP
Articles/Agents & Manager
Agents & Manager/2026-03-29Advanced

Antigravity AgentKit 2.0— to Production Multi-Agent Orchestration

Master AgentKit 2.0 multi-agent orchestration: Manager/Surface/Worker architecture, implementation patterns, and production-ready operational foundations.

AgentKit 2.013Multi-agentOrchestration4Manager AgentSurface AgentProduction Operations

Premium Article

Antigravity's AgentKit 2.0 provides a powerful framework for building multi-agent systems where multiple agents collaborate to accomplish complex tasks. This guide walks you through designing, implementing, and operating agent orchestration systems that reliably run in production environments, complete with real-world code examples.

AgentKit 2.0 Architecture Overview

AgentKit 2.0 distributes large-scale task processing across multiple agents through three primary roles:

Manager Agent (Orchestration Lead)

  • Receives user requests and analyzes/decomposes tasks
  • Delegates work to Surface Agents with orchestration
  • Aggregates results from multiple Surfaces and generates final response
  • Implements error handling and fallback strategies

Surface Agent (Domain Specialist)

  • Executes processing specialized to specific domains (data analysis, text generation, image processing)
  • Manages Worker Agents based on clear Manager directives
  • Makes complex judgments within expertise area and optimizes workflows

Worker Agent (Execution Unit)

  • Executes concrete tool invocations, API integrations, and data processing
  • Takes instructions from Surface Agent and focuses on single responsibility
  • Reports back error logs and execution metrics

This hierarchy provides clear separation of concerns, allowing each layer to be tested and scaled independently.

Declarative Definition with agents.md

AgentKit 2.0 defines your entire agent system in a declarative agents.md file:

# Company Analytics System
 
## Manager: AnalyticsOrchestrator
role: Coordinates data collection and reporting
instructions: |
  1. Parse user queries for analytics scope
  2. Delegate to DataCollector and ReportGenerator in parallel
  3. Merge results with cross-validation
  4. Return formatted dashboard JSON
 
## Surface: DataCollector
role: Gathers metrics from multiple sources
delegated_workers:
  - GoogleAnalyticsWorker
  - StripeWorker
  - CustomMetricsWorker
 
instructions: |
  Normalize all metrics to common schema
  Validate completeness before returning
 
## Worker: GoogleAnalyticsWorker
role: Fetch GA4 data via API
instructions: |
  1. Authenticate with service account
  2. Query date range from parent instruction
  3. Transform response to standard format
  4. Return with timestamp

This markdown approach makes your agent system architecture immediately clear to the entire team and enables straightforward version control.

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
Understand AgentKit 2.0 Manager/Surface/Worker architecture to design scalable agent systems
Master implementation patterns for task decomposition, parallel execution, and result aggregation to automate complex workflows
Build production-grade operational infrastructure including error recovery, cost control, and security sandboxing
Secure payment via Stripe · Cancel anytime

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Antigravity Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

Related Articles

Agents & Manager2026-04-23
Production Multi-Agent Systems with Antigravity AgentKit 2.0: Patterns, Failure Modes, and What the Demos Don't Show
AgentKit 2.0 makes multi-agent systems look effortless in demos, but running them in production is a different problem. This guide covers Planning vs. Fast mode, three real orchestration patterns, and the failure modes — infinite loops, cost blowouts, prompt injection — that bite on day one.
Agents & Manager2026-04-07
Orchestrating a Team of Specialist Agents Solo: Practical Multi-Agent Design in Antigravity
Master multi-agent development in Antigravity. Deep dive into Manager Surface architecture, specialist agent design, AGENTS.md configuration, common patterns, and production deployment strategies for enterprise-grade systems.
Agents & Manager2026-03-30
AgentKit 2.0 Production Design Patterns — Strategic Architecture for 16 Specialized Agents
Comprehensive guide to leveraging AgentKit 2.0's 16 specialized agents, 40+ skills, and 11 commands in production environments. Master 5 proven orchestration patterns (hierarchical delegation, pipeline, fan-out/aggregate), AGENTS.md team standards, and strategies for 1M token context windows with Gemini 3.1 Pro.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →