Pular para o conteúdo
Skillpedia
Agentes18 mil · #10648

multi-agent-patterns

O que ela faz

Esta skill explica quando uma tarefa precisa de vários agentes de IA e como organizá-los, como um supervisor, um enxame ou passagens explícitas. É para projetistas de sistemas de agentes que querem evitar sobrecarga de coordenação desnecessária.

Quando usar

  • ✓Quando um único agente fica sem espaço de contexto para uma tarefa grande.
  • ✓Quando um trabalho se divide em partes paralelas que precisam de ferramentas ou prompts diferentes.
  • ✓Quando você precisa decidir se vale a pena adicionar mais agentes.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/multi-agent-patterns/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“O meu único agente está tendo dificuldade com uma pesquisa enorme. Devo dividi-la entre vários agentes, e como?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill explica que os subagentes servem principalmente para isolar o contexto, depois compara as organizações possíveis e mostra os compromissos da coordenação.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

Perguntas frequentes

Mais agentes são sempre melhores?

Não. A skill alerta que sistemas com vários agentes mal projetados criam sobrecarga de coordenação que pode anular o benefício.

O que é o padrão supervisor?

Um agente coordena os outros, atribui subtarefas e combina os resultados.

Qual é o principal motivo para usar subagentes?

A skill diz que os subagentes existem principalmente para isolar o contexto, para que cada um trabalhe com uma janela menor e mais focada.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
18 mil
Posição no ranking
#10648
Licença
MIT
Atualizada em
11/10/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas