Multi-Agent Architecture Best Practices
Ten practices for scoping, coordinating, and debugging multi-agent systems. Use them as a design rubric and a PR checklist for role graphs and handoff code.
Search across all documentation pages
Ten practices for scoping, coordinating, and debugging multi-agent systems. Use them as a design rubric and a PR checklist for role graphs and handoff code.
needs_human - with caps on retries and handoff depth.run_id, handoff_id, from, to, status, packet keys, budget remaining.Items 1-10 are the core multi-agent practices promised by the section. Items 11-15 extend them into production operations so the list stays useful after launch.
Host-enforced budgets and stop conditions across all loops. Everything else fails more safely when agents cannot run forever.
They are framework-agnostic. Choose topology and contracts first; then map onto LangGraph, CrewAI, OpenAI Agents SDK, Microsoft Agent Framework, or a custom host.
When one role, one trust level, and one tool belt complete the job with a short single-agent loop. Coordination tax is not free.
Same tools, near-identical prompts, full shared transcript, and no validated return status - only different display names.
Often the opposite: a cheap router and stronger specialists for hard work - or strong planner and cheap workers. Measure; do not assume.
Set a low hard cap for interactive products (often single digits). Research meshes may go deeper but still need progress tokens and watchdogs.
As first-class nodes with contracts (practice 9) and as owners of kill switches (practice 8's watchdog). Never only as an informal Slack side channel.
Handoff validation rate, depth histogram, budget-hit rate, duplicate artifact writes, route accuracy, and final task success.
Core practices stay. Add mutual auth, discovery (Agent Cards), and transport timeouts when peers cross runtimes.
Yes. Ship two-agent path with packets and budgets first; then schema CI, richer evals, and only later peer edges or fan-out.
Section close-out in the sidebar, agent ADRs, and PR templates that touch role graphs or handoff code.
Stack versions: Pins from the category manifest (verify at build): OpenRouter (~315+ models, July 2026 pricing/fees); LangGraph 1.0+; CrewAI 1.14+; Microsoft Agent Framework 1.0; Vercel AI SDK 6; Pydantic AI (latest); LlamaIndex (latest); OpenAI Agents SDK (latest + MCP); MCP (Linux Foundation governance); A2A (HTTP+SSE+JSON-RPC 2.0); Solana
@solana/web3.js+@solana/spl-token.
Reviewed by Chris St. John·Last updated Jul 16, 2026