Re-checked 2026-11-23 (Curator Pass B)

Architecture and guardrails still hold; the named models (Kimi K2.6, Opus 4.8) are superseded. Claw Groups and the 300 sub-agent / 4,000-step figures are confirmed for K2.6 only.

An agent swarm is multiple agents working simultaneously on decomposed subtasks, coordinated by an orchestrator that aggregates the results. The whole point is width: tasks that have many independent parts (50 companies to research, 200 files to analyze) shouldn’t be processed in a line.

  • Sequential chain: A → B → C. Total time = A + B + C.
  • Swarm: orchestrator splits the goal, A/B/C run concurrently on independent subtasks, results merge. Total time ≈ max(A, B, C).

Beyond speed, a swarm solves context overflow: each subtask gets its own bounded context, and only structured output flows back to the orchestrator. This is the same insight behind dynamic workflows and Anthropic’s research system — isolated contexts beat one drowning window.

Source: How to Build AI Agent Swarms (Complete Guide) (X thread, 2026).

Source caveat

The source is a promotional thread for Kimi K2.6 (Moonshot AI), written from Kimi’s own docs and AI-edited. Treat the model-specific numbers (300 sub-agents, 4,000 tool calls, the benchmark gains, the PARL/Mooncake paper citations) as vendor claims, unverified. The durable content is the architecture and the guardrails, not the model or the stats. Both named models are already superseded as of late 2026 (Kimi K3 / K3.1 Pro; Claude Opus 5 / 5.5), and the current Opus lists at 20 per MTok, so re-check the cost gap before copying the model split.

The six building blocks

Every swarm has the same core components:

ComponentRole
OrchestratorDecomposes the task, assigns subtasks, monitors, aggregates
SubagentsSpecialized workers scoped to one domain (research / code / analysis / writing)
ToolsWhat agents can call: search, code interpreter, file I/O, APIs
MemoryShared state the swarm reads/writes
Handoffs / routingPassing control or data between agents
GuardrailsIteration limits, timeouts, human-in-the-loop, error recovery

How a swarm executes

  1. Decompose — the orchestrator builds a dependency graph: which subtasks are independent, which depend on prior outputs.
  2. Spawn specialists — domain-scoped sub-agents (web research, data analysis, writing, fact-checker), each with role-specific instructions, targeted tool access, and its own bounded context.
  3. Execute in waves — wave 1 runs fully independent tasks; later waves run dependent tasks as inputs land, until the graph resolves. The orchestrator detects failed/stalled agents and reassigns.
  4. Aggregate — the orchestrator synthesizes across outputs (not concatenate) into one deliverable.

The optimization target that matters: critical path length, not raw concurrency. Shortening the longest dependency chain is what actually reduces wall-clock time — spawning a crowd of agents that all feed one bottleneck buys nothing.

The Kimi × Claude hybrid (the interesting claim)

The thread’s central recommendation is a two-model split that maps cleanly onto planner/worker/judge and Model Tier Routing:

[User Goal]
   → [Claude Opus 4.8 — Planner]    decompose, mark parallel vs sequential, define success criteria
   → [Kimi K2.6 swarm — Executor]   spawn specialists, run in parallel, return structured results
   → [Claude Opus 4.8 — Verifier]   check against criteria, flag gaps, synthesize the deliverable

The argument: use a judgment-strong model on the decision layers (plan, verify) and a cheap, high-throughput model on the work layer (bulk parallel execution). The justification for Claude on verification is honesty — false confidence is the catastrophic failure mode in a swarm, because an orchestrator that says “completed” when it hasn’t cascades errors across every downstream agent. This is the borrowed-confidence problem at the orchestration layer.

Whether you buy the specific models or not, the shape is sound and recurs across the vault: separate the model that decides from the model that does.

Four architecture patterns

  1. Orchestrator-worker (most common) — central orchestrator assigns to a variable pool of workers; results aggregate. The default.
  2. Critic-refiner loop — one agent produces, another critiques, repeat until a quality threshold. Always set max-iterations. (Same shape as evaluator-optimiser.)
  3. Hierarchical — a strategic orchestrator manages domain orchestrators, which manage workers. For large multi-domain workflows.
  4. Heterogeneous / mixed-model (“Claw Groups”) — one coordinator drives agents on any model (local, Claude, GPT) plus humans in the loop.

The seven guardrails

This is the most transferable part of the source — the difference between “works in testing” and “works at 3am unattended”:

  1. Max iterations per agent — hard loop limit before escalation.
  2. Session timeout — terminate and return partial results after N minutes.
  3. Structured output enforcement — force JSON; intermediate prose breaks downstream parsing.
  4. Failure isolation — a crashing sub-agent must not take down the orchestrator (wrap each, return a {status: failed} record).
  5. Retry with exponential backoff — absorb 429s and transient errors.
  6. Human-in-the-loop checkpoints — mandatory approval pauses for any swarm with write access (deploy, email, API mutations). The Agents Rule of Two applied to swarms.
  7. Cost monitoring — per-run token budgets; runaway loops surface as cost anomalies before quality failures.

When you actually need one

The most common mistake is reaching for a swarm before hitting the single-agent ceiling — the same warning as Multi-Agent Systems.

  • Stay single-agent when the task fits one context window (~under 50K tokens of real work), is sequential by nature, is still being prototyped, or finishes in under 10 minutes.
  • Reach for a swarm when there are >5 independent parallel subtasks, context overflow is genuine, you need different specialists at once, the task is too long to hold quality in one session, or you want an independent verifier.

Where it sits in the vault

See Also