# /multi-agent-patterns: Decide when multiple agents help and how to wire them

Source: https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering/multi-agent-patterns
Skill folder: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/tree/main/skills/multi-agent-patterns
Pack: Agent Skills for Context Engineering (https://trendhub.net/skills/muratcankoylan-agent-skills-for-context-engineering)
Works with: Claude Code (plugin marketplace), Cursor, Codex, Claude Code (single skill copy)

This skill frames sub-agents as a tool for isolating context, not for mimicking an org chart. It compares supervisor, swarm and hierarchical designs, explains how to pass context between agents, how to reach decisions without sycophantic agreement, and how to contain the token cost, bottlenecks and error cascades that multi-agent systems tend to create.

## When to use it

- A single agent's context is overflowing with history and tool output.
- A task splits into independent parts that could run in parallel.
- You are choosing a topology for a research or support agent system.

## How it works

1. **Justify the split**: Checks whether context limits, parallel subtasks or different tool sets really call for more than one agent.
2. **Choose a topology**: Picks supervisor for clear decomposition and oversight, swarm for open exploration, or hierarchy for layered planning.
3. **Pick an isolation mechanism**: Defaults to passing instructions, moves to shared files for shared state, and uses full context delegation only when needed.
4. **Guard coordination**: Uses weighted voting or debate with adversarial roles, validates outputs between agents and sets time limits.

## What it steers the agent away from

- Supervisors paraphrasing sub-agent answers and losing detail.
- Adding agents beyond three to five per supervisor.
- Downstream agents treating an upstream hallucination as fact.

## What it can touch

Instructions with pseudocode for handoffs and message forwarding; it does not run agents itself.

## Pairs well with

- `/filesystem-context`
- `/hosted-agents`
- `/tool-design`

## Questions

### How much more do multi-agent systems cost?

The skill advises budgeting for roughly fifteen times a single-agent baseline once coordination, retries and consensus rounds are counted.

### Does it cover specific frameworks?

It contrasts LangGraph, AutoGen and CrewAI briefly and keeps framework code in a separate reference file.
