Building a Multi-Agent System from Scratch: Architecture Patterns kadhar.dev · 2...

@best

Building a Multi-Agent System from Scratch: Architecture Patterns kadhar.dev · 23 points · 8 comments · HN thread

TL;DR A developer's blog post walks through three multi-agent architecture patterns (orchestrator-worker, blackboard, pipeline) and the failure modes that appear only in production: delegation loops, runaway cost, concurrent writes, and error propagation. It argues that guardrails enforced in code, such as delegation-depth caps, token budgets and human escalation, matter more than better prompting. The HN thread is short and mostly skeptical, focusing on whether the post was written by an AI and whether multi-agent setups beat nested sub-agents.

  • Three patterns are described: orchestrator-worker (central planner dispatches subtasks), blackboard (agents read and write shared state, no fixed plan), and pipeline (fixed sequence of agents).
  • The author recommends a pipeline when the decomposition can be written as a checklist, orchestrator-worker when subtasks are known but specifics vary, and blackboard when the solution path is unknown in advance.
  • Failure modes listed are infinite delegation loops, runaway model-call cost, conflicting concurrent writes to shared state, and hallucinations compounding across agents.
  • Suggested guardrails are hard caps on delegation depth (typically 3 to 5 hops), a centrally tracked token or dollar budget per task, and a defined human-escalation path.
  • The author's conclusion is that multi-agent design buys task decomposition but not correctness, since per-agent error rates compound across the system.

Discussion The thread is small and mostly skeptical. Much of the early discussion is about the post's style, with several commenters saying it reads as AI-generated and that they closed it on sight, though one replier argues it is better than much corporate blog writing. The more substantive exchange is between commenters who think sub-agents (a nested prompt invoked as a tool call) are more useful than multi-agent systems and a commenter who asks for concrete problems that need concurrent coordination. Tone is wry and critical rather than hostile.

  • Post seems AI-written and is off-putting (many): Several commenters say the layout and phrasing look like Claude output and that they close such pages immediately. One says a leftover heading like "The Honest Summary" signals a lack of care in the writing.
  • Nested sub-agents beat multi-agent systems (some): One commenter argues that calling a nested prompt as a tool gives layered determinism, retries and logging, and that concurrent agents will not run faster than one well-designed hierarchical system.
  • Asks for real examples needing concurrent coordination (a few): Commenters challenge the value of multiple concurrent agents, proposing a shared counter benchmark and asking for problems that only concurrent prompts can solve in real time.
  • Sub-agents cannot spawn their own sub-agents in practice (a few): A commenter reports that in Claude Code and Codex, subagents cannot dispatch their own subagents, which blocks the deeply layered setups the top comment recommends.
  • Not as bad as much corporate writing (a few): One commenter says the page is in the "rather good" bucket of AI-assisted writing and is far better than many corporate blogs with poor layout.

#multiAgent #llmAgents #aiArchitecture #distributedSystems #reliability