You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fc2bacf
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: content/en/posts/2026-06-21-agent-architecture-design/index.md
+20-6Lines changed: 20 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -260,12 +260,26 @@ The effectiveness of a Multi-Agent System depends heavily on the lead agent's ta
260
260
261
261
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.
262
262
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
+
263
270
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.
264
271
265
272
### Shared State
266
273
267
274
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.
268
275
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
+
269
283
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.
270
284
271
285
### Coordination Boundaries
@@ -276,7 +290,7 @@ In a software-vulnerability experiment, Anthropic launched **45 Agents**, each i
276
290
277
291
{{< figure
278
292
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))"
280
294
align="center"
281
295
width="100%"
282
296
>}}
@@ -287,7 +301,7 @@ Shared code presents a different challenge because each edit immediately changes
287
301
288
302
{{< figure
289
303
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))"
291
305
align="center"
292
306
width="100%"
293
307
>}}
@@ -322,7 +336,7 @@ Viewing it alongside Subagents and Agent Teams, the three represent different or
322
336
323
337
{{< figure
324
338
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))"
326
340
align="center"
327
341
width="100%"
328
342
>}}
@@ -333,7 +347,7 @@ Anthropic summarizes several common workflow patterns. When Claude generates a h
333
347
334
348
{{< figure
335
349
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))"
337
351
align="center"
338
352
width="100%"
339
353
>}}
@@ -355,7 +369,7 @@ The preceding sections introduced increasingly complex modes of organization, bu
355
369
356
370
{{< figure
357
371
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))"
359
373
align="center"
360
374
width="100%"
361
375
>}}
@@ -365,7 +379,7 @@ Several key findings:
365
379
366
380
{{< figure
367
381
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))"
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
+
263
270
Message Bus 适合安全告警、异步任务和不断增加新 Agent 类型的事件驱动系统。它的代价是执行链路更难追踪:router 分类错误、漏投事件或下游订阅配置错误时,系统可能没有显式崩溃,却静默地遗漏工作。因此需要为事件链保留完整、可关联的日志,并验证 LLM router 的路由结果。
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))"
@@ -276,7 +290,7 @@ Shared State 适合协作研究和共同维护知识库,但去掉中心协调
276
290
277
291
{{< figure
278
292
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))"
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))"
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))"
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))"
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))"
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))"
0 commit comments