multi-agent-patterns

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

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill multi-agent-patterns-lgj-jonathan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: multi-agent-patterns
Source: https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills/tree/main/context-engineering/skills/multi-agent-patterns
Command: npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill multi-agent-patterns-lgj-jonathan

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 patterns and coordination utilities for distributing work across multiple language model agents with isolated contexts. ## 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 inter-agent messaging, task decomposition, handoff protocols, weighted consensus voting, and circuit-breaker failure handling. - Framework Implementations: Reference LangGraph, AutoGen, and CrewAI code examples for building supervisor graphs, group chats, and role-based crews. - Use Case: When building a research system where a single agent's context overflows, deploy a supervisor that routes subtasks to specialized researcher, analyzer, and writer agents, each operating in a clean context. ## Quick Start Ask the AI to design a multi-agent research system using the supervisor pattern with context isolation and weighted consensus for fact verification.

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 user objectives into subtasks, routes them to specialized workers, and aggregates results. Constrain worker output schemas to prevent supervisor context saturation, and cap workers at 3-5 per supervisor.

What is the difference between supervisor and swarm agent architectures?

Supervisor architectures use a central coordinator that delegates to specialists, giving strict control but creating a bottleneck. Swarm architectures let any agent hand off control to any other peer, offering flexibility and no single point of failure at the cost of harder convergence.

LangGraph vs AutoGen vs CrewAI for multi-agent systems?

LangGraph uses graph-based state machines with explicit nodes and edges for deterministic workflows. AutoGen uses conversational GroupChat patterns for event-driven coordination. CrewAI uses role-based hierarchical crews for structured team processes.

How much more expensive are multi-agent systems than 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.

Why do multi-agent debates converge on wrong answers?

LLMs have an inherent bias toward agreement, so agents converge on agreeable rather than correct answers, and simple majority voting weights hallucinations equally with sound reasoning. Counter this with confidence-weighted voting and explicit adversarial roles.

When should I avoid using a multi-agent architecture?

Avoid multi-agent designs when a single agent's context window can hold all task-relevant information, or when subtasks do not benefit from isolation. Over-decomposition creates more coordination overhead than the task itself, and returns diminish past 3-5 agents.