multi-agent-patterns

Designs and implements multi-agent architectures with supervisor, swarm, and hierarchical coordination patterns.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/whatswithavi/Ecchelon_project --skill multi-agent-patterns-whatswithavi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: multi-agent-patterns
Source: https://github.com/whatswithavi/Ecchelon_project/tree/main/.agent/skills/multi-agent-patterns
Command: npx skills add https://github.com/whatswithavi/Ecchelon_project --skill multi-agent-patterns-whatswithavi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Single-agent systems hit context window limits, suffer from context degradation, and cannot parallelize work across independent subtasks. This Skill provides architectural guidance and reusable Python building blocks for distributing work across multiple agents with isolated contexts, explicit coordination protocols, and failure handling. ## Core Features & Use Cases - Architecture Pattern Selection: Choose between supervisor/orchestrator, peer-to-peer swarm, and hierarchical patterns based on coordination needs, with documented trade-offs for each. - Coordination Utilities: Use the included Python module for message passing, task decomposition, worker routing, handoff protocols, weighted consensus voting, and circuit-breaker failure handling. - Framework References: Implement patterns in LangGraph, AutoGen, or CrewAI using the framework-specific code examples in the references directory. - Use Case: When building a research system where a supervisor delegates search, analysis, fact-checking, and writing to specialized agents, use this Skill to design the routing, consensus, and error-recovery logic. ## Quick Start Ask the AI to design a multi-agent system using the supervisor pattern with specialized worker agents and weighted consensus for decision-making.

Frequently Asked Questions about multi-agent-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a multi-agent system with a supervisor pattern?▼

Deploy a central supervisor agent that decomposes tasks into subtasks, routes them to specialized workers based on capabilities, and aggregates results. Constrain worker output schemas and use checkpointing to prevent the supervisor context from becoming a bottleneck.

What is the difference between supervisor and swarm agent architectures?▼

Supervisor patterns use a central coordinator that delegates to workers, giving strict control but creating a single point of failure. Swarm patterns let agents hand off control directly to each other, offering flexibility but requiring explicit convergence constraints.

How much more expensive are multi-agent systems compared to single agents?▼

Production data shows multi-agent systems cost approximately 15x the tokens of a single-agent chat, versus roughly 4x for a single agent with tools. Budget for coordination overhead, retries, and consensus rounds, not just per-agent costs.

How do I prevent agents from agreeing on wrong answers in debates?▼

Avoid simple majority voting, which treats hallucinations equally with sound reasoning. Use weighted voting based on confidence and expertise, assign explicit adversarial roles, and require agents to state disagreements before allowing convergence.

When should I not use a multi-agent architecture?▼

Avoid multi-agent designs when a single agent's context window can hold all task-relevant information, when subtasks cannot run in parallel, or when coordination overhead exceeds the work itself. Over-decomposition creates more handoff cost than value.

How do I handle agent failures in a multi-agent workflow?▼

Use retry logic with exponential backoff and circuit breakers that temporarily disable failing agents after repeated errors. Validate outputs before passing them downstream, and reroute tasks to backup agents when circuit breakers activate.