# swarm Main swarm orchestration command for Claude Flow. ## Usage ```bash npx claude-flow swarm [options] ``` ## Options - `--strategy ` - Execution strategy (research, development, analysis, testing) - `--mode ` - Coordination mode (centralized, distributed, hierarchical, mesh) - `--max-agents ` - Maximum number of agents (default: 5) - `--claude` - Open Claude Code CLI with swarm prompt - `--parallel` - Enable parallel execution ## Examples ```bash # Basic swarm npx claude-flow swarm "Build REST API" # With strategy npx claude-flow swarm "Research AI patterns" --strategy research # Open in Claude Code npx claude-flow swarm "Build API" --claude ```