@claude-flow/cli 3.0.0-alpha.39 → 3.0.0-alpha.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,50 @@
1
1
  # Agents Commands
2
2
 
3
- Commands for agents operations in Claude Flow.
3
+ Complete agent management commands for Claude Flow V3.
4
4
 
5
5
  ## Available Commands
6
6
 
7
- - [agent-types](./agent-types.md)
8
- - [agent-capabilities](./agent-capabilities.md)
9
- - [agent-coordination](./agent-coordination.md)
10
- - [agent-spawning](./agent-spawning.md)
7
+ | Command | Description |
8
+ |---------|-------------|
9
+ | [spawn](./spawn.md) | Spawn new agents with V3 capabilities |
10
+ | [list](./list.md) | List all active agents |
11
+ | [status](./status.md) | Show detailed agent status |
12
+ | [stop](./stop.md) | Stop running agents |
13
+ | [metrics](./metrics.md) | View performance metrics |
14
+ | [pool](./pool.md) | Manage agent pool scaling |
15
+ | [health](./health.md) | Monitor agent health |
16
+ | [logs](./logs.md) | View agent activity logs |
17
+
18
+ ## Reference
19
+
20
+ | Reference | Description |
21
+ |-----------|-------------|
22
+ | [agent-types](./agent-types.md) | All 87 available agent types |
23
+ | [agent-capabilities](./agent-capabilities.md) | Capability matrix by agent |
24
+ | [agent-coordination](./agent-coordination.md) | Multi-agent coordination patterns |
25
+ | [agent-spawning](./agent-spawning.md) | Best practices for spawning |
26
+
27
+ ## Quick Start
28
+
29
+ ```bash
30
+ # Spawn a coder agent
31
+ npx claude-flow agent spawn -t coder --name my-coder
32
+
33
+ # List all active agents
34
+ npx claude-flow agent list
35
+
36
+ # Check agent health
37
+ npx claude-flow agent health
38
+
39
+ # View metrics
40
+ npx claude-flow agent metrics --period 24h
41
+ ```
42
+
43
+ ## V3 Agent Categories
44
+
45
+ - **Core**: coder, reviewer, tester, planner, researcher
46
+ - **V3 Specialized**: security-architect, memory-specialist, performance-engineer
47
+ - **Swarm**: hierarchical-coordinator, mesh-coordinator, adaptive-coordinator
48
+ - **Consensus**: byzantine-coordinator, raft-manager, gossip-coordinator
49
+ - **GitHub**: pr-manager, code-review-swarm, release-manager
50
+ - **SPARC**: sparc-coordinator, specification, architecture, refinement
@@ -1,21 +1,140 @@
1
- # agent-capabilities
1
+ ---
2
+ name: agent-capabilities
3
+ description: Capability matrix for all agent types
4
+ type: reference
5
+ ---
2
6
 
3
- Matrix of agent capabilities and their specializations.
7
+ # Agent Capabilities Reference
8
+
9
+ Matrix of agent capabilities and their specializations for Claude Flow V3.
4
10
 
5
11
  ## Capability Matrix
6
12
 
