技能 编程开发 多智能体协同工作流初始化

多智能体协同工作流初始化

v20260716
swarm-init
用于初始化一个具备防漂移机制的多智能体群组。适用于需要多个(3个或以上)协调工作的复杂大型项目任务,例如功能实现、跨模块重构或安全审计。它支持多种拓扑结构,确保多个AI代理能够安全、高效地进行并行协作和任务分解。
获取技能
265 次下载
概览

Initialize a hierarchical swarm for coordinated multi-agent work.

Via MCP: mcp__plugin_ruflo-core_ruflo__swarm_init({ topology: "hierarchical", maxAgents: 8, strategy: "specialized" })

Or via CLI:

npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 8 --strategy specialized

Then spawn named agents in ONE message via Claude Code's Task tool with name: (for SendMessage addressability) and run_in_background: true (for parallel execution). Use EnterWorktree per agent for git-safe parallel work, and SendMessage for inter-agent coordination.

For larger teams (10+), use hierarchical-mesh topology:

npx @claude-flow/cli@latest swarm init --topology hierarchical-mesh --max-agents 15 --strategy specialized
信息
Category 编程开发
Name swarm-init
版本 v20260716
大小 1.24KB
更新时间 2026-07-18
语言