/auto-topology
Automatically select the optimal swarm topology based on task complexity analysis.
> /plugin marketplace add ruvnet/claude-flowHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/auto-topology
Context preview
What this command does when you run it.
Automatically select the optimal swarm topology based on task complexity analysis.
Command definition
auto-topology.mdAutomatic Topology Selection
Purpose
Automatically select the optimal swarm topology based on task complexity analysis.
How It Works
1. Task Analysis
The system analyzes your task description to determine:
- Complexity level (simple/medium/complex)
- Required agent types
- Estimated duration
- Resource requirements
2. Topology Selection
Based on analysis, it selects:
- **Star**: For simple, centralized tasks
- **Mesh**: For medium complexity with flexibility needs
- **Hierarchical**: For complex tasks requiring structure
- **Ring**: For sequential processing workflows
3. Example Usage
**Simple Task:**
Tool: mcp__claude-flow__task_orchestrate
Parameters: {"task": "Fix typo in README.md"}
Result: Automatically uses star topology with single agent**Complex Task:**
Tool: mcp__claude-flow__task_orchestrate
Parameters: {"task": "Refactor authentication system with JWT, add tests, update documentation"}
Result: Automatically uses hierarchical topology with architect, coder, and tester agentsBenefits
- ๐ฏ Optimal performance for each task type
- ๐ค Automatic agent assignment
- โก Reduced setup time
- ๐ Better resource utilization
Hook Configuration
The pre-task hook automatically handles topology selection:
{
"command": "npx claude-flow hook pre-task --optimize-topology"
}Direct Optimization
Tool: mcp__claude-flow__topology_optimize
Parameters: {"swarmId": "current"}CLI Usage
# Auto-optimize topology via CLI
npx claude-flow optimize topology
Read more
Automatic Topology Selection
Purpose
Automatically select the optimal swarm topology based on task complexity analysis.
How It Works
1. Task Analysis
The system analyzes your task description to determine:
- Complexity level (simple/medium/complex)
- Required agent types
- Estimated duration
- Resource requirements
2. Topology Selection
Based on analysis, it selects:
- **Star**: For simple, centralized tasks
- **Mesh**: For medium complexity with flexibility needs
- **Hierarchical**: For complex tasks requiring structure
- **Ring**: For sequential processing workflows
3. Example Usage
**Simple Task:**
Tool: mcp__claude-flow__task_orchestrate
Parameters: {"task": "Fix typo in README.md"}
Result: Automatically uses star topology with single agent**Complex Task:**
Tool: mcp__claude-flow__task_orchestrate
Parameters: {"task": "Refactor authentication system with JWT, add tests, update documentation"}
Result: Automatically uses hierarchical topology with architect, coder, and tester agentsBenefits
- ๐ฏ Optimal performance for each task type
- ๐ค Automatic agent assignment
- โก Reduced setup time
- ๐ Better resource utilization
Hook Configuration
The pre-task hook automatically handles topology selection:
{
"command": "npx claude-flow hook pre-task --optimize-topology"
}Direct Optimization
Tool: mcp__claude-flow__topology_optimize
Parameters: {"swarmId": "current"}CLI Usage
# Auto-optimize topology via CLI npx claude-flow optimize topology
An agent meta-harness for Claude Code and Codex. Agent = Model + Harness. The model writes; the harness gives it tools, memory, loops, sandboxes, and controls so it can actually work.
Repo: ruvnet/claude-flow
Other commands on claude-flow.
- /agent-capabilities
Matrix of agent capabilities and their specializations.
Open command - /agent-coordination
Coordination patterns for multi-agent collaboration.
Open command - /agent-spawning
Guide to spawning agents with Claude Code's Task tool.
Open command - /agent-types
Complete guide to all 54 available agent types in Claude Flow.
Open command - /COMMAND_COMPLIANCE_REPORT
Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools (preferred) - `npx claude-flow` commands (as fallback) - No direct implementation calls
Open command - /bottleneck-detect
Analyze performance bottlenecks in swarm operations and suggest optimizations.
Open command

