Skip to content
Testing
Command

/auto-topology

Automatically select the optimal swarm topology based on task complexity analysis.

From plugin
agentic-qe
436149 skills169 agents149 commands
Install
> /plugin marketplace add proffesor-for-testing/agentic-qe
> /plugin install agentic-qe-fleet@agentic-qe

How 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.md

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 agents

Benefits

  • ๐ŸŽฏ 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
Ships withagentic-qe

AI-powered quality engineering agents that generate tests, find coverage gaps, detect flaky tests, and learn your codebase patterns โ€” across 11 coding agent platforms.

Get the whole plugin