multi-agent-workflows
Guide Swarms orchestration, routing, debate, consensus, and graph-based multi-agent workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- multi-agent-workflows
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guide Swarms orchestration, routing, debate, consensus, and graph-based multi-agent workflows.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md3.7 KB
- 参考文档references/troubleshooting.md1.7 KB
- 参考文档references/workflows.md2.7 KB
- 脚本scripts/workflow_smoke.py1.4 KB
03 SKILL.md 正文
Multi-agent workflows
Use this sub-skill when the user wants to combine multiple agents into a swarm, route tasks between agents, or choose an orchestration pattern.
Owns these workflows
- Linear and concurrent pipelines:
SequentialWorkflow,ConcurrentWorkflow. - DSL and graph orchestration:
AgentRearrange,GraphWorkflow. - Routing and selection:
SwarmRouter,MultiAgentRouter. - Collaboration and consensus:
MixtureOfAgents,HierarchicalSwarm,GroupChat,MajorityVoting,CouncilAsAJudge,DebateWithJudge. - Other swarm styles:
RoundRobinSwarm,PlannerWorkerSwarm,HeavySwarm,BatchedGridWorkflow.
Does not own
- One-agent configuration and runtime behavior; use
single-agent. - CLI and file-driven creation flows; use
cli-loaders. - Tool schema conversion and MCP transport; use
tools-mcp.
Read this sub-skill when the request mentions
SequentialWorkflow,ConcurrentWorkflow,AgentRearrange,GraphWorkflow, orSwarmRouter.MixtureOfAgents,HierarchicalSwarm,GroupChat,MajorityVoting,CouncilAsAJudge, orDebateWithJudge.RoundRobinSwarm,PlannerWorkerSwarm,HeavySwarm,BatchedGridWorkflow, orMultiAgentRouter.RESPOND_TOOL, fan-out/fan-in, DAGs, consensus, routing, or collaborator selection.
Working shape
- Identify the exact orchestration style the user wants.
- Decide whether the task is a simple chain, a fan-out/fan-in graph, a consensus loop, or an automatic router selection problem.
- Check whether the workflow needs fake agents, real provider-backed agents, or optional graph backends.
- Use the bundled references for class selection, flow syntax, and failure handling.
What to read next
references/workflows.mdfor the orchestration catalog and route-selection guidance.references/api-reference.mdfor constructor and method summaries.references/troubleshooting.mdfor flow, backend, and concurrency issues.scripts/workflow_smoke.pyfor an offline workflow smoke check with fake agents.
Typical user questions this sub-skill should answer
- Which swarm class should I use for sequential vs parallel processing?
- How do I express a mixed
->and,flow inAgentRearrange? - When should I use
SwarmRouterinstead of directly constructing a swarm? - Why does
GroupChatneedRESPOND_TOOLon each agent? - How do I debug a swarm that returns the wrong type or never converges?
Route boundaries
- If the task is only about one agent, route to
single-agent. - If the task starts from a CLI or config file, route to
cli-loaders. - If the task is about tools, BaseTool, or MCP, route to
tools-mcp.
Acceptance checklist
- The response should name the exact swarm class and why it fits the task.
- The response should describe the input shape and expected output shape.
- The response should mention optional dependencies such as graph backends when relevant.
- The response should include at least one concrete troubleshooting path for empty agents, invalid flows, or provider/backend issues.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).