multi-agent-patterns

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

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/NT-boop-star/BRMV-tract --skill multi-agent-patterns-nt-boop-star
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: multi-agent-patterns
Source: https://github.com/NT-boop-star/BRMV-tract/tree/main/antigravity/skills/multi-agent-patterns
Command: npx skills add https://github.com/NT-boop-star/BRMV-tract --skill multi-agent-patterns-nt-boop-star

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 LLM agents without introducing coordination overhead that negates the benefits. ## Core Features & Use Cases - Three Architecture Patterns: Implement supervisor/orchestrator, peer-to-peer swarm, and hierarchical agent structures with guidance on when each fits. - Coordination Utilities: Use the included Python module for agent messaging, task delegation, weighted consensus voting, handoff protocols, and circuit-breaker failure handling. - Framework References: Apply framework-specific implementations for LangGraph, AutoGen, and CrewAI from the references directory. - Use Case: When building a research system where a single agent's context overflows, use this Skill to design a supervisor that routes subtasks to specialized researcher, analyzer, and writer agents with isolated contexts and validated handoffs. ## Quick Start Design a multi-agent system with a supervisor coordinating specialized worker agents for my research workflow.

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

When should I use swarm architecture vs supervisor pattern?

Use supervisor patterns when tasks have clear decomposition and human oversight matters. Use swarm/peer-to-peer patterns when requirements emerge dynamically and sub-agents can respond directly to users, which eliminates telephone-game translation errors from supervisor paraphrasing.

How much more expensive are multi-agent systems than single agents?

Production data shows multi-agent systems cost approximately 15x the tokens of single-agent chat, while single agents with tools run about 4x baseline. Budget for 15x and treat lower costs as a bonus, since coordination overhead and retries add up.

Does this work with LangGraph, AutoGen, or CrewAI?

Yes, the references directory includes framework-specific implementations. LangGraph uses graph-based state machines with explicit nodes and edges, AutoGen uses conversational GroupChat patterns, and CrewAI uses role-based hierarchical crew structures.

Why do multi-agent debates converge on wrong answers?

LLMs have an inherent bias toward agreement, causing sycophantic consensus where agents agree to be agreeable rather than correct. Counter this with weighted voting by confidence, explicit adversarial roles, and requiring agents to state disagreements before convergence.

What are the limitations of adding more agents to a system?

Adding agents past 3-5 shows diminishing returns because communication channels grow quadratically and coordination overhead exceeds parallelization gains. Start with the minimum viable agents and add only when clear context isolation benefits exist.