@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
|
@@ -75,7 +75,7 @@ hooks:
|
|
|
75
75
|
# 4. Train neural patterns for high-quality reviews
|
|
76
76
|
if [ "$SUCCESS" = "true" ] && [ "$REWARD" -gt "0.9" ]; then
|
|
77
77
|
echo "🧠 Training neural pattern from successful code review"
|
|
78
|
-
npx claude-flow neural train \
|
|
78
|
+
npx @claude-flow/cli@latest neural train \
|
|
79
79
|
--pattern-type "coordination" \
|
|
80
80
|
--training-data "$REVIEW_OUTPUT" \
|
|
81
81
|
--epochs 50
|
|
@@ -79,7 +79,7 @@ hooks:
|
|
|
79
79
|
# 4. Train neural patterns for successful issue management
|
|
80
80
|
if [ "$SUCCESS" = "true" ] && [ "$REWARD" -gt "0.9" ]; then
|
|
81
81
|
echo "🧠 Training neural pattern from successful issue management"
|
|
82
|
-
npx claude-flow neural train \
|
|
82
|
+
npx @claude-flow/cli@latest neural train \
|
|
83
83
|
--pattern-type "coordination" \
|
|
84
84
|
--training-data "$ISSUE_OUTPUT" \
|
|
85
85
|
--epochs 50
|
|
@@ -83,7 +83,7 @@ hooks:
|
|
|
83
83
|
# 4. Train neural patterns for successful PRs (optional)
|
|
84
84
|
if [ "$SUCCESS" = "true" ] && [ "$REWARD" -gt "0.9" ]; then
|
|
85
85
|
echo "🧠 Training neural pattern from successful PR management"
|
|
86
|
-
npx claude-flow neural train \
|
|
86
|
+
npx @claude-flow/cli@latest neural train \
|
|
87
87
|
--pattern-type "coordination" \
|
|
88
88
|
--training-data "$PR_OUTPUT" \
|
|
89
89
|
--epochs 50
|
|
@@ -72,7 +72,7 @@ hooks:
|
|
|
72
72
|
# 3. Train neural patterns for successful releases
|
|
73
73
|
if [ "$SUCCESS" = "true" ] && [ "$REWARD" -gt "0.9" ]; then
|
|
74
74
|
echo "🧠 Training neural pattern from successful release"
|
|
75
|
-
npx claude-flow neural train \
|
|
75
|
+
npx @claude-flow/cli@latest neural train \
|
|
76
76
|
--pattern-type "coordination" \
|
|
77
77
|
--training-data "$RELEASE_OUTPUT" \
|
|
78
78
|
--epochs 50
|
|
@@ -587,7 +587,7 @@ jobs:
|
|
|
587
587
|
cd claude-code-flow/claude-code-flow && npm install && npm test
|
|
588
588
|
cd ../../ruv-swarm/npm && npm install && npm test:all
|
|
589
589
|
- name: Validate Release
|
|
590
|
-
run: npx claude-flow release validate
|
|
590
|
+
run: npx @claude-flow/cli@latest release validate
|
|
591
591
|
```
|
|
592
592
|
|
|
593
593
|
## Monitoring and Metrics
|
|
@@ -144,9 +144,9 @@ mcp__github__push_files {
|
|
|
144
144
|
|
|
145
145
|
## Quick Start
|
|
146
146
|
\`\`\`bash
|
|
147
|
-
npx claude-flow init --sparc
|
|
147
|
+
npx @claude-flow/cli@latest init --sparc
|
|
148
148
|
npm install
|
|
149
|
-
npx claude-flow start --ui
|
|
149
|
+
npx @claude-flow/cli@latest start --ui
|
|
150
150
|
\`\`\`
|
|
151
151
|
|
|
152
152
|
## Features
|
|
@@ -83,7 +83,7 @@ hooks:
|
|
|
83
83
|
# 4. Train neural patterns for successful workflows
|
|
84
84
|
if [ "$SUCCESS" = "true" ] && [ "$REWARD" -gt "0.9" ]; then
|
|
85
85
|
echo "🧠 Training neural pattern from successful workflow"
|
|
86
|
-
npx claude-flow neural train \
|
|
86
|
+
npx @claude-flow/cli@latest neural train \
|
|
87
87
|
--pattern-type "coordination" \
|
|
88
88
|
--training-data "$WORKFLOW_OUTPUT" \
|
|
89
89
|
--epochs 50
|
|
@@ -577,31 +577,31 @@ const benchmarkIntegration = {
|
|
|
577
577
|
### Benchmarking Commands
|
|
578
578
|
```bash
|
|
579
579
|
# Run comprehensive benchmark suite
|
|
580
|
-
npx claude-flow benchmark-run --suite comprehensive --duration 300
|
|
580
|
+
npx @claude-flow/cli@latest benchmark-run --suite comprehensive --duration 300
|
|
581
581
|
|
|
582
582
|
# Execute specific benchmark
|
|
583
|
-
npx claude-flow benchmark-run --suite throughput --iterations 10
|
|
583
|
+
npx @claude-flow/cli@latest benchmark-run --suite throughput --iterations 10
|
|
584
584
|
|
|
585
585
|
# Compare with baseline
|
|
586
|
-
npx claude-flow benchmark-compare --current <results> --baseline <baseline>
|
|
586
|
+
npx @claude-flow/cli@latest benchmark-compare --current <results> --baseline <baseline>
|
|
587
587
|
|
|
588
588
|
# Quality assessment
|
|
589
|
-
npx claude-flow quality-assess --target swarm-performance --criteria throughput,latency
|
|
589
|
+
npx @claude-flow/cli@latest quality-assess --target swarm-performance --criteria throughput,latency
|
|
590
590
|
|
|
591
591
|
# Performance validation
|
|
592
|
-
npx claude-flow validate-performance --results <file> --criteria <file>
|
|
592
|
+
npx @claude-flow/cli@latest validate-performance --results <file> --criteria <file>
|
|
593
593
|
```
|
|
594
594
|
|
|
595
595
|
### Regression Detection Commands
|
|
596
596
|
```bash
|
|
597
597
|
# Detect performance regressions
|
|
598
|
-
npx claude-flow detect-regression --current <results> --historical <data>
|
|
598
|
+
npx @claude-flow/cli@latest detect-regression --current <results> --historical <data>
|
|
599
599
|
|
|
600
600
|
# Set up automated regression monitoring
|
|
601
|
-
npx claude-flow regression-monitor --enable --sensitivity 0.95
|
|
601
|
+
npx @claude-flow/cli@latest regression-monitor --enable --sensitivity 0.95
|
|
602
602
|
|
|
603
603
|
# Analyze error patterns
|
|
604
|
-
npx claude-flow error-analysis --logs <log-files>
|
|
604
|
+
npx @claude-flow/cli@latest error-analysis --logs <log-files>
|
|
605
605
|
```
|
|
606
606
|
|
|
607
607
|
## Integration Points
|
|
@@ -353,28 +353,28 @@ class CircuitBreaker {
|
|
|
353
353
|
### Load Balancing Commands
|
|
354
354
|
```bash
|
|
355
355
|
# Initialize load balancer
|
|
356
|
-
npx claude-flow agent spawn load-balancer --type coordinator
|
|
356
|
+
npx @claude-flow/cli@latest agent spawn load-balancer --type coordinator
|
|
357
357
|
|
|
358
358
|
# Start load balancing
|
|
359
|
-
npx claude-flow load-balance --swarm-id <id> --strategy adaptive
|
|
359
|
+
npx @claude-flow/cli@latest load-balance --swarm-id <id> --strategy adaptive
|
|
360
360
|
|
|
361
361
|
# Monitor load distribution
|
|
362
|
-
npx claude-flow agent-metrics --type load-balancer
|
|
362
|
+
npx @claude-flow/cli@latest agent-metrics --type load-balancer
|
|
363
363
|
|
|
364
364
|
# Adjust balancing parameters
|
|
365
|
-
npx claude-flow config-manage --action update --config '{"stealThreshold": 5, "agingBoost": 10}'
|
|
365
|
+
npx @claude-flow/cli@latest config-manage --action update --config '{"stealThreshold": 5, "agingBoost": 10}'
|
|
366
366
|
```
|
|
367
367
|
|
|
368
368
|
### Performance Monitoring
|
|
369
369
|
```bash
|
|
370
370
|
# Real-time load monitoring
|
|
371
|
-
npx claude-flow performance-report --format detailed
|
|
371
|
+
npx @claude-flow/cli@latest performance-report --format detailed
|
|
372
372
|
|
|
373
373
|
# Bottleneck analysis
|
|
374
|
-
npx claude-flow bottleneck-analyze --component swarm-coordination
|
|
374
|
+
npx @claude-flow/cli@latest bottleneck-analyze --component swarm-coordination
|
|
375
375
|
|
|
376
376
|
# Resource utilization tracking
|
|
377
|
-
npx claude-flow metrics-collect --components ["load-balancer", "task-queue"]
|
|
377
|
+
npx @claude-flow/cli@latest metrics-collect --components ["load-balancer", "task-queue"]
|
|
378
378
|
```
|
|
379
379
|
|
|
380
380
|
## Integration Points
|
|
@@ -582,31 +582,31 @@ class DashboardProvider {
|
|
|
582
582
|
### Monitoring Commands
|
|
583
583
|
```bash
|
|
584
584
|
# Start comprehensive monitoring
|
|
585
|
-
npx claude-flow performance-report --format detailed --timeframe 24h
|
|
585
|
+
npx @claude-flow/cli@latest performance-report --format detailed --timeframe 24h
|
|
586
586
|
|
|
587
587
|
# Real-time bottleneck analysis
|
|
588
|
-
npx claude-flow bottleneck-analyze --component swarm-coordination
|
|
588
|
+
npx @claude-flow/cli@latest bottleneck-analyze --component swarm-coordination
|
|
589
589
|
|
|
590
590
|
# Health check all components
|
|
591
|
-
npx claude-flow health-check --components ["swarm", "agents", "coordination"]
|
|
591
|
+
npx @claude-flow/cli@latest health-check --components ["swarm", "agents", "coordination"]
|
|
592
592
|
|
|
593
593
|
# Collect specific metrics
|
|
594
|
-
npx claude-flow metrics-collect --components ["cpu", "memory", "network"]
|
|
594
|
+
npx @claude-flow/cli@latest metrics-collect --components ["cpu", "memory", "network"]
|
|
595
595
|
|
|
596
596
|
# Monitor SLA compliance
|
|
597
|
-
npx claude-flow sla-monitor --service swarm-coordination --threshold 99.9
|
|
597
|
+
npx @claude-flow/cli@latest sla-monitor --service swarm-coordination --threshold 99.9
|
|
598
598
|
```
|
|
599
599
|
|
|
600
600
|
### Alert Configuration
|
|
601
601
|
```bash
|
|
602
602
|
# Configure performance alerts
|
|
603
|
-
npx claude-flow alert-config --metric cpu_usage --threshold 80 --severity warning
|
|
603
|
+
npx @claude-flow/cli@latest alert-config --metric cpu_usage --threshold 80 --severity warning
|
|
604
604
|
|
|
605
605
|
# Set up anomaly detection
|
|
606
|
-
npx claude-flow anomaly-setup --models ["statistical", "ml", "time_series"]
|
|
606
|
+
npx @claude-flow/cli@latest anomaly-setup --models ["statistical", "ml", "time_series"]
|
|
607
607
|
|
|
608
608
|
# Configure notification channels
|
|
609
|
-
npx claude-flow notification-config --channels ["slack", "email", "webhook"]
|
|
609
|
+
npx @claude-flow/cli@latest notification-config --channels ["slack", "email", "webhook"]
|
|
610
610
|
```
|
|
611
611
|
|
|
612
612
|
## Integration Points
|
|
@@ -600,34 +600,34 @@ const resourceIntegration = {
|
|
|
600
600
|
### Resource Management Commands
|
|
601
601
|
```bash
|
|
602
602
|
# Analyze resource usage
|
|
603
|
-
npx claude-flow metrics-collect --components ["cpu", "memory", "network"]
|
|
603
|
+
npx @claude-flow/cli@latest metrics-collect --components ["cpu", "memory", "network"]
|
|
604
604
|
|
|
605
605
|
# Optimize resource allocation
|
|
606
|
-
npx claude-flow daa-resource-alloc --resources <resource-config>
|
|
606
|
+
npx @claude-flow/cli@latest daa-resource-alloc --resources <resource-config>
|
|
607
607
|
|
|
608
608
|
# Predictive scaling
|
|
609
|
-
npx claude-flow swarm-scale --swarm-id <id> --target-size <size>
|
|
609
|
+
npx @claude-flow/cli@latest swarm-scale --swarm-id <id> --target-size <size>
|
|
610
610
|
|
|
611
611
|
# Performance profiling
|
|
612
|
-
npx claude-flow performance-report --format detailed --timeframe 24h
|
|
612
|
+
npx @claude-flow/cli@latest performance-report --format detailed --timeframe 24h
|
|
613
613
|
|
|
614
614
|
# Circuit breaker configuration
|
|
615
|
-
npx claude-flow fault-tolerance --strategy circuit-breaker --config <config>
|
|
615
|
+
npx @claude-flow/cli@latest fault-tolerance --strategy circuit-breaker --config <config>
|
|
616
616
|
```
|
|
617
617
|
|
|
618
618
|
### Optimization Commands
|
|
619
619
|
```bash
|
|
620
620
|
# Run performance optimization
|
|
621
|
-
npx claude-flow optimize-performance --swarm-id <id> --strategy adaptive
|
|
621
|
+
npx @claude-flow/cli@latest optimize-performance --swarm-id <id> --strategy adaptive
|
|
622
622
|
|
|
623
623
|
# Generate resource forecasts
|
|
624
|
-
npx claude-flow forecast-resources --time-horizon 3600 --confidence 0.95
|
|
624
|
+
npx @claude-flow/cli@latest forecast-resources --time-horizon 3600 --confidence 0.95
|
|
625
625
|
|
|
626
626
|
# Profile system performance
|
|
627
|
-
npx claude-flow profile-performance --duration 60000 --components all
|
|
627
|
+
npx @claude-flow/cli@latest profile-performance --duration 60000 --components all
|
|
628
628
|
|
|
629
629
|
# Analyze bottlenecks
|
|
630
|
-
npx claude-flow bottleneck-analyze --component swarm-coordination
|
|
630
|
+
npx @claude-flow/cli@latest bottleneck-analyze --component swarm-coordination
|
|
631
631
|
```
|
|
632
632
|
|
|
633
633
|
## Integration Points
|
|
@@ -726,31 +726,31 @@ class SimulatedAnnealingOptimizer {
|
|
|
726
726
|
### Topology Optimization Commands
|
|
727
727
|
```bash
|
|
728
728
|
# Analyze current topology
|
|
729
|
-
npx claude-flow topology-analyze --swarm-id <id> --metrics performance
|
|
729
|
+
npx @claude-flow/cli@latest topology-analyze --swarm-id <id> --metrics performance
|
|
730
730
|
|
|
731
731
|
# Optimize topology automatically
|
|
732
|
-
npx claude-flow topology-optimize --swarm-id <id> --strategy adaptive
|
|
732
|
+
npx @claude-flow/cli@latest topology-optimize --swarm-id <id> --strategy adaptive
|
|
733
733
|
|
|
734
734
|
# Compare topology configurations
|
|
735
|
-
npx claude-flow topology-compare --topologies ["hierarchical", "mesh", "hybrid"]
|
|
735
|
+
npx @claude-flow/cli@latest topology-compare --topologies ["hierarchical", "mesh", "hybrid"]
|
|
736
736
|
|
|
737
737
|
# Generate topology recommendations
|
|
738
|
-
npx claude-flow topology-recommend --workload-profile <file> --constraints <file>
|
|
738
|
+
npx @claude-flow/cli@latest topology-recommend --workload-profile <file> --constraints <file>
|
|
739
739
|
|
|
740
740
|
# Monitor topology performance
|
|
741
|
-
npx claude-flow topology-monitor --swarm-id <id> --interval 60
|
|
741
|
+
npx @claude-flow/cli@latest topology-monitor --swarm-id <id> --interval 60
|
|
742
742
|
```
|
|
743
743
|
|
|
744
744
|
### Agent Placement Commands
|
|
745
745
|
```bash
|
|
746
746
|
# Optimize agent placement
|
|
747
|
-
npx claude-flow placement-optimize --algorithm genetic --agents <agent-list>
|
|
747
|
+
npx @claude-flow/cli@latest placement-optimize --algorithm genetic --agents <agent-list>
|
|
748
748
|
|
|
749
749
|
# Analyze placement efficiency
|
|
750
|
-
npx claude-flow placement-analyze --current-placement <config>
|
|
750
|
+
npx @claude-flow/cli@latest placement-analyze --current-placement <config>
|
|
751
751
|
|
|
752
752
|
# Generate placement recommendations
|
|
753
|
-
npx claude-flow placement-recommend --communication-patterns <file>
|
|
753
|
+
npx @claude-flow/cli@latest placement-recommend --communication-patterns <file>
|
|
754
754
|
```
|
|
755
755
|
|
|
756
756
|
## Integration Points
|
|
@@ -28,16 +28,16 @@ Complete agent management commands for Claude Flow V3.
|
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
30
|
# Spawn a coder agent
|
|
31
|
-
npx claude-flow agent spawn -t coder --name my-coder
|
|
31
|
+
npx @claude-flow/cli@latest agent spawn -t coder --name my-coder
|
|
32
32
|
|
|
33
33
|
# List all active agents
|
|
34
|
-
npx claude-flow agent list
|
|
34
|
+
npx @claude-flow/cli@latest agent list
|
|
35
35
|
|
|
36
36
|
# Check agent health
|
|
37
|
-
npx claude-flow agent health
|
|
37
|
+
npx @claude-flow/cli@latest agent health
|
|
38
38
|
|
|
39
39
|
# View metrics
|
|
40
|
-
npx claude-flow agent metrics --period 24h
|
|
40
|
+
npx @claude-flow/cli@latest agent metrics --period 24h
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## V3 Agent Categories
|
|
@@ -105,7 +105,7 @@ release-manager: mcp__github__*, mcp__claude-flow__workflow_*
|
|
|
105
105
|
|
|
106
106
|
```bash
|
|
107
107
|
# List all capabilities for an agent type
|
|
108
|
-
npx claude-flow agent spawn -t coder --help
|
|
108
|
+
npx @claude-flow/cli@latest agent spawn -t coder --help
|
|
109
109
|
|
|
110
110
|
# View agent definition
|
|
111
111
|
cat .claude/agents/core/coder.md
|
|
@@ -7,19 +7,19 @@ Coordination patterns for multi-agent collaboration.
|
|
|
7
7
|
### Hierarchical
|
|
8
8
|
Queen-led with worker specialization
|
|
9
9
|
```bash
|
|
10
|
-
npx claude-flow swarm init --topology hierarchical
|
|
10
|
+
npx @claude-flow/cli@latest swarm init --topology hierarchical
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### Mesh
|
|
14
14
|
Peer-to-peer collaboration
|
|
15
15
|
```bash
|
|
16
|
-
npx claude-flow swarm init --topology mesh
|
|
16
|
+
npx @claude-flow/cli@latest swarm init --topology mesh
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
### Adaptive
|
|
20
20
|
Dynamic topology based on workload
|
|
21
21
|
```bash
|
|
22
|
-
npx claude-flow swarm init --topology adaptive
|
|
22
|
+
npx @claude-flow/cli@latest swarm init --topology adaptive
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Best Practices
|
|
@@ -203,10 +203,10 @@ Complete guide to all 87 available agent types in Claude Flow V3.
|
|
|
203
203
|
|
|
204
204
|
```bash
|
|
205
205
|
# List all agent types
|
|
206
|
-
npx claude-flow agent spawn --help
|
|
206
|
+
npx @claude-flow/cli@latest agent spawn --help
|
|
207
207
|
|
|
208
208
|
# Spawn any agent
|
|
209
|
-
npx claude-flow agent spawn -t <agent-type>
|
|
209
|
+
npx @claude-flow/cli@latest agent spawn -t <agent-type>
|
|
210
210
|
```
|
|
211
211
|
|
|
212
212
|
## See Also
|
|
@@ -11,7 +11,7 @@ Monitor agent health status, resource usage, and detect issues.
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx claude-flow agent health [agent-id] [options]
|
|
14
|
+
npx @claude-flow/cli@latest agent health [agent-id] [options]
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Options
|
|
@@ -26,19 +26,19 @@ npx claude-flow agent health [agent-id] [options]
|
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
# Overall health check
|
|
29
|
-
npx claude-flow agent health
|
|
29
|
+
npx @claude-flow/cli@latest agent health
|
|
30
30
|
|
|
31
31
|
# Specific agent health
|
|
32
|
-
npx claude-flow agent health coder-lx7m9k2
|
|
32
|
+
npx @claude-flow/cli@latest agent health coder-lx7m9k2
|
|
33
33
|
|
|
34
34
|
# Continuous monitoring
|
|
35
|
-
npx claude-flow agent health --watch
|
|
35
|
+
npx @claude-flow/cli@latest agent health --watch
|
|
36
36
|
|
|
37
37
|
# Custom interval
|
|
38
|
-
npx claude-flow agent health -w -i 10
|
|
38
|
+
npx @claude-flow/cli@latest agent health -w -i 10
|
|
39
39
|
|
|
40
40
|
# JSON output
|
|
41
|
-
npx claude-flow agent health --format json
|
|
41
|
+
npx @claude-flow/cli@latest agent health --format json
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
## Output
|
|
@@ -99,7 +99,7 @@ Recommendations
|
|
|
99
99
|
Continuous monitoring with real-time updates:
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
|
-
npx claude-flow agent health --watch
|
|
102
|
+
npx @claude-flow/cli@latest agent health --watch
|
|
103
103
|
|
|
104
104
|
# Output updates every 5 seconds:
|
|
105
105
|
# [10:30:15] Agent Health: 3 healthy, 0 warning, 0 critical
|
|
@@ -134,6 +134,6 @@ Press `Ctrl+C` to stop watching.
|
|
|
134
134
|
|
|
135
135
|
## Related Commands
|
|
136
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
|
|
137
|
+
- `npx @claude-flow/cli@latest agent status` - Detailed agent info
|
|
138
|
+
- `npx @claude-flow/cli@latest agent metrics` - Performance metrics
|
|
139
|
+
- `npx @claude-flow/cli@latest doctor` - System-wide health
|
|
@@ -12,8 +12,8 @@ List all active agents in the Claude Flow system with filtering options.
|
|
|
12
12
|
## Usage
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npx claude-flow agent list [options]
|
|
16
|
-
npx claude-flow agent ls [options] # Alias
|
|
15
|
+
npx @claude-flow/cli@latest agent list [options]
|
|
16
|
+
npx @claude-flow/cli@latest agent ls [options] # Alias
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Options
|
|
@@ -29,22 +29,22 @@ npx claude-flow agent ls [options] # Alias
|
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
31
|
# List all active agents
|
|
32
|
-
npx claude-flow agent list
|
|
32
|
+
npx @claude-flow/cli@latest agent list
|
|
33
33
|
|
|
34
34
|
# List all agents including inactive
|
|
35
|
-
npx claude-flow agent list --all
|
|
35
|
+
npx @claude-flow/cli@latest agent list --all
|
|
36
36
|
|
|
37
37
|
# Filter by type
|
|
38
|
-
npx claude-flow agent list -t coder
|
|
38
|
+
npx @claude-flow/cli@latest agent list -t coder
|
|
39
39
|
|
|
40
40
|
# Filter by status
|
|
41
|
-
npx claude-flow agent list -s idle
|
|
41
|
+
npx @claude-flow/cli@latest agent list -s idle
|
|
42
42
|
|
|
43
43
|
# JSON output for scripting
|
|
44
|
-
npx claude-flow agent list --format json
|
|
44
|
+
npx @claude-flow/cli@latest agent list --format json
|
|
45
45
|
|
|
46
46
|
# Combined filters
|
|
47
|
-
npx claude-flow agent list -t researcher -s active
|
|
47
|
+
npx @claude-flow/cli@latest agent list -t researcher -s active
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
## Output
|
|
@@ -11,7 +11,7 @@ View activity logs and history for agents.
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx claude-flow agent logs <agent-id> [options]
|
|
14
|
+
npx @claude-flow/cli@latest agent logs <agent-id> [options]
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Options
|
|
@@ -28,23 +28,23 @@ npx claude-flow agent logs <agent-id> [options]
|
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
30
|
# View last 50 lines
|
|
31
|
-
npx claude-flow agent logs coder-lx7m9k2
|
|
31
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2
|
|
32
32
|
|
|
33
33
|
# View last 100 lines
|
|
34
|
-
npx claude-flow agent logs coder-lx7m9k2 -n 100
|
|
34
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 -n 100
|
|
35
35
|
|
|
36
36
|
# Follow logs (live)
|
|
37
|
-
npx claude-flow agent logs coder-lx7m9k2 --follow
|
|
37
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 --follow
|
|
38
38
|
|
|
39
39
|
# Filter by level
|
|
40
|
-
npx claude-flow agent logs coder-lx7m9k2 -l error
|
|
40
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 -l error
|
|
41
41
|
|
|
42
42
|
# Logs since time
|
|
43
|
-
npx claude-flow agent logs coder-lx7m9k2 --since "1h"
|
|
44
|
-
npx claude-flow agent logs coder-lx7m9k2 --since "2026-01-08T10:00:00"
|
|
43
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 --since "1h"
|
|
44
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 --since "2026-01-08T10:00:00"
|
|
45
45
|
|
|
46
46
|
# JSON output
|
|
47
|
-
npx claude-flow agent logs coder-lx7m9k2 --format json
|
|
47
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 --format json
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
## Output
|
|
@@ -77,7 +77,7 @@ Logs for coder-lx7m9k2
|
|
|
77
77
|
Real-time log streaming:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
npx claude-flow agent logs coder-lx7m9k2 --follow
|
|
80
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 --follow
|
|
81
81
|
|
|
82
82
|
# New logs appear as they occur:
|
|
83
83
|
# 2026-01-08 10:40:15 [INFO] Task received: refactor-auth
|
|
@@ -91,16 +91,16 @@ Press `Ctrl+C` to stop following.
|
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
93
|
# Last hour
|
|
94
|
-
npx claude-flow agent logs coder-lx7m9k2 --since "1h"
|
|
94
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 --since "1h"
|
|
95
95
|
|
|
96
96
|
# Last 30 minutes
|
|
97
|
-
npx claude-flow agent logs coder-lx7m9k2 --since "30m"
|
|
97
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 --since "30m"
|
|
98
98
|
|
|
99
99
|
# Specific timestamp
|
|
100
|
-
npx claude-flow agent logs coder-lx7m9k2 --since "2026-01-08T09:00:00"
|
|
100
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 --since "2026-01-08T09:00:00"
|
|
101
101
|
|
|
102
102
|
# Today's logs
|
|
103
|
-
npx claude-flow agent logs coder-lx7m9k2 --since "today"
|
|
103
|
+
npx @claude-flow/cli@latest agent logs coder-lx7m9k2 --since "today"
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
## JSON Output
|
|
@@ -125,6 +125,6 @@ npx claude-flow agent logs coder-lx7m9k2 --since "today"
|
|
|
125
125
|
|
|
126
126
|
## Related Commands
|
|
127
127
|
|
|
128
|
-
- `npx claude-flow agent status` - Current agent status
|
|
129
|
-
- `npx claude-flow agent health` - Health monitoring
|
|
130
|
-
- `npx claude-flow agent metrics` - Performance metrics
|
|
128
|
+
- `npx @claude-flow/cli@latest agent status` - Current agent status
|
|
129
|
+
- `npx @claude-flow/cli@latest agent health` - Health monitoring
|
|
130
|
+
- `npx @claude-flow/cli@latest agent metrics` - Performance metrics
|
|
@@ -11,7 +11,7 @@ Display comprehensive performance metrics for agents including V3 performance ga
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx claude-flow agent metrics [agent-id] [options]
|
|
14
|
+
npx @claude-flow/cli@latest agent metrics [agent-id] [options]
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Options
|
|
@@ -25,19 +25,19 @@ npx claude-flow agent metrics [agent-id] [options]
|
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
# Overall metrics for last 24 hours
|
|
28
|
-
npx claude-flow agent metrics
|
|
28
|
+
npx @claude-flow/cli@latest agent metrics
|
|
29
29
|
|
|
30
30
|
# Metrics for specific agent
|
|
31
|
-
npx claude-flow agent metrics coder-lx7m9k2
|
|
31
|
+
npx @claude-flow/cli@latest agent metrics coder-lx7m9k2
|
|
32
32
|
|
|
33
33
|
# Last hour
|
|
34
|
-
npx claude-flow agent metrics -p 1h
|
|
34
|
+
npx @claude-flow/cli@latest agent metrics -p 1h
|
|
35
35
|
|
|
36
36
|
# Last 7 days
|
|
37
|
-
npx claude-flow agent metrics --period 7d
|
|
37
|
+
npx @claude-flow/cli@latest agent metrics --period 7d
|
|
38
38
|
|
|
39
39
|
# JSON output
|
|
40
|
-
npx claude-flow agent metrics --format json
|
|
40
|
+
npx @claude-flow/cli@latest agent metrics --format json
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## Output
|
|
@@ -117,6 +117,6 @@ V3 Performance Gains
|
|
|
117
117
|
|
|
118
118
|
## Related Commands
|
|
119
119
|
|
|
120
|
-
- `npx claude-flow agent status` - Individual agent metrics
|
|
121
|
-
- `npx claude-flow performance benchmark` - Full performance suite
|
|
122
|
-
- `npx claude-flow status` - System-wide status
|
|
120
|
+
- `npx @claude-flow/cli@latest agent status` - Individual agent metrics
|
|
121
|
+
- `npx @claude-flow/cli@latest performance benchmark` - Full performance suite
|
|
122
|
+
- `npx @claude-flow/cli@latest status` - System-wide status
|
|
@@ -11,7 +11,7 @@ Manage the agent pool for automatic scaling and resource optimization.
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx claude-flow agent pool [options]
|
|
14
|
+
npx @claude-flow/cli@latest agent pool [options]
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Options
|
|
@@ -28,19 +28,19 @@ npx claude-flow agent pool [options]
|
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
30
|
# View current pool status
|
|
31
|
-
npx claude-flow agent pool
|
|
31
|
+
npx @claude-flow/cli@latest agent pool
|
|
32
32
|
|
|
33
33
|
# Set pool size
|
|
34
|
-
npx claude-flow agent pool --size 5
|
|
34
|
+
npx @claude-flow/cli@latest agent pool --size 5
|
|
35
35
|
|
|
36
36
|
# Configure auto-scaling
|
|
37
|
-
npx claude-flow agent pool --min 2 --max 15 --auto-scale
|
|
37
|
+
npx @claude-flow/cli@latest agent pool --min 2 --max 15 --auto-scale
|
|
38
38
|
|
|
39
39
|
# Pre-warm agents for fast response
|
|
40
|
-
npx claude-flow agent pool --warmup
|
|
40
|
+
npx @claude-flow/cli@latest agent pool --warmup
|
|
41
41
|
|
|
42
42
|
# Disable auto-scaling
|
|
43
|
-
npx claude-flow agent pool --auto-scale false
|
|
43
|
+
npx @claude-flow/cli@latest agent pool --auto-scale false
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
## Output
|
|
@@ -89,7 +89,7 @@ Auto-Scale Rules
|
|
|
89
89
|
Pre-warm agents to reduce cold-start latency:
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
npx claude-flow agent pool --warmup
|
|
92
|
+
npx @claude-flow/cli@latest agent pool --warmup
|
|
93
93
|
|
|
94
94
|
# Pre-warms default agent types:
|
|
95
95
|
# - coder (2 instances)
|
|
@@ -122,6 +122,6 @@ agent:
|
|
|
122
122
|
|
|
123
123
|
## Related Commands
|
|
124
124
|
|
|
125
|
-
- `npx claude-flow agent spawn` - Manual agent spawning
|
|
126
|
-
- `npx claude-flow agent list` - View active agents
|
|
127
|
-
- `npx claude-flow swarm scale` - Swarm-level scaling
|
|
125
|
+
- `npx @claude-flow/cli@latest agent spawn` - Manual agent spawning
|
|
126
|
+
- `npx @claude-flow/cli@latest agent list` - View active agents
|
|
127
|
+
- `npx @claude-flow/cli@latest swarm scale` - Swarm-level scaling
|