7
- | Agent Type | Primary Skills | Best For |
8
- |------------|---------------|----------|
9
- | coder | Implementation, debugging | Feature development |
10
- | researcher | Analysis, synthesis | Requirements gathering |
11
- | tester | Testing, validation | Quality assurance |
12
- | architect | Design, planning | System architecture |
13
+ ### Core Development
14
+
15
+ | Agent | Code | Test | Review | Design | Research |
16
+ |-------|:----:|:----:|:------:|:------:|:--------:|
17
+ | coder | **5** | 3 | 2 | 2 | 2 |
18
+ | reviewer | 3 | 2 | **5** | 3 | 2 |
19
+ | tester | 2 | **5** | 2 | 1 | 2 |
20
+ | planner | 2 | 1 | 2 | **5** | 4 |
21
+ | researcher | 2 | 1 | 2 | 3 | **5** |
22
+
23
+ ### V3 Specialized
24
+
25
+ | Agent | Security | Memory | Performance | Architecture |
26
+ |-------|:--------:|:------:|:-----------:|:------------:|
27
+ | security-architect | **5** | 2 | 3 | **5** |
28
+ | security-auditor | **5** | 2 | 2 | 3 |
29
+ | memory-specialist | 3 | **5** | 4 | 3 |
30
+ | performance-engineer | 2 | 3 | **5** | 4 |
31
+ | core-architect | 3 | 3 | 3 | **5** |
32
+
33
+ ### Swarm Coordination
34
+
35
+ | Agent | Coordination | Consensus | Scaling | Fault Tolerance |
36
+ |-------|:------------:|:---------:|:-------:|:---------------:|
37
+ | hierarchical-coordinator | **5** | 4 | 4 | 4 |
38
+ | mesh-coordinator | 4 | 4 | **5** | 4 |
39
+ | adaptive-coordinator | **5** | 4 | **5** | 4 |
40
+ | collective-intelligence-coordinator | 4 | **5** | 4 | 4 |
41
+
42
+ ### GitHub Integration
43
+
44
+ | Agent | PR | Issues | CI/CD | Release | Review |
45
+ |-------|:--:|:------:|:-----:|:-------:|:------:|
46
+ | pr-manager | **5** | 3 | 2 | 3 | 4 |
47
+ | code-review-swarm | 4 | 2 | 2 | 2 | **5** |
48
+ | issue-tracker | 2 | **5** | 2 | 2 | 2 |
49
+ | release-manager | 3 | 3 | 4 | **5** | 2 |
50
+ | workflow-automation | 2 | 3 | **5** | 4 | 2 |
51
+
52
+ ## Capability Levels
53
+
54
+ | Level | Description |
55
+ |-------|-------------|
56
+ | **5** | Expert - Primary specialization |
57
+ | 4 | Advanced - Strong capability |
58
+ | 3 | Intermediate - Good capability |
59
+ | 2 | Basic - Limited capability |
60
+ | 1 | Minimal - Not a focus |
61
+
62
+ ## V3 Performance Capabilities
63
+
64
+ | Capability | Agents | Performance Gain |
65
+ |------------|--------|------------------|
66
+ | Flash Attention | memory-specialist, performance-engineer | 2.49x-7.47x |
67
+ | HNSW Search | memory-specialist | 150x-12,500x |
68
+ | Quantization | performance-engineer | 50-75% memory |
69
+ | SONA Adaptation | sona-learning-optimizer | <0.05ms |
70
+
71
+ ## Consensus Capabilities
72
+
73
+ | Agent | BFT | Raft | Gossip | CRDT |
74
+ |-------|:---:|:----:|:------:|:----:|
75
+ | byzantine-coordinator | **5** | 2 | 2 | 2 |
76
+ | raft-manager | 2 | **5** | 2 | 2 |
77
+ | gossip-coordinator | 2 | 2 | **5** | 3 |
78
+ | crdt-synchronizer | 2 | 2 | 3 | **5** |
79
+ | quorum-manager | 4 | 4 | 3 | 3 |
80
+
81
+ ## Tool Access by Agent Type
82
+
83
+ ### Code Tools
84
+ ```
85
+ coder: Read, Write, Edit, MultiEdit, Glob, Grep, Bash
86
+ reviewer: Read, Glob, Grep
87
+ tester: Read, Write, Bash, Glob
88
+ ```
89
+
90
+ ### Swarm Tools
91
+ ```
92
+ hierarchical-coordinator: mcp__claude-flow__swarm_*, mcp__claude-flow__agent_*
93
+ mesh-coordinator: mcp__claude-flow__swarm_*, mcp__claude-flow__coordination_*
94
+ adaptive-coordinator: mcp__claude-flow__topology_*, mcp__claude-flow__swarm_*
95
+ ```
96
+
97
+ ### GitHub Tools
98
+ ```
99
+ pr-manager: mcp__github__*, Bash (gh CLI)
100
+ code-review-swarm: mcp__github__*, mcp__claude-flow__swarm_*
101
+ release-manager: mcp__github__*, mcp__claude-flow__workflow_*
102
+ ```
13
103
 
14
104
  ## Querying Capabilities
