This article explores an alternative to traditional supervisor-led multi-agent systems, introducing a pattern for self-organizing clusters that coordinate through shared state rather than a central orchestrator. It highlights how this decentralized approach, implemented with Kiro CLI agents on AWS S3, is suitable for tasks requiring emergent decomposition, diversity of approaches, and resilience to agent failures. The discussion delves into architectural trade-offs, ideal use cases, and different coordination algorithms like amorphous, mesh, and swarm.
Read original on AWS Architecture BlogTraditional multi-agent systems often rely on a central supervisor to break down tasks, distribute them to subagents, and aggregate results. While this provides predictable behavior and central control, it introduces a single point of failure and a bottleneck limited by the supervisor's context window. The article proposes a decentralized alternative where agents coordinate by converging through shared state.
The core of this pattern is that coordination logic resides within a shared environment, typically a simple store like an S3 bucket, rather than a dedicated orchestrator or message bus. Each independent agent reads a 'direction' (the goal), observes a bounded set of peer logs, makes a contribution, and appends to its own log. This log entry serves as the entire coordination message, allowing other agents to independently react and adjust their behavior. This design significantly improves resilience, as agents can join, fail, and leave without impacting the overall cluster operation.
This self-organizing pattern is particularly well-suited for workloads that benefit from many quasi-independent contributions, emergent decomposition, and diversity of approaches, such as reviewing large codebases or generating design alternatives. It offers high parallelism and fault tolerance, as the failure of one agent does not halt the entire system. However, it trades off strict ordering and central verification, which are strengths of supervisor-led systems, meaning errors might propagate more widely before final verification.
| Workload Profile | Better Fit |
|---|
The Kiro-flock reference implementation uses AWS EC2 instances for agents and Amazon S3 as the shared environment. A control plane built with Amazon API Gateway and AWS Lambda manages cluster lifecycle, while Amazon CloudWatch collects metrics and Amazon Bedrock assists with post-run analysis. Each agent runs a fresh Kiro CLI session per iteration to prevent state drift, ensuring decisions are based on the latest shared information.
Choosing the Right Multi-Agent Architecture
The choice between a supervisor-led and a self-organizing multi-agent system depends heavily on the task. If strict sequential execution, central control, and per-step verification are critical, a supervisor is ideal. For emergent solutions, high parallelism, and resilience to individual agent failures, a self-organizing cluster is more appropriate.
The mechanism by which agents decide "whose work do I read?" defines the coordination algorithm, with three main types demonstrated by kiro-flock:
{"ts":"2026-07-21T14:12:42Z","iteration":0,"action":"wrote discussion-failure-modes.md","result":"covered 5 failure modes (premature convergence, echo chambers, hot-spot collapse, idle cascades, stale reads) with mitigations","next_intent":"read neighbours next iteration, look for topics to challenge or extend"}