本文へスキップ
Skillpedia
エージェント18k · #10648

multi-agent-patterns

できること

このスキルは、タスクに複数のAIエージェントが必要な場合と、監督者型、群れ型、明示的な引き継ぎ型などの配置方法を説明します。不必要な調整の負担を避けたい、エージェントシステムの設計者向けです。

使う場面

  • ✓1つのエージェントが、大きなタスクのコンテキストの余地を使い切ったとき。
  • ✓仕事が、異なるツールやプロンプトを必要とする並列の部分に分かれるとき。
  • ✓エージェントを増やすことが本当に正当化されるかを判断する必要があるとき。

スキルのリンク

https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/multi-agent-patterns/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/multi-agent-patterns/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“1つのエージェントが巨大な研究タスクに苦労しています。複数のエージェントに分けるべきか、どう分けるかを教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

スキルは、サブエージェントの主な目的がコンテキストを分離することだと説明します。その後、配置方法を比べ、調整のトレードオフを示します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)を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

よくある質問

エージェントは多いほどよいのですか?

いいえ。スキルは、設計の悪い複数エージェントの構成は調整の負担を増やし、その利点を打ち消すことがあると警告しています。

監督者パターンとは何ですか?

1つのエージェントが他のエージェントを調整し、サブタスクを割り当て、その結果をまとめるものです。

サブエージェントを使う主な理由は何ですか?

サブエージェントは主にコンテキストを分離するために存在すると、スキルは述べています。そのため、それぞれが小さく焦点の絞られたウィンドウで働けます。

詳細

作者による元の説明

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.

repo: muratcankoylan/Agent-Skills-for-Context-Engineering

人気

GitHubのスター
18k
ランキング
#10648
ライセンス
MIT
更新日
2026/10/11

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル