multi-agent-patterns
What it does
This skill explains when a task needs several AI agents and how to arrange them, such as a supervisor, a swarm or explicit handoffs. It is for designers of agent systems who want to avoid unnecessary coordination overhead.
When to use it
- ✓When a single agent runs out of context room for a large task.
- ✓When a job splits into parallel parts that need different tools or prompts.
- ✓When you need to decide whether adding more agents is justified at all.
Skill link
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/multi-agent-patterns/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My one agent is struggling with a huge research task. Should I split it across several agents, and how?”
5 new skills a week. 1 minute to read.
How it works
The skill explains that sub-agents mainly isolate context, then compares arrangements and shows the trade-offs of coordination.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Multi-Agent Architecture Patterns
Multi-agent architectures distribute work across multiple language model instances, each with its own context window. When designed well, this distribution enables capabilities beyond single-agent limits. When designed poorly, it introduces coordination overhead that negates benefits. The critical insight is that sub-agents exist primarily to isolate context, not to anthropomorphize role division.
When to Activate
Activate this skill when:
- Single-agent context limits constrain task complexity
- Tasks decompose naturally into parallel subtasks
- Different subtasks require different tool sets or system prompts
- Building systems that must handle multiple domains simultaneously
- Scaling agent capabilities beyond single-context limits
- Designing production agent systems with multiple specialized components
Do not activate this skill for adjacent work owned by other skills:
- Deciding task-model fit, pipeline shape, or project-level cost before topology is known:
project-development. - Designing hosted sandboxes, warm pools, remote sessions, or background runtime infrastructure:
hosted-agents. - Sharing orchestrator state through KV-cache compaction in controlled runtimes:
latent-briefing. - Designing the tools each agent exposes:
tool-design.
Core Concepts
Use multi-agent patterns when a single agent's context window cannot hold all task-relevant information. Context isolation is the primary benefit — each agent operates in a clean context without accumulated noise from other subtasks, preventing the telephone game problem where information degrades through repeated summarization.
Choose among three dominant patterns based on coordination needs, not organizational metaphor:
- Supervisor/orchestrator — Use for centralized control when tasks have clear decomposition and human oversight matters. A single coordinator delegates to specialists and synthesizes results.
- Peer-to-peer/swarm — Use for flexible exploration when rigid planning is counterproductive. Any agent can transfer control to any other through explicit handoff mechanisms.
- Hierarchical — Use for large-scale projects with layered abstraction (strategy, planning, execution). Each layer operates at a different level of detail with its own context structure.
Design every multi-agent system around explicit coordination protocols, consensus mechanisms that resist sycophancy, and failure handling that prevents error propagation cascades.
Detailed Topics
Why Multi-Agent Architectures
The Context Bottleneck Reach for multi-agent architectures when a single agent's context fills with accumulated history, retrieved documents, and tool outputs to the point where performance degrades. Recognize three degradation signals: the lost-in-middle effect (attention weakens for mid-context content), attention scarcity (too many competing items), and context poisoning (irrelevant content displaces useful content).
Partition work across multiple context windows so each agent operates in a clean context focused on its subtask. Aggregate results at a coordination layer without any single context bearing the full burden.
The Token Economics Reality Budget for substantially higher token costs. Production data shows multi-agent systems can cost far more tokens than single-agent chat (claim-multi-agent-token-multiplier):
| Architecture | Token Multiplier | Use Case |
|---|---|---|
| Single agent chat | Baseline | Simple queries |
| Single agent with tools | Higher than baseline | Tool-using tasks |
| Multi-agent system | Much higher than baseline | Complex research/coordination |
Browsing-agent evaluation research suggests token usage, tool calls, and model choice dominate performance variance (claim-evaluation-browsecomp-variance). This supports measuring multi-agent setups against single-agent baselines instead of assuming extra agents help.
Prioritize model selection alongside architecture design — upgrading to better models often provides larger performance gains than doubling token budgets. BrowseComp data shows that model quality improvements frequently outperform raw token increases. Treat model selection and multi-agent architecture as complementary strategies.
The Parallelization Argument Assign parallelizable subtasks to dedicated agents with fresh contexts rather than processing them sequentially in a single agent. A research task requiring se
FAQ
Are more agents always better?
No. The skill warns that poorly designed multi-agent setups add coordination overhead that can cancel the benefit.
What is a supervisor pattern?
One agent coordinates others, assigns them subtasks and combines their results.
What is the main reason to use sub-agents?
The skill says sub-agents exist mainly to isolate context, so each one works with a smaller, focused window.
Details
Original description by the author
This skill should be used when designing multi-agent systems that need context isolation, supervisor or swarm coordination, explicit handoffs, parallel execution, or a decision on whether multiple agents are justified.
Popularity
- GitHub stars
- 18k
- Ranking position
- #10648
- License
- MIT
- Updated
- 10/11/2026
Comments
- …
More skills from this repository
context-engineering-collection
18kHelps your agent manage what goes into an AI model's context window, from memory and tools to multi-agent setups and evaluation.
advanced-evaluation
18kTeaches your agent how to judge AI answers using another AI, with scoring, side-by-side comparison and bias checks.
bdi-mental-states
18kTeaches your agent to model beliefs, goals and plans using the BDI approach, so its decisions can be traced and explained.
context-compression
18kHelps your agent shorten long AI sessions into summaries that keep decisions, files, risks and next steps.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.