@claude-flow/cli 3.36.0 → 3.38.0
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.
- package/.claude/agents/github/code-review-swarm.md +1 -1
- package/.claude/agents/github/issue-tracker.md +1 -1
- package/.claude/agents/github/pr-manager.md +1 -1
- package/.claude/agents/github/release-manager.md +2 -2
- package/.claude/agents/github/repo-architect.md +2 -2
- package/.claude/agents/github/workflow-automation.md +1 -1
- package/.claude/agents/optimization/benchmark-suite.md +8 -8
- package/.claude/agents/optimization/load-balancer.md +7 -7
- package/.claude/agents/optimization/performance-monitor.md +8 -8
- package/.claude/agents/optimization/resource-allocator.md +9 -9
- package/.claude/agents/optimization/topology-optimizer.md +8 -8
- package/.claude/commands/agents/README.md +4 -4
- package/.claude/commands/agents/agent-capabilities.md +1 -1
- package/.claude/commands/agents/agent-coordination.md +3 -3
- package/.claude/commands/agents/agent-types.md +2 -2
- package/.claude/commands/agents/health.md +10 -10
- package/.claude/commands/agents/list.md +8 -8
- package/.claude/commands/agents/logs.md +16 -16
- package/.claude/commands/agents/metrics.md +9 -9
- package/.claude/commands/agents/pool.md +10 -10
- package/.claude/commands/agents/spawn.md +35 -35
- package/.claude/commands/agents/status.md +9 -9
- package/.claude/commands/agents/stop.md +15 -15
- package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +1 -1
- package/.claude/commands/analysis/bottleneck-detect.md +5 -5
- package/.claude/commands/analysis/performance-report.md +4 -4
- package/.claude/commands/analysis/token-usage.md +4 -4
- package/.claude/commands/automation/auto-agent.md +5 -5
- package/.claude/commands/automation/self-healing.md +1 -1
- package/.claude/commands/automation/session-memory.md +1 -1
- package/.claude/commands/automation/smart-agents.md +1 -1
- package/.claude/commands/automation/smart-spawn.md +4 -4
- package/.claude/commands/automation/workflow-select.md +4 -4
- package/.claude/commands/claude-flow-help.md +1 -1
- package/.claude/commands/coordination/agent-spawn.md +4 -4
- package/.claude/commands/coordination/swarm-init.md +5 -5
- package/.claude/commands/coordination/task-orchestrate.md +4 -4
- package/.claude/commands/github/code-review.md +4 -4
- package/.claude/commands/github/github-swarm.md +5 -5
- package/.claude/commands/github/issue-triage.md +4 -4
- package/.claude/commands/github/pr-enhance.md +4 -4
- package/.claude/commands/github/release-manager.md +1 -1
- package/.claude/commands/github/repo-analyze.md +4 -4
- package/.claude/commands/github/repo-architect.md +2 -2
- package/.claude/commands/hive-mind/hive-mind-consensus.md +1 -1
- package/.claude/commands/hive-mind/hive-mind-init.md +3 -3
- package/.claude/commands/hive-mind/hive-mind-memory.md +1 -1
- package/.claude/commands/hive-mind/hive-mind-metrics.md +1 -1
- package/.claude/commands/hive-mind/hive-mind-resume.md +1 -1
- package/.claude/commands/hive-mind/hive-mind-sessions.md +1 -1
- package/.claude/commands/hive-mind/hive-mind-spawn.md +4 -4
- package/.claude/commands/hive-mind/hive-mind-status.md +1 -1
- package/.claude/commands/hive-mind/hive-mind-stop.md +1 -1
- package/.claude/commands/hive-mind/hive-mind-wizard.md +1 -1
- package/.claude/commands/hive-mind/hive-mind.md +4 -4
- package/.claude/commands/hooks/overview.md +1 -1
- package/.claude/commands/hooks/post-edit.md +6 -6
- package/.claude/commands/hooks/post-task.md +6 -6
- package/.claude/commands/hooks/pre-edit.md +6 -6
- package/.claude/commands/hooks/pre-task.md +6 -6
- package/.claude/commands/hooks/session-end.md +6 -6
- package/.claude/commands/hooks/setup.md +6 -6
- package/.claude/commands/memory/memory-persist.md +4 -4
- package/.claude/commands/memory/memory-search.md +4 -4
- package/.claude/commands/memory/memory-usage.md +4 -4
- package/.claude/commands/monitoring/agent-metrics.md +4 -4
- package/.claude/commands/monitoring/real-time-view.md +4 -4
- package/.claude/commands/monitoring/swarm-monitor.md +4 -4
- package/.claude/commands/optimization/auto-topology.md +2 -2
- package/.claude/commands/optimization/cache-manage.md +4 -4
- package/.claude/commands/optimization/parallel-execute.md +4 -4
- package/.claude/commands/optimization/parallel-execution.md +1 -1
- package/.claude/commands/optimization/topology-optimize.md +4 -4
- package/.claude/commands/sparc/analyzer.md +1 -1
- package/.claude/commands/sparc/architect.md +1 -1
- package/.claude/commands/sparc/ask.md +5 -5
- package/.claude/commands/sparc/batch-executor.md +1 -1
- package/.claude/commands/sparc/code.md +5 -5
- package/.claude/commands/sparc/coder.md +1 -1
- package/.claude/commands/sparc/debug.md +5 -5
- package/.claude/commands/sparc/debugger.md +1 -1
- package/.claude/commands/sparc/designer.md +1 -1
- package/.claude/commands/sparc/devops.md +5 -5
- package/.claude/commands/sparc/docs-writer.md +5 -5
- package/.claude/commands/sparc/documenter.md +1 -1
- package/.claude/commands/sparc/innovator.md +1 -1
- package/.claude/commands/sparc/integration.md +5 -5
- package/.claude/commands/sparc/mcp.md +5 -5
- package/.claude/commands/sparc/memory-manager.md +1 -1
- package/.claude/commands/sparc/optimizer.md +1 -1
- package/.claude/commands/sparc/orchestrator.md +8 -8
- package/.claude/commands/sparc/post-deployment-monitoring-mode.md +5 -5
- package/.claude/commands/sparc/refinement-optimization-mode.md +5 -5
- package/.claude/commands/sparc/researcher.md +1 -1
- package/.claude/commands/sparc/reviewer.md +1 -1
- package/.claude/commands/sparc/security-review.md +5 -5
- package/.claude/commands/sparc/sparc-modes.md +11 -11
- package/.claude/commands/sparc/sparc.md +5 -5
- package/.claude/commands/sparc/spec-pseudocode.md +5 -5
- package/.claude/commands/sparc/supabase-admin.md +5 -5
- package/.claude/commands/sparc/swarm-coordinator.md +1 -1
- package/.claude/commands/sparc/tdd.md +1 -1
- package/.claude/commands/sparc/tester.md +1 -1
- package/.claude/commands/sparc/tutorial.md +5 -5
- package/.claude/commands/sparc/workflow-manager.md +1 -1
- package/.claude/commands/sparc.md +6 -6
- package/.claude/commands/swarm/analysis.md +1 -1
- package/.claude/commands/swarm/development.md +1 -1
- package/.claude/commands/swarm/examples.md +3 -3
- package/.claude/commands/swarm/maintenance.md +1 -1
- package/.claude/commands/swarm/optimization.md +1 -1
- package/.claude/commands/swarm/research.md +1 -1
- package/.claude/commands/swarm/swarm-analysis.md +1 -1
- package/.claude/commands/swarm/swarm-background.md +1 -1
- package/.claude/commands/swarm/swarm-init.md +3 -3
- package/.claude/commands/swarm/swarm-modes.md +1 -1
- package/.claude/commands/swarm/swarm-monitor.md +1 -1
- package/.claude/commands/swarm/swarm-spawn.md +3 -3
- package/.claude/commands/swarm/swarm-status.md +1 -1
- package/.claude/commands/swarm/swarm-strategies.md +1 -1
- package/.claude/commands/swarm/testing.md +1 -1
- package/.claude/commands/training/model-update.md +4 -4
- package/.claude/commands/training/neural-patterns.md +12 -12
- package/.claude/commands/training/neural-train.md +8 -8
- package/.claude/commands/training/pattern-learn.md +4 -4
- package/.claude/commands/training/specialization.md +2 -2
- package/.claude/commands/workflows/development.md +3 -3
- package/.claude/commands/workflows/research.md +2 -2
- package/.claude/commands/workflows/workflow-create.md +4 -4
- package/.claude/commands/workflows/workflow-execute.md +4 -4
- package/.claude/commands/workflows/workflow-export.md +4 -4
- package/.claude/helpers/.helpers-version +1 -1
- package/.claude/helpers/auto-memory-hook.mjs +1 -1
- package/.claude/helpers/github-setup.sh +4 -4
- package/.claude/helpers/helpers.manifest.json +3 -3
- package/.claude/helpers/quick-start.sh +4 -4
- package/.claude/helpers/setup-mcp.sh +1 -1
- package/.claude/helpers/statusline.cjs +0 -0
- package/.claude/settings.json +1 -1
- package/.claude/skills/dual-mode/dual-spawn.md +2 -2
- package/.claude/skills/github-multi-repo/SKILL.md +21 -21
- package/.claude/skills/github-release-management/SKILL.md +19 -19
- package/.claude/skills/hooks-automation/SKILL.md +107 -107
- package/.claude/skills/sparc-methodology/SKILL.md +26 -26
- package/.claude/skills/swarm-advanced/SKILL.md +3 -3
- package/catalog-manifest.json +2 -2
- package/dist/src/commands/migrate-agent-detection.d.ts +27 -0
- package/dist/src/commands/migrate-agent-detection.js +113 -0
- package/dist/src/commands/migrate.js +41 -3
- package/dist/src/commands/proxy-lifecycle.d.ts +19 -2
- package/dist/src/commands/proxy-lifecycle.js +49 -5
- package/dist/src/commands/proxy.js +184 -23
- package/dist/src/proxy/install.d.ts +26 -0
- package/dist/src/proxy/install.js +60 -19
- package/dist/src/proxy/lifecycle.d.ts +21 -4
- package/dist/src/proxy/lifecycle.js +38 -8
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ Spawn a new agent with full V3 capabilities including neural patterns, memory in
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx claude-flow agent spawn [options]
|
|
14
|
+
npx @claude-flow/cli@latest agent spawn [options]
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Options
|
|
@@ -30,74 +30,74 @@ npx claude-flow agent spawn [options]
|
|
|
30
30
|
|
|
31
31
|
### Core Development
|
|
32
32
|
```bash
|
|
33
|
-
npx claude-flow agent spawn -t coder # Code implementation
|
|
34
|
-
npx claude-flow agent spawn -t reviewer # Code review
|
|
35
|
-
npx claude-flow agent spawn -t tester # Testing
|
|
36
|
-
npx claude-flow agent spawn -t planner # Planning
|
|
37
|
-
npx claude-flow agent spawn -t researcher # Research
|
|
33
|
+
npx @claude-flow/cli@latest agent spawn -t coder # Code implementation
|
|
34
|
+
npx @claude-flow/cli@latest agent spawn -t reviewer # Code review
|
|
35
|
+
npx @claude-flow/cli@latest agent spawn -t tester # Testing
|
|
36
|
+
npx @claude-flow/cli@latest agent spawn -t planner # Planning
|
|
37
|
+
npx @claude-flow/cli@latest agent spawn -t researcher # Research
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### V3 Specialized
|
|
41
41
|
```bash
|
|
42
|
-
npx claude-flow agent spawn -t security-architect # Security design
|
|
43
|
-
npx claude-flow agent spawn -t security-auditor # CVE remediation
|
|
44
|
-
npx claude-flow agent spawn -t memory-specialist # AgentDB (150x-12,500x faster)
|
|
45
|
-
npx claude-flow agent spawn -t performance-engineer # 2.49x-7.47x optimization
|
|
46
|
-
npx claude-flow agent spawn -t core-architect # DDD design
|
|
42
|
+
npx @claude-flow/cli@latest agent spawn -t security-architect # Security design
|
|
43
|
+
npx @claude-flow/cli@latest agent spawn -t security-auditor # CVE remediation
|
|
44
|
+
npx @claude-flow/cli@latest agent spawn -t memory-specialist # AgentDB (150x-12,500x faster)
|
|
45
|
+
npx @claude-flow/cli@latest agent spawn -t performance-engineer # 2.49x-7.47x optimization
|
|
46
|
+
npx @claude-flow/cli@latest agent spawn -t core-architect # DDD design
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
### Swarm Coordination
|
|
50
50
|
```bash
|
|
51
|
-
npx claude-flow agent spawn -t hierarchical-coordinator # Queen-led
|
|
52
|
-
npx claude-flow agent spawn -t mesh-coordinator # P2P network
|
|
53
|
-
npx claude-flow agent spawn -t adaptive-coordinator # Dynamic topology
|
|
54
|
-
npx claude-flow agent spawn -t collective-intelligence-coordinator
|
|
51
|
+
npx @claude-flow/cli@latest agent spawn -t hierarchical-coordinator # Queen-led
|
|
52
|
+
npx @claude-flow/cli@latest agent spawn -t mesh-coordinator # P2P network
|
|
53
|
+
npx @claude-flow/cli@latest agent spawn -t adaptive-coordinator # Dynamic topology
|
|
54
|
+
npx @claude-flow/cli@latest agent spawn -t collective-intelligence-coordinator
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
### Consensus Agents
|
|
58
58
|
```bash
|
|
59
|
-
npx claude-flow agent spawn -t byzantine-coordinator # BFT consensus
|
|
60
|
-
npx claude-flow agent spawn -t raft-manager # Leader-based
|
|
61
|
-
npx claude-flow agent spawn -t gossip-coordinator # Eventual consistency
|
|
62
|
-
npx claude-flow agent spawn -t crdt-synchronizer # CRDT replication
|
|
63
|
-
npx claude-flow agent spawn -t quorum-manager # Quorum-based
|
|
59
|
+
npx @claude-flow/cli@latest agent spawn -t byzantine-coordinator # BFT consensus
|
|
60
|
+
npx @claude-flow/cli@latest agent spawn -t raft-manager # Leader-based
|
|
61
|
+
npx @claude-flow/cli@latest agent spawn -t gossip-coordinator # Eventual consistency
|
|
62
|
+
npx @claude-flow/cli@latest agent spawn -t crdt-synchronizer # CRDT replication
|
|
63
|
+
npx @claude-flow/cli@latest agent spawn -t quorum-manager # Quorum-based
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
### GitHub Integration
|
|
67
67
|
```bash
|
|
68
|
-
npx claude-flow agent spawn -t pr-manager # PR lifecycle
|
|
69
|
-
npx claude-flow agent spawn -t code-review-swarm # Multi-agent review
|
|
70
|
-
npx claude-flow agent spawn -t issue-tracker # Issue management
|
|
71
|
-
npx claude-flow agent spawn -t release-manager # Release coordination
|
|
72
|
-
npx claude-flow agent spawn -t workflow-automation # CI/CD automation
|
|
68
|
+
npx @claude-flow/cli@latest agent spawn -t pr-manager # PR lifecycle
|
|
69
|
+
npx @claude-flow/cli@latest agent spawn -t code-review-swarm # Multi-agent review
|
|
70
|
+
npx @claude-flow/cli@latest agent spawn -t issue-tracker # Issue management
|
|
71
|
+
npx @claude-flow/cli@latest agent spawn -t release-manager # Release coordination
|
|
72
|
+
npx @claude-flow/cli@latest agent spawn -t workflow-automation # CI/CD automation
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### SPARC Methodology
|
|
76
76
|
```bash
|
|
77
|
-
npx claude-flow agent spawn -t sparc-coordinator # SPARC orchestration
|
|
78
|
-
npx claude-flow agent spawn -t specification # Requirements
|
|
79
|
-
npx claude-flow agent spawn -t pseudocode # Algorithm design
|
|
80
|
-
npx claude-flow agent spawn -t architecture # System design
|
|
81
|
-
npx claude-flow agent spawn -t refinement # Iterative improvement
|
|
77
|
+
npx @claude-flow/cli@latest agent spawn -t sparc-coordinator # SPARC orchestration
|
|
78
|
+
npx @claude-flow/cli@latest agent spawn -t specification # Requirements
|
|
79
|
+
npx @claude-flow/cli@latest agent spawn -t pseudocode # Algorithm design
|
|
80
|
+
npx @claude-flow/cli@latest agent spawn -t architecture # System design
|
|
81
|
+
npx @claude-flow/cli@latest agent spawn -t refinement # Iterative improvement
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
## Examples
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
87
|
# Spawn with custom name
|
|
88
|
-
npx claude-flow agent spawn -t coder --name feature-bot
|
|
88
|
+
npx @claude-flow/cli@latest agent spawn -t coder --name feature-bot
|
|
89
89
|
|
|
90
90
|
# Spawn with initial task
|
|
91
|
-
npx claude-flow agent spawn -t researcher --task "Research React 19 features"
|
|
91
|
+
npx @claude-flow/cli@latest agent spawn -t researcher --task "Research React 19 features"
|
|
92
92
|
|
|
93
93
|
# Spawn with specific model
|
|
94
|
-
npx claude-flow agent spawn -t architect -m claude-3-opus-20240229
|
|
94
|
+
npx @claude-flow/cli@latest agent spawn -t architect -m claude-3-opus-20240229
|
|
95
95
|
|
|
96
96
|
# Spawn with custom timeout
|
|
97
|
-
npx claude-flow agent spawn -t tester --timeout 600
|
|
97
|
+
npx @claude-flow/cli@latest agent spawn -t tester --timeout 600
|
|
98
98
|
|
|
99
99
|
# Spawn using OpenRouter
|
|
100
|
-
npx claude-flow agent spawn -t coder -p openrouter -m anthropic/claude-3.5-sonnet
|
|
100
|
+
npx @claude-flow/cli@latest agent spawn -t coder -p openrouter -m anthropic/claude-3.5-sonnet
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
## Using Claude Code's Task Tool
|
|
@@ -11,8 +11,8 @@ Display comprehensive status information for a specific agent including metrics,
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx claude-flow agent status <agent-id>
|
|
15
|
-
npx claude-flow agent status --id <agent-id>
|
|
14
|
+
npx @claude-flow/cli@latest agent status <agent-id>
|
|
15
|
+
npx @claude-flow/cli@latest agent status --id <agent-id>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Options
|
|
@@ -26,13 +26,13 @@ npx claude-flow agent status --id <agent-id>
|
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
# Get status by ID
|
|
29
|
-
npx claude-flow agent status coder-lx7m9k2
|
|
29
|
+
npx @claude-flow/cli@latest agent status coder-lx7m9k2
|
|
30
30
|
|
|
31
31
|
# Using --id flag
|
|
32
|
-
npx claude-flow agent status --id researcher-abc123
|
|
32
|
+
npx @claude-flow/cli@latest agent status --id researcher-abc123
|
|
33
33
|
|
|
34
34
|
# JSON output
|
|
35
|
-
npx claude-flow agent status coder-lx7m9k2 --format json
|
|
35
|
+
npx @claude-flow/cli@latest agent status coder-lx7m9k2 --format json
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Output
|
|
@@ -109,7 +109,7 @@ The status command provides:
|
|
|
109
109
|
|
|
110
110
|
## Related Commands
|
|
111
111
|
|
|
112
|
-
- `npx claude-flow agent list` - Find agent IDs
|
|
113
|
-
- `npx claude-flow agent metrics` - Aggregate metrics
|
|
114
|
-
- `npx claude-flow agent health` - Health check
|
|
115
|
-
- `npx claude-flow agent logs <id>` - Activity logs
|
|
112
|
+
- `npx @claude-flow/cli@latest agent list` - Find agent IDs
|
|
113
|
+
- `npx @claude-flow/cli@latest agent metrics` - Aggregate metrics
|
|
114
|
+
- `npx @claude-flow/cli@latest agent health` - Health check
|
|
115
|
+
- `npx @claude-flow/cli@latest agent logs <id>` - Activity logs
|
|
@@ -12,8 +12,8 @@ Stop a running agent with graceful or forced shutdown options.
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npx claude-flow agent stop <agent-id> [options]
|
|
16
|
-
npx claude-flow agent kill <agent-id> [options] # Alias
|
|
15
|
+
npx @claude-flow/cli@latest agent stop <agent-id> [options]
|
|
16
|
+
npx @claude-flow/cli@latest agent kill <agent-id> [options] # Alias
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Options
|
|
@@ -27,16 +27,16 @@ npx claude-flow agent kill <agent-id> [options] # Alias
|
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
29
|
# Graceful stop (completes current task)
|
|
30
|
-
npx claude-flow agent stop coder-lx7m9k2
|
|
30
|
+
npx @claude-flow/cli@latest agent stop coder-lx7m9k2
|
|
31
31
|
|
|
32
32
|
# Force stop (immediate termination)
|
|
33
|
-
npx claude-flow agent stop coder-lx7m9k2 --force
|
|
33
|
+
npx @claude-flow/cli@latest agent stop coder-lx7m9k2 --force
|
|
34
34
|
|
|
35
35
|
# Custom shutdown timeout
|
|
36
|
-
npx claude-flow agent stop coder-lx7m9k2 --timeout 60
|
|
36
|
+
npx @claude-flow/cli@latest agent stop coder-lx7m9k2 --timeout 60
|
|
37
37
|
|
|
38
38
|
# Using kill alias
|
|
39
|
-
npx claude-flow agent kill researcher-abc123 -f
|
|
39
|
+
npx @claude-flow/cli@latest agent kill researcher-abc123 -f
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Graceful vs Force Stop
|
|
@@ -48,7 +48,7 @@ npx claude-flow agent kill researcher-abc123 -f
|
|
|
48
48
|
4. Notifies swarm coordinator
|
|
49
49
|
|
|
50
50
|
```bash
|
|
51
|
-
npx claude-flow agent stop coder-lx7m9k2
|
|
51
|
+
npx @claude-flow/cli@latest agent stop coder-lx7m9k2
|
|
52
52
|
|
|
53
53
|
# Output:
|
|
54
54
|
# Stopping agent coder-lx7m9k2...
|
|
@@ -64,7 +64,7 @@ npx claude-flow agent stop coder-lx7m9k2
|
|
|
64
64
|
3. May leave tasks incomplete
|
|
65
65
|
|
|
66
66
|
```bash
|
|
67
|
-
npx claude-flow agent stop coder-lx7m9k2 --force
|
|
67
|
+
npx @claude-flow/cli@latest agent stop coder-lx7m9k2 --force
|
|
68
68
|
|
|
69
69
|
# Output:
|
|
70
70
|
# Stopping agent coder-lx7m9k2...
|
|
@@ -85,18 +85,18 @@ To stop multiple agents:
|
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
87
|
# Stop all agents of a type
|
|
88
|
-
npx claude-flow agent list -t coder --format json | \
|
|
88
|
+
npx @claude-flow/cli@latest agent list -t coder --format json | \
|
|
89
89
|
jq -r '.agents[].id' | \
|
|
90
|
-
xargs -I {} npx claude-flow agent stop {} -f
|
|
90
|
+
xargs -I {} npx @claude-flow/cli@latest agent stop {} -f
|
|
91
91
|
|
|
92
92
|
# Stop all idle agents
|
|
93
|
-
npx claude-flow agent list -s idle --format json | \
|
|
93
|
+
npx @claude-flow/cli@latest agent list -s idle --format json | \
|
|
94
94
|
jq -r '.agents[].id' | \
|
|
95
|
-
xargs -I {} npx claude-flow agent stop {}
|
|
95
|
+
xargs -I {} npx @claude-flow/cli@latest agent stop {}
|
|
96
96
|
```
|
|
97
97
|
|
|
98
98
|
## Related Commands
|
|
99
99
|
|
|
100
|
-
- `npx claude-flow agent list` - Find agent IDs
|
|
101
|
-
- `npx claude-flow agent status` - Check status before stopping
|
|
102
|
-
- `npx claude-flow swarm destroy` - Stop all agents in swarm
|
|
100
|
+
- `npx @claude-flow/cli@latest agent list` - Find agent IDs
|
|
101
|
+
- `npx @claude-flow/cli@latest agent status` - Check status before stopping
|
|
102
|
+
- `npx @claude-flow/cli@latest swarm destroy` - Stop all agents in swarm
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Overview
|
|
4
4
|
Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of:
|
|
5
5
|
- `mcp__claude-flow__*` tools (preferred)
|
|
6
|
-
- `npx claude-flow` commands (as fallback)
|
|
6
|
+
- `npx @claude-flow/cli@latest` commands (as fallback)
|
|
7
7
|
- No direct implementation calls
|
|
8
8
|
|
|
9
9
|
## Files Reviewed
|
|
@@ -5,7 +5,7 @@ Analyze performance bottlenecks in swarm operations and suggest optimizations.
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx claude-flow bottleneck detect [options]
|
|
8
|
+
npx @claude-flow/cli@latest bottleneck detect [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Options
|
|
@@ -21,25 +21,25 @@ npx claude-flow bottleneck detect [options]
|
|
|
21
21
|
### Basic bottleneck detection
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npx claude-flow bottleneck detect
|
|
24
|
+
npx @claude-flow/cli@latest bottleneck detect
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
### Analyze specific swarm
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
npx claude-flow bottleneck detect --swarm-id swarm-123
|
|
30
|
+
npx @claude-flow/cli@latest bottleneck detect --swarm-id swarm-123
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
### Last 24 hours with export
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
npx claude-flow bottleneck detect -t 24h -e bottlenecks.json
|
|
36
|
+
npx @claude-flow/cli@latest bottleneck detect -t 24h -e bottlenecks.json
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
### Auto-fix detected issues
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
npx claude-flow bottleneck detect --fix --threshold 15
|
|
42
|
+
npx @claude-flow/cli@latest bottleneck detect --fix --threshold 15
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## Metrics Analyzed
|
|
@@ -4,7 +4,7 @@ Generate comprehensive performance reports for swarm operations.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
```bash
|
|
7
|
-
npx claude-flow analysis performance-report [options]
|
|
7
|
+
npx @claude-flow/cli@latest analysis performance-report [options]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Options
|
|
@@ -15,11 +15,11 @@ npx claude-flow analysis performance-report [options]
|
|
|
15
15
|
## Examples
|
|
16
16
|
```bash
|
|
17
17
|
# Generate HTML report
|
|
18
|
-
npx claude-flow analysis performance-report --format html
|
|
18
|
+
npx @claude-flow/cli@latest analysis performance-report --format html
|
|
19
19
|
|
|
20
20
|
# Compare swarms
|
|
21
|
-
npx claude-flow analysis performance-report --compare swarm-123
|
|
21
|
+
npx @claude-flow/cli@latest analysis performance-report --compare swarm-123
|
|
22
22
|
|
|
23
23
|
# Full metrics report
|
|
24
|
-
npx claude-flow analysis performance-report --include-metrics --format markdown
|
|
24
|
+
npx @claude-flow/cli@latest analysis performance-report --include-metrics --format markdown
|
|
25
25
|
```
|
|
@@ -4,7 +4,7 @@ Analyze token usage patterns and optimize for efficiency.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
```bash
|
|
7
|
-
npx claude-flow analysis token-usage [options]
|
|
7
|
+
npx @claude-flow/cli@latest analysis token-usage [options]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Options
|
|
@@ -15,11 +15,11 @@ npx claude-flow analysis token-usage [options]
|
|
|
15
15
|
## Examples
|
|
16
16
|
```bash
|
|
17
17
|
# Last 24 hours token usage
|
|
18
|
-
npx claude-flow analysis token-usage --period 24h
|
|
18
|
+
npx @claude-flow/cli@latest analysis token-usage --period 24h
|
|
19
19
|
|
|
20
20
|
# By agent breakdown
|
|
21
|
-
npx claude-flow analysis token-usage --by-agent
|
|
21
|
+
npx @claude-flow/cli@latest analysis token-usage --by-agent
|
|
22
22
|
|
|
23
23
|
# Export detailed report
|
|
24
|
-
npx claude-flow analysis token-usage --period 7d --export tokens.csv
|
|
24
|
+
npx @claude-flow/cli@latest analysis token-usage --period 7d --export tokens.csv
|
|
25
25
|
```
|
|
@@ -5,7 +5,7 @@ Automatically spawn and manage agents based on task requirements.
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx claude-flow auto agent [options]
|
|
8
|
+
npx @claude-flow/cli@latest auto agent [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Options
|
|
@@ -21,25 +21,25 @@ npx claude-flow auto agent [options]
|
|
|
21
21
|
### Basic auto-spawning
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npx claude-flow auto agent --task "Build a REST API with authentication"
|
|
24
|
+
npx @claude-flow/cli@latest auto agent --task "Build a REST API with authentication"
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
### Constrained spawning
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
npx claude-flow auto agent -t "Debug performance issue" --max-agents 3
|
|
30
|
+
npx @claude-flow/cli@latest auto agent -t "Debug performance issue" --max-agents 3
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
### Analysis only
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
npx claude-flow auto agent -t "Refactor codebase" --no-spawn
|
|
36
|
+
npx @claude-flow/cli@latest auto agent -t "Refactor codebase" --no-spawn
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
### Minimal strategy
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
npx claude-flow auto agent -t "Fix bug in login" -s minimal
|
|
42
|
+
npx @claude-flow/cli@latest auto agent -t "Fix bug in login" -s minimal
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## How It Works
|
|
@@ -94,7 +94,7 @@ mcp__claude-flow__task_orchestrate({
|
|
|
94
94
|
{
|
|
95
95
|
"PostToolUse": [{
|
|
96
96
|
"matcher": "^Bash$",
|
|
97
|
-
"command": "npx claude-flow hook post-bash --exit-code '${tool.result.exitCode}' --auto-recover"
|
|
97
|
+
"command": "npx @claude-flow/cli@latest hook post-bash --exit-code '${tool.result.exitCode}' --auto-recover"
|
|
98
98
|
}]
|
|
99
99
|
}
|
|
100
100
|
```
|
|
@@ -4,7 +4,7 @@ Intelligently spawn agents based on workload analysis.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
```bash
|
|
7
|
-
npx claude-flow automation smart-spawn [options]
|
|
7
|
+
npx @claude-flow/cli@latest automation smart-spawn [options]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Options
|
|
@@ -15,11 +15,11 @@ npx claude-flow automation smart-spawn [options]
|
|
|
15
15
|
## Examples
|
|
16
16
|
```bash
|
|
17
17
|
# Smart spawn with analysis
|
|
18
|
-
npx claude-flow automation smart-spawn --analyze
|
|
18
|
+
npx @claude-flow/cli@latest automation smart-spawn --analyze
|
|
19
19
|
|
|
20
20
|
# Set spawn threshold
|
|
21
|
-
npx claude-flow automation smart-spawn --threshold 5
|
|
21
|
+
npx @claude-flow/cli@latest automation smart-spawn --threshold 5
|
|
22
22
|
|
|
23
23
|
# Force topology
|
|
24
|
-
npx claude-flow automation smart-spawn --topology hierarchical
|
|
24
|
+
npx @claude-flow/cli@latest automation smart-spawn --topology hierarchical
|
|
25
25
|
```
|
|
@@ -4,7 +4,7 @@ Automatically select optimal workflow based on task type.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
```bash
|
|
7
|
-
npx claude-flow automation workflow-select [options]
|
|
7
|
+
npx @claude-flow/cli@latest automation workflow-select [options]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Options
|
|
@@ -15,11 +15,11 @@ npx claude-flow automation workflow-select [options]
|
|
|
15
15
|
## Examples
|
|
16
16
|
```bash
|
|
17
17
|
# Select workflow for task
|
|
18
|
-
npx claude-flow automation workflow-select --task "Deploy to production"
|
|
18
|
+
npx @claude-flow/cli@latest automation workflow-select --task "Deploy to production"
|
|
19
19
|
|
|
20
20
|
# With constraints
|
|
21
|
-
npx claude-flow automation workflow-select --constraints "no-downtime,rollback"
|
|
21
|
+
npx @claude-flow/cli@latest automation workflow-select --constraints "no-downtime,rollback"
|
|
22
22
|
|
|
23
23
|
# Preview mode
|
|
24
|
-
npx claude-flow automation workflow-select --task "Database migration" --preview
|
|
24
|
+
npx @claude-flow/cli@latest automation workflow-select --task "Database migration" --preview
|
|
25
25
|
```
|
|
@@ -91,7 +91,7 @@ npx -y claude-flow@latest init --sparc
|
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
## 🎯 Best Practices
|
|
94
|
-
- Use `./claude-flow` instead of `npx claude-flow` after initialization
|
|
94
|
+
- Use `./claude-flow` instead of `npx @claude-flow/cli@latest` after initialization
|
|
95
95
|
- Store important context in memory for cross-session persistence
|
|
96
96
|
- Use swarm mode for complex tasks requiring multiple agents
|
|
97
97
|
- Enable monitoring for real-time progress tracking
|
|
@@ -4,7 +4,7 @@ Spawn a new agent in the current swarm.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
```bash
|
|
7
|
-
npx claude-flow agent spawn [options]
|
|
7
|
+
npx @claude-flow/cli@latest agent spawn [options]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Options
|
|
@@ -15,11 +15,11 @@ npx claude-flow agent spawn [options]
|
|
|
15
15
|
## Examples
|
|
16
16
|
```bash
|
|
17
17
|
# Spawn coder agent
|
|
18
|
-
npx claude-flow agent spawn --type coder
|
|
18
|
+
npx @claude-flow/cli@latest agent spawn --type coder
|
|
19
19
|
|
|
20
20
|
# With custom name
|
|
21
|
-
npx claude-flow agent spawn --type researcher --name "API Expert"
|
|
21
|
+
npx @claude-flow/cli@latest agent spawn --type researcher --name "API Expert"
|
|
22
22
|
|
|
23
23
|
# With specific skills
|
|
24
|
-
npx claude-flow agent spawn --type coder --skills "python,fastapi,testing"
|
|
24
|
+
npx @claude-flow/cli@latest agent spawn --type coder --skills "python,fastapi,testing"
|
|
25
25
|
```
|
|
@@ -5,7 +5,7 @@ Initialize a Claude Flow swarm with specified topology and configuration.
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx claude-flow swarm init [options]
|
|
8
|
+
npx @claude-flow/cli@latest swarm init [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Options
|
|
@@ -22,25 +22,25 @@ npx claude-flow swarm init [options]
|
|
|
22
22
|
### Basic initialization
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npx claude-flow swarm init
|
|
25
|
+
npx @claude-flow/cli@latest swarm init
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### Mesh topology for research
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
npx claude-flow swarm init --topology mesh --max-agents 5 --strategy balanced
|
|
31
|
+
npx @claude-flow/cli@latest swarm init --topology mesh --max-agents 5 --strategy balanced
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Hierarchical for development
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
npx claude-flow swarm init --topology hierarchical --max-agents 10 --strategy parallel --auto-spawn
|
|
37
|
+
npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 10 --strategy parallel --auto-spawn
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### GitHub-focused swarm
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
npx claude-flow swarm init --topology star --github --memory
|
|
43
|
+
npx @claude-flow/cli@latest swarm init --topology star --github --memory
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
## Topologies
|
|
@@ -4,7 +4,7 @@ Orchestrate complex tasks across the swarm.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
```bash
|
|
7
|
-
npx claude-flow task orchestrate [options]
|
|
7
|
+
npx @claude-flow/cli@latest task orchestrate [options]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Options
|
|
@@ -15,11 +15,11 @@ npx claude-flow task orchestrate [options]
|
|
|
15
15
|
## Examples
|
|
16
16
|
```bash
|
|
17
17
|
# Orchestrate development task
|
|
18
|
-
npx claude-flow task orchestrate --task "Implement user authentication"
|
|
18
|
+
npx @claude-flow/cli@latest task orchestrate --task "Implement user authentication"
|
|
19
19
|
|
|
20
20
|
# High priority task
|
|
21
|
-
npx claude-flow task orchestrate --task "Fix production bug" --priority critical
|
|
21
|
+
npx @claude-flow/cli@latest task orchestrate --task "Fix production bug" --priority critical
|
|
22
22
|
|
|
23
23
|
# With specific strategy
|
|
24
|
-
npx claude-flow task orchestrate --task "Refactor codebase" --strategy parallel
|
|
24
|
+
npx @claude-flow/cli@latest task orchestrate --task "Refactor codebase" --strategy parallel
|
|
25
25
|
```
|
|
@@ -4,7 +4,7 @@ Automated code review with swarm intelligence.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
```bash
|
|
7
|
-
npx claude-flow github code-review [options]
|
|
7
|
+
npx @claude-flow/cli@latest github code-review [options]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Options
|
|
@@ -15,11 +15,11 @@ npx claude-flow github code-review [options]
|
|
|
15
15
|
## Examples
|
|
16
16
|
```bash
|
|
17
17
|
# Review PR
|
|
18
|
-
npx claude-flow github code-review --pr-number 456
|
|
18
|
+
npx @claude-flow/cli@latest github code-review --pr-number 456
|
|
19
19
|
|
|
20
20
|
# Security focus
|
|
21
|
-
npx claude-flow github code-review --pr-number 456 --focus security
|
|
21
|
+
npx @claude-flow/cli@latest github code-review --pr-number 456 --focus security
|
|
22
22
|
|
|
23
23
|
# With fix suggestions
|
|
24
|
-
npx claude-flow github code-review --pr-number 456 --suggest-fixes
|
|
24
|
+
npx @claude-flow/cli@latest github code-review --pr-number 456 --suggest-fixes
|
|
25
25
|
```
|
|
@@ -5,7 +5,7 @@ Create a specialized swarm for GitHub repository management.
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npx claude-flow github swarm [options]
|
|
8
|
+
npx @claude-flow/cli@latest github swarm [options]
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Options
|
|
@@ -22,25 +22,25 @@ npx claude-flow github swarm [options]
|
|
|
22
22
|
### Basic GitHub swarm
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npx claude-flow github swarm --repository owner/repo
|
|
25
|
+
npx @claude-flow/cli@latest github swarm --repository owner/repo
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### Maintenance-focused swarm
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
npx claude-flow github swarm -r owner/repo -f maintenance --issue-labels
|
|
31
|
+
npx @claude-flow/cli@latest github swarm -r owner/repo -f maintenance --issue-labels
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
### Development swarm with PR automation
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
|
-
npx claude-flow github swarm -r owner/repo -f development --auto-pr --code-review
|
|
37
|
+
npx @claude-flow/cli@latest github swarm -r owner/repo -f development --auto-pr --code-review
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
### Full-featured triage swarm
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
npx claude-flow github swarm -r owner/repo -a 8 -f triage --issue-labels --auto-pr
|
|
43
|
+
npx @claude-flow/cli@latest github swarm -r owner/repo -a 8 -f triage --issue-labels --auto-pr
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
## Agent Types
|
|
@@ -4,7 +4,7 @@ Intelligent issue classification and triage.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
```bash
|
|
7
|
-
npx claude-flow github issue-triage [options]
|
|
7
|
+
npx @claude-flow/cli@latest github issue-triage [options]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Options
|
|
@@ -15,11 +15,11 @@ npx claude-flow github issue-triage [options]
|
|
|
15
15
|
## Examples
|
|
16
16
|
```bash
|
|
17
17
|
# Triage issues
|
|
18
|
-
npx claude-flow github issue-triage --repository myorg/myrepo
|
|
18
|
+
npx @claude-flow/cli@latest github issue-triage --repository myorg/myrepo
|
|
19
19
|
|
|
20
20
|
# With auto-labeling
|
|
21
|
-
npx claude-flow github issue-triage --repository myorg/myrepo --auto-label
|
|
21
|
+
npx @claude-flow/cli@latest github issue-triage --repository myorg/myrepo --auto-label
|
|
22
22
|
|
|
23
23
|
# Full automation
|
|
24
|
-
npx claude-flow github issue-triage --repository myorg/myrepo --auto-label --assign
|
|
24
|
+
npx @claude-flow/cli@latest github issue-triage --repository myorg/myrepo --auto-label --assign
|
|
25
25
|
```
|
|
@@ -4,7 +4,7 @@ AI-powered pull request enhancements.
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
```bash
|
|
7
|
-
npx claude-flow github pr-enhance [options]
|
|
7
|
+
npx @claude-flow/cli@latest github pr-enhance [options]
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
## Options
|
|
@@ -16,11 +16,11 @@ npx claude-flow github pr-enhance [options]
|
|
|
16
16
|
## Examples
|
|
17
17
|
```bash
|
|
18
18
|
# Enhance PR
|
|
19
|
-
npx claude-flow github pr-enhance --pr-number 123
|
|
19
|
+
npx @claude-flow/cli@latest github pr-enhance --pr-number 123
|
|
20
20
|
|
|
21
21
|
# Add tests
|
|
22
|
-
npx claude-flow github pr-enhance --pr-number 123 --add-tests
|
|
22
|
+
npx @claude-flow/cli@latest github pr-enhance --pr-number 123 --add-tests
|
|
23
23
|
|
|
24
24
|
# Full enhancement
|
|
25
|
-
npx claude-flow github pr-enhance --pr-number 123 --add-tests --improve-docs
|
|
25
|
+
npx @claude-flow/cli@latest github pr-enhance --pr-number 123 --add-tests --improve-docs
|
|
26
26
|
```
|