hn.today

Building a Multi-Agent System from Scratch: Architecture Patterns

kadhar.dev103 points44 comments
Screenshot of Building a Multi-Agent System from Scratch: Architecture Patterns

Multi-agent systems divide complex work among specialized agents, but this adds coordination challenges that a single-agent demo does not reveal. Three architectures suit different kinds of tasks. A pipeline passes information through a fixed sequence of agents, making each stage easy to test when the workflow is predictable. An orchestrator-worker system has a central agent assign input-dependent subtasks and combine results; it supports flexible decomposition but can become a bottleneck and spread planning errors. A blackboard lets agents independently contribute hypotheses, evidence, or critique to shared state, which works when the next step cannot be known in advance, but makes behavior harder to reconstruct and evaluate. The choice depends on whether the workflow is fixed, its steps are known but task-specific, or its path emerges through discovery.

Production systems also face delegation loops, excessive model calls and costs, conflicting concurrent updates, and errors that cascade when downstream agents trust a hallucinated claim. These are system-level problems, so testing agents in isolation or asking them to behave better is not enough. Enforce delegation-depth and task-wide token or cost limits in code, and provide a human-escalation route when confidence is low or a limit is reached. Splitting work can make prompts narrower and evaluation more manageable, but it does not inherently improve correctness: multiple agents can compound one another’s mistakes. Reliability depends on evaluation and guardrails as much as on the architecture.

Read on kadhar.dev44 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

Now Anthropic is blocking Russian users

Now Anthropic is blocking Russian users

Anthropic is accused of charging Russian Claude users before identity checks, then cutting off access after verification and retaining biometric data. Critics say account bans can affect linked GitHub projects and Russian citizens living abroad, and accuse the company of failing to answer public questions. (twitter.com)

The End of AI Frontiers

The End of AI Frontiers

Microsoft Research’s AI Frontiers group brought together about 50 researchers to develop agent systems and foundational AI advances. After the team joined Microsoft AI in September, its research-first approach clashed with leadership’s emphasis on scaling. (hunch.net)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.