claude-flow-swarm

claude-flow-swarm is a command for Claude Code from ruvnet/ruflo. It costs 14 tokens per session (1,225 once invoked), scanned A, a copy of claude-flow-swarm, MIT.

A command for coordinating multiple specialized coding agents around a complex task. It supports strategies such as development, research, analysis, testing, optimization, and maintenance.

In plain words
What is it for?
Use it to run multi-agent workflows for building features, gathering information, analyzing data, testing software, tuning performance, or fixing and updating systems.
Why use it?
It divides a large task into coordinated roles, such as coding, research, testing, review, and documentation, so the work has a clearer structure.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Part of the claude-flow plugin — 134 skills, 52 commands, 11 agents, 4 hooks shipped together

Good fit Use it to run multi-agent workflows for building features, gathering information, analyzing data, testing software, tuning performance, or fixing and updating systems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ruvnet/ruflo/claude-flow-swarm
About the project

Ruflo is an execution and coordination layer for Claude Code and Codex that equips AI coding agents with tools, memory, control loops, sandboxes, and collaboration mechanisms. Developers use it to organize specialized agents into swarms, coordinate workflows, retain knowledge across sessions, and communicate across machines. The catalogue entries are Ruflo’s skills, commands, agents, hooks, and plugin components.

ruvnet/ruflo · 71,074 stars · on GitHub · cognitum.one

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ruvnet/ruflo

Made for: Claude Code.

Or install claude-flow, the plugin that ships this one along with the rest of its 134 skills, 52 commands, 11 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-flow-swarm

README.md
[![agentmods](https://agentmods.dev/badge/commands/ruvnet/ruflo/claude-flow-swarm.svg)](https://agentmods.dev/commands/ruvnet/ruflo/claude-flow-swarm)
Your own site
<a href="https://agentmods.dev/commands/ruvnet/ruflo/claude-flow-swarm"><img src="https://agentmods.dev/badge/commands/ruvnet/ruflo/claude-flow-swarm.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,225 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.01225
Opus 5 $0.00007 $0.00613
Sonnet 5 $0.00003 $0.00245
Haiku 4.5 $0.00001 $0.00122

Measured 4d ago against content hash 14778c8413d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

claude-flow-swarm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to claude-flow-swarm — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/claude-flow-swarm.md · 206 lines

How it starts

The opening of the file, as written. The whole thing — 206 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🐝 Claude-Flow Swarm Coordination

Advanced multi-agent coordination system with timeout-free execution, distributed memory sharing, and intelligent load balancing.

Basic Usage

./claude-flow swarm "your complex task" --strategy <type> [options]

🎯 Swarm Strategies

  • auto - Automatic strategy selection based on task analysis
  • development - Code implementation with review and testing
  • research - Information gathering and synthesis
  • analysis - Data processing and pattern identification
  • testing - Comprehensive quality assurance
  • optimization - Performance tuning and refactoring
  • maintenance - System updates and bug fixes

🤖 Agent Types

  • coordinator - Plans and delegates tasks to other agents
  • developer - Writes code and implements solutions
  • researcher - Gathers and analyzes information
  • analyzer - Identifies patterns and generates insights
  • tester - Creates and runs tests for quality assurance
  • reviewer - Performs code and design reviews
  • documenter - Creates documentation and guides
  • monitor - Tracks performance and system health
  • specialist - Domain-specific expert agents

🔄 Coordination Modes

  • centralized - Single coordinator manages all agents (default)
  • distributed - Multiple coordinators share management
  • hierarchical - Tree structure with nested coordination
  • mesh - Peer-to-peer agent collaboration
  • hybrid - Mixed coordination strategies

⚙️ Common Options

  • --strategy <type> - Execution strategy
  • --mode <type> - Coordination mode
  • --max-agents <n> - Maximum concurrent agents (default: 5)
  • --timeout <minutes> - Timeout in minutes (default: 60)
  • --background - Run in background for tasks > 30 minutes
  • --monitor - Enable real-time monitoring
  • --ui - Launch terminal UI interface
  • --parallel - Enable parallel execution
  • --distributed - Enable distributed coordination
  • --review - Enable peer review process
  • --testing - Include automated testing
  • --encryption - Enable data encryption
  • --verbose - Detailed logging output
  • --dry-run - Show configuration without executing

Read the full file on GitHub · 206 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 206 lines · 14 tokens per session scan A 14778c8413d9

Subscribe to this mod's changes

claude-flow-swarm is a command published in the GitHub repository ruvnet/ruflo (71,074 stars, last pushed 2d ago), licensed MIT. It adds 14 tokens to every session and 1,225 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to claude-flow-swarm, differing in 0 lines, and is treated as a copy.

Related

Other commands, from other repositories