multi-agent-patterns

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

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill multi-agent-patterns-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: multi-agent-patterns
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/assignment-generator/antigravity-skills-main/antigravity-skills-main/skills/multi-agent-patterns
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill multi-agent-patterns-virahitvin8

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 poisoning, and degrade on complex tasks. This Skill guides the design of multi-agent architectures that distribute work across isolated context windows while avoiding coordination pitfalls like supervisor bottlenecks, sycophantic consensus, and error propagation cascades. ## Core Features & Use Cases - Architecture Pattern Selection: Choose between supervisor/orchestrator, peer-to-peer swarm, and hierarchical patterns based on coordination needs rather than organizational metaphor. - Coordination Building Blocks: Use the included Python utilities for message passing, handoff protocols, weighted consensus voting, and circuit-breaker failure handling. - Framework Implementation Guidance: Reference LangGraph, AutoGen, and CrewAI code examples when implementing a specific pattern. - Use Case: When building a research pipeline where a single agent's context overflows, use this Skill to decompose the work into researcher, analyzer, fact-checker, and writer agents with explicit handoff protocols and weighted consensus for final decisions. ## Quick Start Ask the AI to design a multi-agent architecture for a research workflow using the supervisor pattern with explicit handoff protocols and failure handling.

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

When should I use multi-agent architecture instead of a single agent?

Use multi-agent designs when a single context window cannot hold all task-relevant information, when subtasks run in parallel, or when subtasks need different tools and system prompts. Avoid them for simple tasks where coordination overhead exceeds the benefit.

LangGraph vs AutoGen vs CrewAI for multi-agent systems?

LangGraph uses graph-based state machines with explicit nodes and edges, AutoGen uses conversational GroupChat patterns, and CrewAI uses role-based hierarchical crews. Choose based on whether you need explicit state control, event-driven conversation, or role-based processes.

Why do multi-agent systems cost so many tokens?

Multi-agent runs can cost roughly 15x a single-agent baseline due to coordination messages, retries, and consensus rounds. Budget for this multiplier and measure against single-agent baselines before assuming extra agents improve outcomes.

How do I prevent agents from agreeing on wrong answers?

Avoid simple majority voting, which treats hallucinations equally with sound reasoning. Use confidence-weighted voting, structured debate protocols with adversarial critique, and require agents to state disagreements before convergence is allowed.

What are the limitations of supervisor orchestrator patterns?

The supervisor context becomes a bottleneck as worker count grows, supervisor failures cascade to all workers, and paraphrasing sub-agent responses causes telephone game information loss. Use forward_message tools or swarm handoffs to let workers respond directly.