Skip to Content
Solution PlaysPlay 22: Play 22 β€” Multi-Agent Swarm 🐝

Play 22 β€” Multi-Agent Swarm 🐝

Decentralized agent teams with bidding, consensus voting, and parallel execution.

Unlike Play 07 (supervisor pattern), the swarm has no single coordinator. Agents bid for tasks competitively, execute in parallel, and vote on the best result through consensus. Self-healing: when an agent fails, the swarm redistributes work automatically.

Quick Start

cd solution-plays/22-multi-agent-swarm az deployment group create -g $RG -f infra/main.bicep -p infra/parameters.json code . # Use @builder for swarm topology, @reviewer for consensus audit, @tuner for swarm size

How It Differs from Play 07 (Supervisor)

AspectPlay 07 (Supervisor)Play 22 (Swarm)
CoordinationCentral supervisorAgents bid and vote
Task assignmentTop-down delegationCompetitive bidding
Quality controlSupervisor aggregatesConsensus voting
Failure handlingSupervisor reassignsSelf-healing
Single point of failureYes (supervisor)No

Architecture

πŸ“ See architecture.md for full data flow, service roles, security architecture, and scaling tables.

Key Metrics

  • Consensus: β‰₯80% Β· Bidding accuracy: β‰₯85% Β· Parallel speedup: β‰₯2x Β· Cost/task: <$0.15

DevKit (Swarm-Focused)

PrimitiveWhat It Does
3 agentsBuilder (swarm topology/bidding/consensus), Reviewer (vote quality/dedup), Tuner (swarm size/model mix/cost)
3 skillsDeploy (106 lines), Evaluate (103 lines), Tune (102 lines)
4 prompts/deploy (swarm infra), /test (parallel execution), /review (consensus audit), /evaluate (swarm efficiency)

Cost

πŸ’° See cost.json for full pricing breakdown with SKUs, notes, and optimization tips.

ServicePurposeDevProdEnterprise
Azure OpenAISwarm supervisor routing + specialist reasoning$100$600$2,200
Container AppsSupervisor + specialist agent containers$20$200$600
Service BusAgent-to-agent async messaging + dead-letter$10$50$200
Cosmos DBSwarm state, task ledger, conversation memory$8$80$400
Key VaultAgent credentials, API keys$1$3$10
App InsightsDistributed tracing across swarm$0$35$140
Log AnalyticsCentralized logging, conflict audits$0$25$80
Content SafetyPer-agent output moderation$0$25$80
Total$139$1,018$3,710

πŸ“– Full docs Β· 🌐 frootai.dev/solution-plays/22-multi-agent-swarmΒ 

FAI Manifest

FieldValue
Play22-multi-agent-swarm
Version1.0.0
KnowledgeO2-AI-Agents, O1-Semantic-Kernel, O3-MCP-Tools-Functions, T3-Production-Patterns
WAF Pillarssecurity, reliability, cost-optimization, performance-efficiency, operational-excellence
Groundednessβ‰₯ 90%
Safety0 violations max
Last updated on