/swarm-init
Initialize a multi-agent swarm with anti-drift configuration. Use when starting a complex multi-file task that needs 3+ coordinated agents (feature implementation, refactor across modules, security audit). Skip for single-file edits or quick questions.
Claude Code
$ npx -y skills add ruvnet/ruflo --skill swarm-init --agent claude-code
Codex
$ npx skills add ruvnet/ruflo --skill swarm-init -a codex -y
Cursor
$ npx skills add ruvnet/ruflo --skill swarm-init -a cursor -y
Gemini CLI
$ npx skills add ruvnet/ruflo --skill swarm-init -a gemini-cli -y
GitHub Copilot
$ npx skills add ruvnet/ruflo --skill swarm-init -a github-copilot -y
OpenCode
$ npx skills add ruvnet/ruflo --skill swarm-init -a opencode -y
Windsurf
$ npx skills add ruvnet/ruflo --skill swarm-init -a windsurf -y
SKILL.md
swarm-init.SKILL.mdname: swarm-init description: Initialize a multi-agent swarm with anti-drift configuration. Use when starting a complex multi-file task that needs 3+ coordinated agents (feature implementation, refactor across modules, security audit). Skip for single-file edits or quick questions. argument-hint: "[--topology hierarchical|mesh|hierarchical-mesh|ring|star|adaptive]" allowed-tools: Bash(npx *) mcp__plugin_ruflo-core_ruflo__swarm_init mcp__plugin_ruflo-core_ruflo__swarm_status Task SendMessage
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
📖 RuFlo Explained — Build an AI Team That Plans, Remembers, Tests, and Improves A 14-chapter guide: from the basic idea to a first useful task, then memory, agent teams, plugins, cost and verification. Agent = Model + Harness.
Other skills on ruflo.
More skills from other plugins.
agentmail
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
bmad
Answers BMad questions and recommends the next skill from what is installed. Use when the user asks bmad for help, what to do…
Questions about swarm-init.
- Which coding agents can use swarm-init?
- swarm-init installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