105
+
15
106
  ```bash
16
- # List all capabilities
17
- npx claude-flow agents capabilities
107
+ # List all capabilities for an agent type
108
+ npx claude-flow agent spawn -t coder --help
18
109
 
19
- # For specific agent
20
- npx claude-flow agents capabilities --type coder
110
+ # View agent definition
111
+ cat .claude/agents/core/coder.md
21
112
  ```
113
+
114
+ ## Capability-Based Selection
115
+
116
+ ### For Security Tasks
117
+ 1. `security-architect` - Design and threat modeling
118
+ 2. `security-auditor` - Vulnerability assessment
119
+ 3. `security-manager` - Consensus security
120
+
121
+ ### For Performance Tasks
122
+ 1. `performance-engineer` - Optimization
123
+ 2. `memory-specialist` - Memory/search optimization
124
+ 3. `performance-analyzer` - Bottleneck analysis
125
+
126
+ ### For Multi-Agent Coordination
127
+ 1. `hierarchical-coordinator` - Complex hierarchical tasks
128
+ 2. `mesh-coordinator` - Research and exploration
129
+ 3. `adaptive-coordinator` - Dynamic requirements
130
+
131
+ ### For GitHub Workflows
132
+ 1. `pr-manager` - PR lifecycle
133
+ 2. `code-review-swarm` - Comprehensive reviews
134
+ 3. `workflow-automation` - CI/CD automation
135
+
136
+ ## See Also
137
+
138
+ - [agent-types](./agent-types.md) - All 87 agent types
139
+ - [agent-coordination](./agent-coordination.md) - Coordination patterns
140
+ - [spawn](./spawn.md) - Spawn command
@@ -1,26 +1,216 @@
1
- # agent-types
1
+ ---
2
+ name: agent-types
3
+ description: Complete guide to all 87 available agent types in Claude Flow V3
4
+ type: reference
5
+ ---
2
6
 
3
- Complete guide to all 54 available agent types in Claude Flow.
7
+ # Agent Types Reference
4
8
 
5
- ## Core Development Agents
6
- - `coder` - Implementation specialist
7
- - `reviewer` - Code quality assurance
8
- - `tester` - Test creation and validation
9
- - `planner` - Strategic planning
10
- - `researcher` - Information gathering
9
+ Complete guide to all 87 available agent types in Claude Flow V3.
11
10
 
12
- ## Swarm Coordination Agents
13
- - `hierarchical-coordinator` - Queen-led coordination
14
- - `mesh-coordinator` - Peer-to-peer networks
15
- - `adaptive-coordinator` - Dynamic topology
11
+ ## Core Development (5)
16
12
 
