Skip to content
ruvnet avatar

Swarm Init

Initializes a hierarchical multi-agent swarm for coordinated work across many files, with anti-drift configuration.

CCM score
67 of 100
skills.sh installs
749
GitHub stars
82.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers spawning named background agents in one message, with per-agent EnterWorktree isolation and SendMessage coordination
  • Provides MCP swarm_init and CLI swarm init paths with topology, agent cap, and strategy options
  • Supports hierarchical, hierarchical-mesh for teams of 10 or more, and other topologies selected via --topology
  • Designed for feature work, cross-module refactors, and security audits that need 3 or more coordinated agents

Install

$ npx -y skills add ruvnet/ruflo --skill swarm-init -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/ruvnet/ruflo
Category
Agent Workflow & Planning
First seen
Jun 3, 2026

Questions

What does the swarm-init skill do?

The swarm-init skill initializes a multi-agent swarm with anti-drift configuration for complex multi-file tasks. It runs a hierarchical swarm via MCP or the CLI, then spawns named agents in parallel with Claude Code's Task tool, using worktrees and SendMessage for coordination.

When should I use swarm-init, and when should I skip it?

Use swarm-init when starting a complex multi-file task that needs three or more coordinated agents, such as a feature implementation, a refactor across modules, or a security audit. Skip it for single-file edits or quick questions, since the swarm adds overhead that small tasks do not need.

How do I install the swarm-init skill?

Run this command in your project: npx -y skills add ruvnet/ruflo --skill swarm-init -y. After installing, the agent can initialize a swarm with a chosen topology, such as hierarchical or hierarchical-mesh for teams of ten or more agents.

Where does swarm-init stand in the Agent Workflow & Planning category?

The skill is listed in the Agent Workflow & Planning category on Claude Marketplaces, alongside grill-me, grill-with-docs, setup-matt-pocock-skills, grilling and prototype. It differs from them by focusing on starting a coordinated multi-agent swarm with a configurable topology.

More from ruvnet/ruflo

All 236

Similar to Swarm Init

More Agent Workflow & Planning