multi-agent-patterns

Design and implement multi-agent architectures using supervisor, swarm, and hierarchical coordination patterns.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/Syedyasir001/RVULibPass --skill multi-agent-patterns-syedyasir001
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: multi-agent-patterns
Source: https://github.com/Syedyasir001/RVULibPass/tree/main/.agent/skills/library/multi-agent-patterns
Command: npx skills add https://github.com/Syedyasir001/RVULibPass --skill multi-agent-patterns-syedyasir001

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 attention degradation, and cannot parallelize work across independent subtasks. This Skill provides architectural patterns and reusable coordination code for distributing work across multiple LLM agents without losing control or fidelity. ## Core Features & Use Cases - Three Architecture Patterns: Guidance for choosing between supervisor/orchestrator, peer-to-peer swarm, and hierarchical patterns based on coordination needs rather than organizational metaphor. - Coordination Utilities: A Python module providing message buses, supervisor task delegation, handoff protocols, weighted consensus voting, and circuit-breaker failure handling. - Framework References: Implementation examples for LangGraph, AutoGen, and CrewAI covering supervisors, swarms, context isolation, and checkpointing. - Use Case: When building a research pipeline where a supervisor delegates search, analysis, and writing to specialized agents, use this Skill to structure handoffs, prevent the telephone game problem, and budget for the roughly 15x token cost of multi-agent execution. ## Quick Start Ask the agent to design a multi-agent system with a supervisor coordinating researcher and writer agents using the coordination utilities in this Skill.

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?▼

Create a central supervisor agent that decomposes tasks into subtasks, registers workers by capability, and routes work through a message channel. The SupervisorAgent class in the coordination script handles worker selection, task assignment, and result aggregation.

What is the difference between supervisor and swarm multi-agent patterns?▼

Supervisor patterns centralize control in one coordinator that delegates to specialists, while swarm patterns let any agent hand off control to any other through explicit transfer functions. Choose supervisors for clear task decomposition and swarms for flexible, emergent exploration.

How do I prevent the telephone game problem between agents?▼

Implement a forward_message tool that lets sub-agents respond directly to users instead of routing through supervisor synthesis. Alternatively, use filesystem-based shared state so agents read original data rather than paraphrased summaries.

Does this work with LangGraph, AutoGen, or CrewAI?▼

Yes, the references document includes framework-specific implementations: LangGraph state graphs for supervisors and swarms, AutoGen GroupChat for conversational coordination, and CrewAI-style hierarchical manager-worker delegation.

Why do multi-agent systems cost so much more than single agents?▼

Production data shows multi-agent systems run at roughly 15x the token cost of single-agent chat due to coordination overhead, retries, and consensus rounds. Budget accordingly and validate that parallelization actually saves wall-clock time.

When should I avoid using multiple agents?▼

Avoid multi-agent designs when a single context window can hold the task, when subtasks are not truly parallelizable, or when coordination overhead exceeds the work itself. Adding agents past 3-5 shows diminishing returns and quadratic communication growth.