17
- ## Specialized Agents
18
- - `backend-dev` - API development
19
- - `mobile-dev` - React Native development
20
- - `ml-developer` - Machine learning
21
- - `system-architect` - High-level design
13
+ | Agent | Description | Best For |
14
+ |-------|-------------|----------|
15
+ | `coder` | Code implementation with neural patterns | Feature development, bug fixes |
16
+ | `reviewer` | Code quality assurance | PR reviews, security checks |
17
+ | `tester` | Testing with automation | Unit tests, integration tests |
18
+ | `planner` | Strategic task planning | Project planning, roadmaps |
19
+ | `researcher` | Information gathering | Requirements, documentation |
20
+
21
+ ## V3 Specialized (12)
22
+
23
+ | Agent | Description | Best For |
24
+ |-------|-------------|----------|
25
+ | `security-architect` | Security architecture | Threat modeling, design |
26
+ | `security-auditor` | CVE remediation | Vulnerability scanning |
27
+ | `memory-specialist` | AgentDB unification | 150x-12,500x search |
28
+ | `performance-engineer` | Optimization targets | 2.49x-7.47x speedup |
29
+ | `core-architect` | DDD restructure | Domain modeling |
30
+ | `adr-architect` | Architecture decisions | ADR documentation |
31
+ | `claims-authorizer` | Access control | Claims-based auth |
32
+ | `ddd-domain-expert` | Domain design | Bounded contexts |
33
+ | `reasoningbank-learner` | Pattern learning | Self-improvement |
34
+ | `sona-learning-optimizer` | Neural optimization | SONA adaptation |
35
+ | `sparc-orchestrator` | SPARC methodology | Development workflow |
36
+ | `v3-integration-architect` | V3 integration | System integration |
37
+
38
+ ## Swarm Coordination (6)
39
+
40
+ | Agent | Description | Best For |
41
+ |-------|-------------|----------|
42
+ | `hierarchical-coordinator` | Queen-led coordination | Complex projects |
43
+ | `mesh-coordinator` | P2P peer networks | Research tasks |
44
+ | `adaptive-coordinator` | Dynamic topology | Unknown workloads |
45
+ | `collective-intelligence-coordinator` | Consensus decisions | Group decisions |
46
+ | `swarm-memory-manager` | Distributed memory | Data sharing |
47
+ | `coordinator-swarm-init` | Swarm initialization | Setup |
48
+
49
+ ## Consensus Agents (7)
50
+
51
+ | Agent | Description | Best For |
52
+ |-------|-------------|----------|
53
+ | `byzantine-coordinator` | BFT consensus | Fault tolerance |
54
+ | `raft-manager` | Leader-based consensus | Consistent state |
55
+ | `gossip-coordinator` | Eventual consistency | Scalability |
56
+ | `crdt-synchronizer` | CRDT replication | Conflict-free sync |
57
+ | `quorum-manager` | Quorum consensus | Voting systems |
58
+ | `security-manager` | Consensus security | Secure coordination |
59
+ | `consensus-coordinator` | General consensus | Distributed systems |
60
+
61
+ ## GitHub Integration (14)
62
+
63
+ | Agent | Description | Best For |
64
+ |-------|-------------|----------|
65
+ | `pr-manager` | PR lifecycle | Pull requests |
66
+ | `code-review-swarm` | Multi-agent review | Comprehensive reviews |
67
+ | `issue-tracker` | Issue management | Bug tracking |
68
+ | `release-manager` | Release coordination | Versioning |
69
+ | `workflow-automation` | CI/CD automation | GitHub Actions |
70
+ | `github-modes` | GitHub operations | Multi-mode GitHub |
71
+ | `multi-repo-swarm` | Cross-repo sync | Monorepo management |
72
+ | `project-board-sync` | Project boards | Kanban/Projects |
73
+ | `release-swarm` | Release automation | Deployments |
74
+ | `repo-architect` | Repository structure | Architecture |
75
+ | `swarm-issue` | Issue-based swarms | Task decomposition |
76
+ | `swarm-pr` | PR-based swarms | Review workflows |
77
+ | `sync-coordinator` | Multi-repo sync | Version alignment |
78
+ | `github-pr-manager` | PR management template | PR workflows |
79
+
80
+ ## SPARC Methodology (5)
81
+
82
+ | Agent | Description | Best For |
83
+ |-------|-------------|----------|
84
+ | `sparc-coordinator` | SPARC orchestration | Full SPARC cycle |
85
+ | `specification` | Requirements phase | Specs writing |
86
+ | `pseudocode` | Algorithm design | Logic design |
87
+ | `architecture` | System design | Architecture |
88
+ | `refinement` | Iteration phase | Improvements |
89
+
90
+ ## Optimization (6)
91
+
92
+ | Agent | Description | Best For |
93
+ |-------|-------------|----------|
94
+ | `topology-optimizer` | Swarm topology | Network optimization |
95
+ | `load-balancer` | Task distribution | Workload balancing |
96
+ | `resource-allocator` | Resource management | Capacity planning |
97
+ | `performance-monitor` | Metrics tracking | Observability |
98
+ | `benchmark-suite` | Performance testing | Benchmarks |
99
+ | `performance-analyzer` | Analysis | Bottleneck detection |
100
+
101
+ ## Sublinear Algorithms (5)
102
+
103
+ | Agent | Description | Best For |
104
+ |-------|-------------|----------|
105
+ | `matrix-optimizer` | Matrix analysis | Linear systems |
106
+ | `pagerank-analyzer` | Graph analysis | Network influence |
107
+ | `performance-optimizer` | System optimization | Resource efficiency |
108
+ | `trading-predictor` | Market analysis | Financial predictions |
109
+ | `consensus-coordinator` | Fast consensus | Distributed coordination |
110
+
111
+ ## Analysis (2)
112
+
113
+ | Agent | Description | Best For |
114
+ |-------|-------------|----------|
115
+ | `analyze-code-quality` | Code quality | Static analysis |
116
+ | `code-analyzer` | Code analysis | Pattern detection |
117
+
118
+ ## Architecture (1)
119
+
120
+ | Agent | Description | Best For |
121
+ |-------|-------------|----------|
122
+ | `arch-system-design` | System design | High-level architecture |
123
+
124
+ ## Data & ML (1)
125
+
126
+ | Agent | Description | Best For |
127
+ |-------|-------------|----------|
128
+ | `data-ml-model` | ML models | Machine learning |
129
+
130
+ ## Development (1)
131
+
132
+ | Agent | Description | Best For |
133
+ |-------|-------------|----------|
134
+ | `dev-backend-api` | Backend APIs | REST/GraphQL |
135
+
136
+ ## DevOps (1)
137
+
138
+ | Agent | Description | Best For |
139
+ |-------|-------------|----------|
140
+ | `ops-cicd-github` | CI/CD pipelines | GitHub Actions |
141
+
142
+ ## Documentation (1)
143
+
144
+ | Agent | Description | Best For |
145
+ |-------|-------------|----------|
146
+ | `docs-api-openapi` | API documentation | OpenAPI specs |
147
+
148
+ ## Flow Nexus (9)
149
+
150
+ | Agent | Description | Best For |
151
+ |-------|-------------|----------|
152
+ | `app-store` | App marketplace | App publishing |
153
+ | `authentication` | User auth | Login/registration |
154
+ | `challenges` | Coding challenges | Gamification |
155
+ | `neural-network` | Neural training | ML deployment |
156
+ | `payments` | Payment processing | Credits/billing |
157
+ | `sandbox` | E2B sandboxes | Isolated execution |
158
+ | `swarm` | Cloud swarms | Cloud coordination |
159
+ | `user-tools` | User management | Profile/storage |
160
+ | `workflow` | Workflow automation | Event-driven |
161
+
162
+ ## Goal Planning (2)
163
+
164
+ | Agent | Description | Best For |
165
+ |-------|-------------|----------|
166
+ | `goal-planner` | GOAP planning | Goal achievement |
167
+ | `agent` | General goal agent | Multi-purpose |
168
+
169
+ ## Payments (1)
170
+
171
+ | Agent | Description | Best For |
172
+ |-------|-------------|----------|
173
+ | `agentic-payments` | AI commerce | Autonomous payments |
174
+
175
+ ## Specialized (1)
176
+
177
+ | Agent | Description | Best For |
178
+ |-------|-------------|----------|
179
+ | `spec-mobile-react-native` | React Native | Mobile development |
180
+
181
+ ## Templates (8)
182
+
183
+ | Agent | Description | Best For |
184
+ |-------|-------------|----------|
185
+ | `automation-smart-agent` | Smart automation | Auto-spawning |
186
+ | `coordinator-swarm-init` | Swarm setup | Initialization |
187
+ | `github-pr-manager` | PR workflows | GitHub PRs |
188
+ | `implementer-sparc-coder` | SPARC coding | Implementation |
189
+ | `memory-coordinator` | Memory management | State coordination |
190
+ | `orchestrator-task` | Task orchestration | Workflow management |
191
+ | `performance-analyzer` | Performance | Analysis |
192
+ | `sparc-coordinator` | SPARC | Methodology |
193
+
194
+ ## Testing (3)
195
+
196
+ | Agent | Description | Best For |
197
+ |-------|-------------|----------|
198
+ | `tdd-london-swarm` | TDD London School | Mock-first TDD |
199
+ | `production-validator` | Deployment validation | Pre-deploy checks |
200
+ | `test-long-runner` | Long-running tests | Complex test suites |
201
+
202
+ ## Quick Reference
22
203
 
