Google's Swarm Multi-Agent Architecture: Five-Layer Design Triples SWE-Bench Scores
Google quietly launched a native multi-agent framework called Swarm in its Antigravity AI coding platform, achieving a 3x improvement on SWE-sweep benchmarks (12.8% to 39.0%) without model fine-tuning. The article dissects Swarm's five-layer architecture — Command, Communication, Execution, Verification, and Assurance — detailing how isolated worktrees, a shared message board with zero-token waiting, dedicated verifier agents, and background monitors solve context pollution and coordination failures in multi-agent software engineering.
Reading font

Three Releases in Two Weeks: Google Makes Multi-Agent Clusters Native
In mid-November, Google rolled out three core updates to its Antigravity AI programming platform:
Nov 10: /swarm command launched on desktop and CLI. Users describe a task; the system auto-assembles a cluster, assigns roles, and runs planning, coding, and verification in parallel on a real-time message board. Different roles can use different models.
Nov 12: Lightweight execution model Gemini 4 Hydrogen and dual-model Orchestrator mode released. A strong reasoning model plans; a fast model edits code. Official blog noted tens of thousands of agent swarms started within two days.
Nov 18: Gemini 4 Neon released for multi-step software engineering, set as Orchestrator's default planner. Next day, Google Cloud published a long-form article on five multi-agent orchestration patterns and supporting research.
These updates completed the trio: lightweight executor, planner, and cluster scheduler.
Five-Layer Swarm Architecture
Based on Antigravity technical docs, desktop client (v2.35.2), and CLI ( agy 1.5.6, Electron UI + Node.js helper + Go runtime), the cluster splits into five layers:
1. Command Layer: Coordinator + Dual-Model Handoff
User invokes /swarm; current session becomes Coordinator .
Coordinator uses only four tools: swarm (manage members/models), post_message (board), read_board (progress), swarm_wait (suspend). It never edits business code , keeping its context clean.
Inside a single agent session, Orchestrator enables phased handoff: Planner (default Gemini 4 Neon, optionally Carbon or Claude Opus 5.5) reads code read-only, writes implementation plan with re-plan triggers; Executor (default Gemini 4 Hydrogen) finds files, edits, builds, tests. On blockers (two test failures, interface mismatch, unresolved design choice), control returns to Planner automatically.
2. Communication Layer: Shared Board, Zero-Token Wait
Agents communicate only via a shared message board ( board.jsonl), no peer-to-peer. Messages append with monotonic seq, sender, timestamp, channel. board_cache.mjs optimizes reads: checks inode + head/tail checksum, then loads only new messages since each agent's lastSeq.
Channels: main (all), custom sub-channels (e.g., #parser, #ui) with @#channel mentions. @#main is intercepted to avoid accidental broadcast.
Waiting costs 0 tokens. Idle agents call swarm_wait → waiting state. Runtime resumes them only on @agent or @all mention.
Frontend Graph view shows weighted directed edges of mentions and frequency; timeline slider replays collaboration.
3. Execution Layer: Isolated Worktrees Prevent Overwrites
Naming convention: role-based ( @parser, @api-tests, @docs) or numbered ( @fix-1 … @fix-4).
Each member starts from a fresh context. Coordinator's public Brief specifies: responsible files/dirs, forbidden dirs, done criteria.
Three workspace modes (Go runtime workspace param): inherit (default): share main directory, read-only tasks. share: independent worktrees (like git worktree) sharing Git objects. Members edit, build, test in isolation, commit on separate branches. branch: full repo clone for high-risk isolation.
When Coordinator kill s a member, its worktree is cleaned; standard flow requires merge before removal.
4. Verification Layer: Read-Only Verifiers, Cross-Model Checks
Coder self-review misses errors due to same-context bias. Swarm assigns 1 dedicated read-only @verifier per 2–4 executors . @verifier starts in new context, no write permission. Tasks: line-by-line diff review, verify file paths/line numbers in reports, re-run unit/race tests (e.g., go test -race ./...). model param lets verifier use a different model than executors (e.g., Hydrogen for coding, Carbon or Opus 5.5 for review), avoiding single-model blind spots. Failures posted to board for targeted fixes; all-pass reported to Coordinator.
5. Assurance Layer: Background Monitor & Narrator Prevent Stalls
Async @-mention handoffs can stall (e.g., @parser forgets to ping @verifier). Coordinator spawns two non-coding background roles at cluster creation:
@monitor : every 3 minutes ( */3 * * * *) scans member states. Intervenes only if task not [done] AND all members (incl. Coordinator) are waiting or stopped. Detects five stall patterns: missing mention, unprocessed new messages, unresponsive mentioned agent, circular waits, Coordinator idle. Wakes stuck member; same stall alerted once per ~10 min (3 cycles). After 3 unheeded alerts or ~15 min (5 cycles) board silence, monitor sleeps.
@narrator : reads new board.jsonl entries, never posts. Summarizes phase, workstream statuses, completed goals, open decisions into view.json (≤64 KB) for frontend dashboard.
Benchmark & Real-World Results
1. Native Framework Triples SWE-sweep Score
Google DeepMind benchmark: Gemini 4 Neon on SWE-sweep (cross-repo multi-file refactoring & bug fixes). Mini-SWE harness (minimal single-agent): 12.8% (Claude Opus 5.5: 3.6%, GPT-6.2 Sol: 11.6%). Provider harness (Antigravity native): 39.0% — 3×+ improvement with same weights (Claude Opus 5.5 native: 10.1%, GPT-6.2 Sol native: 8.3%).
Artificial Analysis Coding Agent Index: Gemini 4 Neon leads at 58.6 ; default high reasoning costs 32% less than Gemini 4 Carbon.
Orchestrator dual-mode on Terminal-Bench 4.0/4.1: success rate ≈ solo Gemini 4 Carbon, 24% less quota, 19% faster . Gemini 4 Hydrogen alone scores 57% on Terminal-Bench 4.1 vs. Gemini 3.8 Flash's 18.2% (3×+).
2. Research Backing for Design Choices
Why avoid overlapping edits: Stanford + SAP Labs CooperBench (arXiv:2601.13295, 652 real tasks from 12 OSS libs) — two agents editing overlapping regions ~30% lower success vs. single agent doing both. Justifies explicit scope + per-agent worktrees.
When parallel agents help: Google + MIT scaling laws (arXiv:2512.08296) — on independent-submodule financial reasoning, multi-agent +80.8% over single; on sequential planning benchmark, multi-agent drops 39–70% .
Why independent verification + automated tests:
DeepMind self-correction (arXiv:2310.01798) & self-evaluation bias (arXiv:2404.13076): models struggle to spot own reasoning errors and over-rate own output.
Large Language Monkeys (arXiv:2407.21787): parallel candidates + automated filtering lifts GitHub issue solve rate from 15.9% (1 try) to 56% (250 tries) .
Classic code review (IEEE 10.1109/32.391380) & multi-model review (arXiv:2404.18796): specialized reviewers find ~35% more defects than generic checklist.
3. Developer Field Tests
Theo Browne (T3 Chat) used Gemini 4 Neon + /swarm on ts-rust (TypeScript compiler port to Rust). In <10 hours beat a rival model's 7+ days: binary 47.44 MB → 7.97 MB (16.8%) , npm package 19.19 MB → 5.03 MB , cached incremental build 46.2 ms (~1/21) , full test suite -48.6% . Noted: without tool-verified checks, 10/72 architectural answers wrong; with verification, 21/21 code-review findings correct.
Flavio Copes ran 5-member cluster (3 read-only auditors: links, images, build scripts; + @verifier, @monitor) on website audit. 9 min 42 sec , 14 board messages. Verifier caught 2 statistical errors in @links-auditor report, forced recalc, produced 10 recommendations. Quota ≈ 4–5× single-agent chat.
When to Use Swarm (and When Not To)
Not a default replacement for daily single-agent chats. Site audit case: 5 members = 4–5× quota. For small edits or strictly sequential tasks, cluster adds overhead and may lower success rate.
Ideal when: (1) task splits into non-conflicting subtasks by directory/module/check-target; (2) automated tests + independent @verifier exist. Routine features/bugs: single-session Orchestrator (planner + lightweight executor) is more efficient. Cross-module refactors, large test additions, parallel triage: /swarm pays off.
About this article
For attribution, corrections or content rights, contact