Skip to content

Commit fc2bacf

Browse files
committed
Add multi-agent coordination diagrams
1 parent 42e4842 commit fc2bacf

6 files changed

Lines changed: 40 additions & 12 deletions

File tree

‎content/en/posts/2026-06-21-agent-architecture-design/index.md‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,26 @@ The effectiveness of a Multi-Agent System depends heavily on the lead agent's ta
260260

261261
When a workflow is driven by dynamic events and conditional logic accumulates in the central coordinator, a **Message Bus** ([Phillips, 2026](https://claude.com/blog/multi-agent-coordination-patterns)) makes routing explicit and extensible. Agents publish events and subscribe to relevant topics, while a router delivers matching messages; new Agent types can join existing topics without rewiring connections among the existing Agents.
262262

263+
{{< figure
264+
src="message-bus.png"
265+
caption="Fig. 16. Message Bus pattern: Agents publish events to a shared bus and subscribe to relevant topics, remaining decoupled from one another. (Image source: [Phillips, 2026](https://claude.com/blog/multi-agent-coordination-patterns))"
266+
align="center"
267+
width="100%"
268+
>}}
269+
263270
Message Bus works well for security alerts, asynchronous tasks, and event-driven systems whose Agent ecosystem is likely to grow. The trade-off is harder tracing: if the router misclassifies or drops an event, or a downstream subscription is misconfigured, work may be omitted silently without a crash. Event chains therefore need complete, correlated logs, and the results of LLM-based routing should be validated.
264271

265272
### Shared State
266273

267274
When Agents need to build on one another's intermediate findings rather than respond to discrete events, they can use **Shared State** ([Phillips, 2026](https://claude.com/blog/multi-agent-coordination-patterns)). All Agents directly read and write the same database, file system, or document. With no Orchestrator or router deciding where each finding goes, the shared store itself becomes an evolving collaboration context.
268275

276+
{{< figure
277+
src="shared-state.png"
278+
caption="Fig. 17. Shared State pattern: autonomous Agents read from and write to a common persistent store, making findings immediately available to the other Agents. (Image source: [Phillips, 2026](https://claude.com/blog/multi-agent-coordination-patterns))"
279+
align="center"
280+
width="100%"
281+
>}}
282+
269283
Shared State works well for collaborative research and shared knowledge bases, but removing the central coordinator can also lead to duplicate work, conflicting writes, and reactive loops. Locking, versioning, or partitioning can mitigate concurrent writes; behavioral loops require explicit termination conditions, such as a time budget, several rounds without new findings, or a designated Agent deciding that the available information is sufficient. In short, use Message Bus when discrete events trigger downstream actions, and Shared State when findings must accumulate and be revisited.
270284

271285
### Coordination Boundaries
@@ -276,7 +290,7 @@ In a software-vulnerability experiment, Anthropic launched **45 Agents**, each i
276290

277291
{{< figure
278292
src="multi-agent-vulnerability-discovery.png"
279-
caption="Fig. 16. Coordinated swarm findings (solid curves) versus independently partitioned agents (stars); dashed curves show overlap, while the dotted Mythos Preview curve keeps only findings inside the baseline's core directories. Search scopes and token budgets are not matched. (Image source: [Anthropic, 2026e](https://www.anthropic.com/research/multiagent-systems))"
293+
caption="Fig. 18. Coordinated swarm findings (solid curves) versus independently partitioned agents (stars); dashed curves show overlap, while the dotted Mythos Preview curve keeps only findings inside the baseline's core directories. Search scopes and token budgets are not matched. (Image source: [Anthropic, 2026e](https://www.anthropic.com/research/multiagent-systems))"
280294
align="center"
281295
width="100%"
282296
>}}
@@ -287,7 +301,7 @@ Shared code presents a different challenge because each edit immediately changes
287301

288302
{{< figure
289303
src="multi-agent-code-coordination.png"
290-
caption="Fig. 17. End-of-run merged-PR fraction and median-agent code sharing for 12-hour game-building swarms, averaged across three prompt types. These are coordination proxies rather than quality scores, and high merge rates can reflect file isolation instead of collaboration. (Image source: [Anthropic, 2026e](https://www.anthropic.com/research/multiagent-systems))"
304+
caption="Fig. 19. End-of-run merged-PR fraction and median-agent code sharing for 12-hour game-building swarms, averaged across three prompt types. These are coordination proxies rather than quality scores, and high merge rates can reflect file isolation instead of collaboration. (Image source: [Anthropic, 2026e](https://www.anthropic.com/research/multiagent-systems))"
291305
align="center"
292306
width="100%"
293307
>}}
@@ -322,7 +336,7 @@ Viewing it alongside Subagents and Agent Teams, the three represent different or
322336

323337
{{< figure
324338
src="compare-agent-teams-dynamic-workflows.png"
325-
caption="Fig. 18. Claude Code parallelizes work in several ways: subagents delegate a side task in their own context and return only a summary, agent teams coordinate through a shared task list with direct messaging, and dynamic workflows script and cross-check many subagents for jobs too big to coordinate one turn at a time. (Image source: [Cat Wu on X](https://x.com/_catwu/status/2060054180379689074))"
339+
caption="Fig. 20. Claude Code parallelizes work in several ways: subagents delegate a side task in their own context and return only a summary, agent teams coordinate through a shared task list with direct messaging, and dynamic workflows script and cross-check many subagents for jobs too big to coordinate one turn at a time. (Image source: [Cat Wu on X](https://x.com/_catwu/status/2060054180379689074))"
326340
align="center"
327341
width="100%"
328342
>}}
@@ -333,7 +347,7 @@ Anthropic summarizes several common workflow patterns. When Claude generates a h
333347

334348
{{< figure
335349
src="six-workflow-patterns.png"
336-
caption="Fig. 19. Six common dynamic workflow patterns in Claude Code: classify-and-act, fan-out-and-synthesize, adversarial verification, generate-and-filter, tournament, and loop until done. (Image source: [Anthropic, 2026d](https://claude.com/blog/a-harness-for-every-task-dynamic-workflows-in-claude-code))"
350+
caption="Fig. 21. Six common dynamic workflow patterns in Claude Code: classify-and-act, fan-out-and-synthesize, adversarial verification, generate-and-filter, tournament, and loop until done. (Image source: [Anthropic, 2026d](https://claude.com/blog/a-harness-for-every-task-dynamic-workflows-in-claude-code))"
337351
align="center"
338352
width="100%"
339353
>}}
@@ -355,7 +369,7 @@ The preceding sections introduced increasingly complex modes of organization, bu
355369

356370
{{< figure
357371
src="agent-archs.png"
358-
caption="Fig. 20. The agent system architectures studied: a single-agent baseline alongside several multi-agent coordination topologies. (Image source: [Kim et al., 2025](https://arxiv.org/abs/2512.08296))"
372+
caption="Fig. 22. The agent system architectures studied: a single-agent baseline alongside several multi-agent coordination topologies. (Image source: [Kim et al., 2025](https://arxiv.org/abs/2512.08296))"
359373
align="center"
360374
width="100%"
361375
>}}
@@ -365,7 +379,7 @@ Several key findings:
365379

366380
{{< figure
367381
src="agent-scaling.png"
368-
caption="Fig. 21. Multi-agent coordination helps on parallelizable tasks but hurts on sequential ones, and the benefit shrinks as the single-agent baseline grows stronger (capability saturation). (Image source: [Kim et al., 2025](https://arxiv.org/abs/2512.08296))"
382+
caption="Fig. 23. Multi-agent coordination helps on parallelizable tasks but hurts on sequential ones, and the benefit shrinks as the single-agent baseline grows stronger (capability saturation). (Image source: [Kim et al., 2025](https://arxiv.org/abs/2512.08296))"
369383
align="center"
370384
width="100%"
371385
>}}
121 KB
Loading
96.6 KB
Loading

‎content/zh/posts/2026-06-21-agent-architecture-design/index.md‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,26 @@ Multi-Agent Systems 的效果很大程度取决于 lead agent 的任务拆解能
260260

261261
当工作流由动态事件驱动、中心协调者的条件分支越来越复杂时,可以引入 **Message Bus(消息总线)**([Phillips, 2026](https://claude.com/blog/multi-agent-coordination-patterns)):Agent 只负责 publish 事件或 subscribe 自己关心的 topic,由 router 完成消息分发,新 Agent 可以接入已有 topic,而不需要重写其他 Agent 的连接关系。
262262

263+
{{< figure
264+
src="message-bus.png"
265+
caption="Fig. 16. Message Bus pattern: Agents publish events to a shared bus and subscribe to relevant topics, remaining decoupled from one another. (Image source: [Phillips, 2026](https://claude.com/blog/multi-agent-coordination-patterns))"
266+
align="center"
267+
width="100%"
268+
>}}
269+
263270
Message Bus 适合安全告警、异步任务和不断增加新 Agent 类型的事件驱动系统。它的代价是执行链路更难追踪:router 分类错误、漏投事件或下游订阅配置错误时,系统可能没有显式崩溃,却静默地遗漏工作。因此需要为事件链保留完整、可关联的日志,并验证 LLM router 的路由结果。
264271

265272
### Shared State
266273

267274
如果 Agent 不是依次响应事件,而是需要持续利用彼此的中间发现,可以改用 **Shared State(共享状态)**([Phillips, 2026](https://claude.com/blog/multi-agent-coordination-patterns))。所有 Agent 直接读写同一个数据库、文件系统或文档,不再由 orchestrator 或 router 决定信息应该传给谁;共享存储本身成为持续演化的协作上下文。
268275

276+
{{< figure
277+
src="shared-state.png"
278+
caption="Fig. 17. Shared State pattern: autonomous Agents read from and write to a common persistent store, making findings immediately available to the other Agents. (Image source: [Phillips, 2026](https://claude.com/blog/multi-agent-coordination-patterns))"
279+
align="center"
280+
width="100%"
281+
>}}
282+
269283
Shared State 适合协作研究和共同维护知识库,但去掉中心协调者也会带来重复工作、矛盾写入和 reactive loop。并发写入可以用锁、版本控制或分区缓解;行为层面的循环则必须依靠明确的停止条件,例如时间预算、连续若干轮没有新发现,或由指定 Agent 判断信息已经充分。简而言之,离散事件触发后续动作时使用 Message Bus;信息需要持续积累并被反复读取时使用 Shared State。
270284

271285
### 协调边界
@@ -276,7 +290,7 @@ Shared State 适合协作研究和共同维护知识库,但去掉中心协调
276290

277291
{{< figure
278292
src="multi-agent-vulnerability-discovery.png"
279-
caption="Fig. 16. Coordinated swarm findings (solid curves) versus independently partitioned agents (stars); dashed curves show overlap, while the dotted Mythos Preview curve keeps only findings inside the baseline's core directories. Search scopes and token budgets are not matched. (Image source: [Anthropic, 2026e](https://www.anthropic.com/research/multiagent-systems))"
293+
caption="Fig. 18. Coordinated swarm findings (solid curves) versus independently partitioned agents (stars); dashed curves show overlap, while the dotted Mythos Preview curve keeps only findings inside the baseline's core directories. Search scopes and token budgets are not matched. (Image source: [Anthropic, 2026e](https://www.anthropic.com/research/multiagent-systems))"
280294
align="center"
281295
width="100%"
282296
>}}
@@ -287,7 +301,7 @@ Agent swarm 使用了约四倍的 Token,并扩展到了更多代码目录;
287301

288302
{{< figure
289303
src="multi-agent-code-coordination.png"
290-
caption="Fig. 17. End-of-run merged-PR fraction and median-agent code sharing for 12-hour game-building swarms, averaged across three prompt types. These are coordination proxies rather than quality scores, and high merge rates can reflect file isolation instead of collaboration. (Image source: [Anthropic, 2026e](https://www.anthropic.com/research/multiagent-systems))"
304+
caption="Fig. 19. End-of-run merged-PR fraction and median-agent code sharing for 12-hour game-building swarms, averaged across three prompt types. These are coordination proxies rather than quality scores, and high merge rates can reflect file isolation instead of collaboration. (Image source: [Anthropic, 2026e](https://www.anthropic.com/research/multiagent-systems))"
291305
align="center"
292306
width="100%"
293307
>}}
@@ -322,7 +336,7 @@ Dynamic Workflows 要解决的,正是长程任务在单一上下文中反复
322336

323337
{{< figure
324338
src="compare-agent-teams-dynamic-workflows.png"
325-
caption="Fig. 18. Claude Code parallelizes work in several ways: subagents delegate a side task in their own context and return only a summary, agent teams coordinate through a shared task list with direct messaging, and dynamic workflows script and cross-check many subagents for jobs too big to coordinate one turn at a time. (Image source: [Cat Wu on X](https://x.com/_catwu/status/2060054180379689074))"
339+
caption="Fig. 20. Claude Code parallelizes work in several ways: subagents delegate a side task in their own context and return only a summary, agent teams coordinate through a shared task list with direct messaging, and dynamic workflows script and cross-check many subagents for jobs too big to coordinate one turn at a time. (Image source: [Cat Wu on X](https://x.com/_catwu/status/2060054180379689074))"
326340
align="center"
327341
width="100%"
328342
>}}
@@ -333,7 +347,7 @@ Anthropic 总结了几种常见的 workflow pattern。Claude 在运行时生成
333347

334348
{{< figure
335349
src="six-workflow-patterns.png"
336-
caption="Fig. 19. Six common dynamic workflow patterns in Claude Code: classify-and-act, fan-out-and-synthesize, adversarial verification, generate-and-filter, tournament, and loop until done. (Image source: [Anthropic, 2026d](https://claude.com/blog/a-harness-for-every-task-dynamic-workflows-in-claude-code))"
350+
caption="Fig. 21. Six common dynamic workflow patterns in Claude Code: classify-and-act, fan-out-and-synthesize, adversarial verification, generate-and-filter, tournament, and loop until done. (Image source: [Anthropic, 2026d](https://claude.com/blog/a-harness-for-every-task-dynamic-workflows-in-claude-code))"
337351
align="center"
338352
width="100%"
339353
>}}
@@ -355,7 +369,7 @@ Anthropic 总结了几种常见的 workflow pattern。Claude 在运行时生成
355369

356370
{{< figure
357371
src="agent-archs.png"
358-
caption="Fig. 20. The agent system architectures studied: a single-agent baseline alongside several multi-agent coordination topologies. (Image source: [Kim et al., 2025](https://arxiv.org/abs/2512.08296))"
372+
caption="Fig. 22. The agent system architectures studied: a single-agent baseline alongside several multi-agent coordination topologies. (Image source: [Kim et al., 2025](https://arxiv.org/abs/2512.08296))"
359373
align="center"
360374
width="100%"
361375
>}}
@@ -365,7 +379,7 @@ Anthropic 总结了几种常见的 workflow pattern。Claude 在运行时生成
365379

366380
{{< figure
367381
src="agent-scaling.png"
368-
caption="Fig. 21. Multi-agent coordination helps on parallelizable tasks but hurts on sequential ones, and the benefit shrinks as the single-agent baseline grows stronger (capability saturation). (Image source: [Kim et al., 2025](https://arxiv.org/abs/2512.08296))"
382+
caption="Fig. 23. Multi-agent coordination helps on parallelizable tasks but hurts on sequential ones, and the benefit shrinks as the single-agent baseline grows stronger (capability saturation). (Image source: [Kim et al., 2025](https://arxiv.org/abs/2512.08296))"
369383
align="center"
370384
width="100%"
371385
>}}
121 KB
Loading
96.6 KB
Loading

0 commit comments

Comments
 (0)