23
- For full list and details:
24
204
  ```bash
25
- npx claude-flow agents list
205
+ # List all agent types
206
+ npx claude-flow agent spawn --help
207
+
208
+ # Spawn any agent
209
+ npx claude-flow agent spawn -t <agent-type>
26
210
  ```
211
+
212
+ ## See Also
213
+
214
+ - [agent-capabilities](./agent-capabilities.md) - Capability matrix
215
+ - [agent-coordination](./agent-coordination.md) - Coordination patterns
216
+ - [spawn](./spawn.md) - Spawn command details
@@ -0,0 +1,139 @@
1
+ ---
2
+ name: health
3
+ description: Show agent health and metrics
4
+ type: command
5
+ ---
6
+
7
+ # Agent Health Command
8
+
9
+ Monitor agent health status, resource usage, and detect issues.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ npx claude-flow agent health [agent-id] [options]
15
+ ```
16
+
17
+ ## Options
18
+
19
+ | Option | Short | Description | Default |
20
+ |--------|-------|-------------|---------|
21
+ | `--watch` | `-w` | Continuous monitoring | false |
22
+ | `--interval` | `-i` | Watch interval in seconds | 5 |
23
+ | `--format` | | Output format (table, json) | table |
24
+
25
+ ## Examples
26
+
27
+ ```bash
28
+ # Overall health check
29
+ npx claude-flow agent health
30
+
31
+ # Specific agent health
32
+ npx claude-flow agent health coder-lx7m9k2
33
+
34
+ # Continuous monitoring
35
+ npx claude-flow agent health --watch
36
+
37
+ # Custom interval
38
+ npx claude-flow agent health -w -i 10
39
+
40
+ # JSON output
41
+ npx claude-flow agent health --format json
42
+ ```
43
+
44
+ ## Output
45
+
46
+ ```
47
+ Agent Health Status
48
+
49
+ Overall: HEALTHY
50
+
51
+ +--------------------+---------+--------+--------+---------+
52
+ | Agent | Status | Memory | CPU | Tasks |
53
+ +--------------------+---------+--------+--------+---------+
54
+ | coder-lx7m9k2 | healthy | 45MB | 2.3% | 5/5 |
55
+ | researcher-abc123 | healthy | 38MB | 1.8% | 3/3 |
56
+ | tester-def456 | warning | 120MB | 8.5% | 12/14 |
57
+ +--------------------+---------+--------+--------+---------+
58
+
59
+ Alerts
60
+ - tester-def456: High memory usage (120MB > 100MB threshold)
61
+ - tester-def456: Task failure rate above threshold (14.3%)
62
+
63
+ Recommendations
64
+ - Consider restarting tester-def456
65
+ - Review failed tasks for error patterns
66
+ ```
67
+
68
+ ## Health Status Values
69
+
70
+ | Status | Description |
71
+ |--------|-------------|
72
+ | `healthy` | All metrics within normal range |
73
+ | `warning` | Some metrics approaching thresholds |
74
+ | `critical` | Metrics exceeded critical thresholds |
75
+ | `unknown` | Unable to determine health |
76
+
77
+ ## Health Checks
78
+
79
+ ### Resource Checks
80
+ - Memory usage vs threshold
81
+ - CPU utilization
82
+ - Active connections
83
+ - Queue depth
84
+
85
+ ### Performance Checks
86
+ - Response time
87
+ - Task success rate
88
+ - Error frequency
89
+ - Throughput
90
+
91
+ ### Connectivity Checks
92
+ - MCP server connection
93
+ - Memory backend
94
+ - Neural services
95
+ - Swarm coordination
96
+
97
+ ## Watch Mode
98
+
99
+ Continuous monitoring with real-time updates:
100
+
101
+ ```bash
102
+ npx claude-flow agent health --watch
103
+
104
+ # Output updates every 5 seconds:
105
+ # [10:30:15] Agent Health: 3 healthy, 0 warning, 0 critical
106
+ # [10:30:20] Agent Health: 3 healthy, 0 warning, 0 critical
107
+ # [10:30:25] Agent Health: 2 healthy, 1 warning, 0 critical
108
+ # - tester-def456: Memory usage increased to 115MB
109
+ ```
110
+
111
+ Press `Ctrl+C` to stop watching.
112
+
113
+ ## JSON Output
114
+
115
+ ```json
116
+ {
117
+ "overall": "healthy",
118
+ "agents": [
119
+ {
120
+ "id": "coder-lx7m9k2",
121
+ "status": "healthy",
122
+ "metrics": {
123
+ "memoryMB": 45,
124
+ "cpuPercent": 2.3,
125
+ "tasksCompleted": 5,
126
+ "tasksTotal": 5
127
+ }
128
+ }
129
+ ],
130
+ "alerts": [],
131
+ "recommendations": []
132
+ }
133
+ ```
134
+
135
+ ## Related Commands
136
+
137
+ - `npx claude-flow agent status` - Detailed agent info
138
+ - `npx claude-flow agent metrics` - Performance metrics
139
+ - `npx claude-flow doctor` - System-wide health
@@ -0,0 +1,100 @@
1
+ ---
2
+ name: list
3
+ description: List all active agents
4
+ aliases: [ls]
5
+ type: command
6
+ ---
7
+
8
+ # Agent List Command
9
+
10
+ List all active agents in the Claude Flow system with filtering options.
11
+
12
+ ## Usage
13
+
14
+ ```bash
15
+ npx claude-flow agent list [options]
16
+ npx claude-flow agent ls [options] # Alias
17
+ ```
18
+
19
+ ## Options
20
+
21
+ | Option | Short | Description | Default |
22
+ |--------|-------|-------------|---------|
23
+ | `--all` | `-a` | Include inactive/terminated agents | false |
24
+ | `--type` | `-t` | Filter by agent type | All |
25
+ | `--status` | `-s` | Filter by status (active, idle, terminated) | active |
26
+ | `--format` | | Output format (table, json) | table |
27
+
28
+ ## Examples
29
+
30
+ ```bash
31
+ # List all active agents
32
+ npx claude-flow agent list
33
+
34
+ # List all agents including inactive
35
+ npx claude-flow agent list --all
36
+
37
+ # Filter by type
38
+ npx claude-flow agent list -t coder
39
+
40
+ # Filter by status
41
+ npx claude-flow agent list -s idle
42
+
43
+ # JSON output for scripting
44
+ npx claude-flow agent list --format json
45
+
46
+ # Combined filters
47
+ npx claude-flow agent list -t researcher -s active
48
+ ```
49
+
50
+ ## Output
51
+
52
+ ```
53
+ Active Agents
54
+
55
+ +--------------------+-----------+--------+----------+---------------+
56
+ | ID | Type | Status | Created | Last Activity |
57
+ +--------------------+-----------+--------+----------+---------------+
58
+ | coder-lx7m9k2 | coder | active | 10:30:15 | 10:45:23 |
59
+ | researcher-abc123 | researcher| idle | 09:15:00 | 10:20:45 |
60
+ | tester-def456 | tester | active | 11:00:00 | 11:12:30 |
61
+ +--------------------+-----------+--------+----------+---------------+
62
+
63
+ Total: 3 agents
64
+ ```
65
+
66
+ ## JSON Output
67
+
68
+ ```json
69
+ {
70
+ "agents": [
71
+ {
72
+ "id": "coder-lx7m9k2",
73
+ "agentType": "coder",
74
+ "status": "active",
75
+ "createdAt": "2026-01-08T10:30:15.000Z",
76
+ "lastActivityAt": "2026-01-08T10:45:23.000Z"
77
+ }
78
+ ],
79
+ "total": 3
80
+ }
81
+ ```
82
+
83
+ ## Status Values
84
+
85
+ | Status | Description |
86
+ |--------|-------------|
87
+ | `active` | Agent is currently executing tasks |
88
+ | `idle` | Agent is waiting for tasks |
89
+ | `terminated` | Agent has been stopped |
90
+
91
+ ## Agent Type Categories
92
+
93
+ Use `--type` with any of the 87 agent types:
94
+
95
+ - Core: `coder`, `reviewer`, `tester`, `planner`, `researcher`
96
+ - V3: `security-architect`, `memory-specialist`, `performance-engineer`
97
+ - Swarm: `hierarchical-coordinator`, `mesh-coordinator`, `adaptive-coordinator`
98
+ - Consensus: `byzantine-coordinator`, `raft-manager`, `gossip-coordinator`
99
+ - GitHub: `pr-manager`, `code-review-swarm`, `release-manager`
100
+ - SPARC: `sparc-coordinator`, `specification`, `architecture`