Skip to main content
AI/MLruvnet

swarm-init

Initialize a multi-agent swarm with anti-drift configuration

Stars
56,726
Source
ruvnet/claude-flow
Updated
2026-05-31
Slug
ruvnet--claude-flow--swarm-init
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/ruvnet/claude-flow/HEAD/plugins/ruflo-swarm/skills/swarm-init/SKILL.md -o .claude/skills/swarm-init.md

Drops the SKILL.md into .claude/skills/swarm-init.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

Initialize a hierarchical swarm for coordinated multi-agent work.

Via MCP: mcp__claude-flow__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