‹ 首页

multi-agent-orchestration

@developersglobal · 收录于 1 周前

Designs and coordinates multi-agent pipelines where specialized agents collaborate to complete complex tasks. Includes communication protocols, failure handling, and state management.

适合你,如果需要设计多个AI智能体协同工作的流程

/ 下载安装
multi-agent-orchestration.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add developersglobal/ai-agent-skills/multi-agent-orchestration
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- developersglobal/ai-agent-skills/multi-agent-orchestration
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify developersglobal/ai-agent-skills/multi-agent-orchestration
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
64GitHub stars
~1.1K上下文体积 · 单文件
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · f47f948
Overview

Single agents are limited by context window, specialization depth, and parallelism. Multi-agent systems overcome these limits by routing subtasks to specialized agents. But multi-agent systems introduce new failure modes: lost context, conflicting decisions, infinite loops, and cascading failures.

This skill provides the architecture and coordination patterns to build multi-agent systems that are reliable, observable, and maintainable.

When to Use
  • The task requires more context than a single agent can handle
  • Different subtasks require different specializations (research, coding, review, security)
  • Subtasks can be parallelized for speed
  • The workflow is long-running and requires checkpointing
  • Different tasks require different levels of human oversight
Process
Step 1: Design the Agent Network
  1. Define agent responsibilities: Each agent should have a single, well-defined job. Name them by role: researcher, coder, reviewer, security-auditor, tester.
  2. Define communication topology: Who can talk to whom?
  3. Pipeline: Agent A → Agent B → Agent C (sequential)
  4. Supervisor: Orchestrator dispatches to specialists (hub-and-spoke)
  5. Peer: Agents collaborate as equals (mesh)
  6. Define data contracts: What does each agent receive? What does it output? Use structured formats (JSON schemas) for inter-agent communication.
  7. Define the orchestration logic: Who decides which agent acts next?

Verify: You can draw the agent network on a whiteboard with clear roles and data flow.

Step 2: Implement Context Management
  1. Each agent should receive only the context it needs — not the full conversation history.
  2. Use a shared state store (database, key-value store) for information that multiple agents need.
  3. Pass summaries, not full transcripts, when context must traverse agent boundaries.
  4. Include a task ID in every message for tracing.

Verify: No agent receives more context than it requires for its specific task.

Step 3: Design for Failure
  1. Every agent call can fail — plan for it:
  2. Timeout with a defined maximum duration
  3. Retry with exponential backoff (max 3 retries)
  4. Fallback behavior when retries are exhausted
  5. Prevent infinite loops: Track call depth. If depth > N (e.g., 10), surface to human review.
  6. Checkpointing: For long workflows, save state after each major step so the workflow can be resumed after failure.
  7. Dead letter queue: Failed tasks that exhaust retries go to a queue for human inspection.

Verify: Failure scenarios are defined for every agent-to-agent call.

Step 4: Human-in-the-Loop Checkpoints
  1. Define which decisions require human approval:
  2. Irreversible actions (data deletion, financial transactions, external communications)
  3. High-uncertainty states (agents disagree, confidence below threshold)
  4. Sensitive operations (PII access, privileged system access)
  5. Design the human review interface: What information does the reviewer need? What actions can they take?

Verify: At least one human-in-the-loop checkpoint exists for high-risk operations.

Step 5: Observability
  1. Log every agent invocation: inputs, outputs, duration, token usage, errors.
  2. Implement distributed tracing across the agent network (trace ID propagated through all calls).
  3. Dashboard: agent activity, success/failure rates, latency, token consumption.
  4. Alerts: agent down, retry rate spike, context overflow, unexpected output patterns.

Verify: You can trace any specific task's full execution path across all agents from logs alone.

Common Rationalizations (and Rebuttals)

| Excuse | Rebuttal | |--------|----------| | "One agent is simpler" | Until it hits context limits, fails silently, or produces wrong results. Multi-agent is the right tool for complex tasks. | | "We'll add observability later" | Multi-agent systems without observability are black boxes. Debug them in production — I dare you. | | "Agents are smart, they'll figure it out" | Agents are tools. They need clear roles, contracts, and failure boundaries. | | "The happy path works fine" | Multi-agent systems fail in complex ways. Design for failure from day one. |

Red Flags
  • Agents pass full conversation history to other agents (context bloat)
  • No timeout defined for any agent call
  • Agents can call each other recursively without depth limits
  • No human approval required for irreversible actions
  • No distributed tracing across agent boundaries
  • Agents making conflicting state changes with no conflict resolution
Verification
  • [ ] Agent network designed with clear roles and data contracts
  • [ ] Context is minimized at each agent boundary
  • [ ] Failure handling (timeout, retry, fallback) for every agent call
  • [ ] Infinite loop prevention via call depth limits
  • [ ] Human-in-the-loop checkpoints for high-risk operations
  • [ ] Distributed tracing implemented across agents
  • [ ] End-to-end test of failure scenarios
References
  • [task-decomposition skill](../task-decomposition/SKILL.md)
  • [observability skill](../observability/SKILL.md)
  • [prompt-injection-defense skill](../prompt-injection-defense/SKILL.md)
  • [hallucination-prevention skill](../hallucination-prevention/SKILL.md)
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。