@claude-flow/cli 3.37.0 → 3.38.1

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.
Files changed (154) hide show
  1. package/.claude/agents/github/code-review-swarm.md +1 -1
  2. package/.claude/agents/github/issue-tracker.md +1 -1
  3. package/.claude/agents/github/pr-manager.md +1 -1
  4. package/.claude/agents/github/release-manager.md +2 -2
  5. package/.claude/agents/github/repo-architect.md +2 -2
  6. package/.claude/agents/github/workflow-automation.md +1 -1
  7. package/.claude/agents/optimization/benchmark-suite.md +8 -8
  8. package/.claude/agents/optimization/load-balancer.md +7 -7
  9. package/.claude/agents/optimization/performance-monitor.md +8 -8
  10. package/.claude/agents/optimization/resource-allocator.md +9 -9
  11. package/.claude/agents/optimization/topology-optimizer.md +8 -8
  12. package/.claude/commands/agents/README.md +4 -4
  13. package/.claude/commands/agents/agent-capabilities.md +1 -1
  14. package/.claude/commands/agents/agent-coordination.md +3 -3
  15. package/.claude/commands/agents/agent-types.md +2 -2
  16. package/.claude/commands/agents/health.md +10 -10
  17. package/.claude/commands/agents/list.md +8 -8
  18. package/.claude/commands/agents/logs.md +16 -16
  19. package/.claude/commands/agents/metrics.md +9 -9
  20. package/.claude/commands/agents/pool.md +10 -10
  21. package/.claude/commands/agents/spawn.md +35 -35
  22. package/.claude/commands/agents/status.md +9 -9
  23. package/.claude/commands/agents/stop.md +15 -15
  24. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +1 -1
  25. package/.claude/commands/analysis/bottleneck-detect.md +5 -5
  26. package/.claude/commands/analysis/performance-report.md +4 -4
  27. package/.claude/commands/analysis/token-usage.md +4 -4
  28. package/.claude/commands/automation/auto-agent.md +5 -5
  29. package/.claude/commands/automation/self-healing.md +1 -1
  30. package/.claude/commands/automation/session-memory.md +1 -1
  31. package/.claude/commands/automation/smart-agents.md +1 -1
  32. package/.claude/commands/automation/smart-spawn.md +4 -4
  33. package/.claude/commands/automation/workflow-select.md +4 -4
  34. package/.claude/commands/claude-flow-help.md +1 -1
  35. package/.claude/commands/coordination/agent-spawn.md +4 -4
  36. package/.claude/commands/coordination/swarm-init.md +5 -5
  37. package/.claude/commands/coordination/task-orchestrate.md +4 -4
  38. package/.claude/commands/github/code-review.md +4 -4
  39. package/.claude/commands/github/github-swarm.md +5 -5
  40. package/.claude/commands/github/issue-triage.md +4 -4
  41. package/.claude/commands/github/pr-enhance.md +4 -4
  42. package/.claude/commands/github/release-manager.md +1 -1
  43. package/.claude/commands/github/repo-analyze.md +4 -4
  44. package/.claude/commands/github/repo-architect.md +2 -2
  45. package/.claude/commands/hive-mind/hive-mind-consensus.md +1 -1
  46. package/.claude/commands/hive-mind/hive-mind-init.md +3 -3
  47. package/.claude/commands/hive-mind/hive-mind-memory.md +1 -1
  48. package/.claude/commands/hive-mind/hive-mind-metrics.md +1 -1
  49. package/.claude/commands/hive-mind/hive-mind-resume.md +1 -1
  50. package/.claude/commands/hive-mind/hive-mind-sessions.md +1 -1
  51. package/.claude/commands/hive-mind/hive-mind-spawn.md +4 -4
  52. package/.claude/commands/hive-mind/hive-mind-status.md +1 -1
  53. package/.claude/commands/hive-mind/hive-mind-stop.md +1 -1
  54. package/.claude/commands/hive-mind/hive-mind-wizard.md +1 -1
  55. package/.claude/commands/hive-mind/hive-mind.md +4 -4
  56. package/.claude/commands/hooks/overview.md +1 -1
  57. package/.claude/commands/hooks/post-edit.md +6 -6
  58. package/.claude/commands/hooks/post-task.md +6 -6
  59. package/.claude/commands/hooks/pre-edit.md +6 -6
  60. package/.claude/commands/hooks/pre-task.md +6 -6
  61. package/.claude/commands/hooks/session-end.md +6 -6
  62. package/.claude/commands/hooks/setup.md +6 -6
  63. package/.claude/commands/memory/memory-persist.md +4 -4
  64. package/.claude/commands/memory/memory-search.md +4 -4
  65. package/.claude/commands/memory/memory-usage.md +4 -4
  66. package/.claude/commands/monitoring/agent-metrics.md +4 -4
  67. package/.claude/commands/monitoring/real-time-view.md +4 -4
  68. package/.claude/commands/monitoring/swarm-monitor.md +4 -4
  69. package/.claude/commands/optimization/auto-topology.md +2 -2
  70. package/.claude/commands/optimization/cache-manage.md +4 -4
  71. package/.claude/commands/optimization/parallel-execute.md +4 -4
  72. package/.claude/commands/optimization/parallel-execution.md +1 -1
  73. package/.claude/commands/optimization/topology-optimize.md +4 -4
  74. package/.claude/commands/sparc/analyzer.md +1 -1
  75. package/.claude/commands/sparc/architect.md +1 -1
  76. package/.claude/commands/sparc/ask.md +5 -5
  77. package/.claude/commands/sparc/batch-executor.md +1 -1
  78. package/.claude/commands/sparc/code.md +5 -5
  79. package/.claude/commands/sparc/coder.md +1 -1
  80. package/.claude/commands/sparc/debug.md +5 -5
  81. package/.claude/commands/sparc/debugger.md +1 -1
  82. package/.claude/commands/sparc/designer.md +1 -1
  83. package/.claude/commands/sparc/devops.md +5 -5
  84. package/.claude/commands/sparc/docs-writer.md +5 -5
  85. package/.claude/commands/sparc/documenter.md +1 -1
  86. package/.claude/commands/sparc/innovator.md +1 -1
  87. package/.claude/commands/sparc/integration.md +5 -5
  88. package/.claude/commands/sparc/mcp.md +5 -5
  89. package/.claude/commands/sparc/memory-manager.md +1 -1
  90. package/.claude/commands/sparc/optimizer.md +1 -1
  91. package/.claude/commands/sparc/orchestrator.md +8 -8
  92. package/.claude/commands/sparc/post-deployment-monitoring-mode.md +5 -5
  93. package/.claude/commands/sparc/refinement-optimization-mode.md +5 -5
  94. package/.claude/commands/sparc/researcher.md +1 -1
  95. package/.claude/commands/sparc/reviewer.md +1 -1
  96. package/.claude/commands/sparc/security-review.md +5 -5
  97. package/.claude/commands/sparc/sparc-modes.md +11 -11
  98. package/.claude/commands/sparc/sparc.md +5 -5
  99. package/.claude/commands/sparc/spec-pseudocode.md +5 -5
  100. package/.claude/commands/sparc/supabase-admin.md +5 -5
  101. package/.claude/commands/sparc/swarm-coordinator.md +1 -1
  102. package/.claude/commands/sparc/tdd.md +1 -1
  103. package/.claude/commands/sparc/tester.md +1 -1
  104. package/.claude/commands/sparc/tutorial.md +5 -5
  105. package/.claude/commands/sparc/workflow-manager.md +1 -1
  106. package/.claude/commands/sparc.md +6 -6
  107. package/.claude/commands/swarm/analysis.md +1 -1
  108. package/.claude/commands/swarm/development.md +1 -1
  109. package/.claude/commands/swarm/examples.md +3 -3
  110. package/.claude/commands/swarm/maintenance.md +1 -1
  111. package/.claude/commands/swarm/optimization.md +1 -1
  112. package/.claude/commands/swarm/research.md +1 -1
  113. package/.claude/commands/swarm/swarm-analysis.md +1 -1
  114. package/.claude/commands/swarm/swarm-background.md +1 -1
  115. package/.claude/commands/swarm/swarm-init.md +3 -3
  116. package/.claude/commands/swarm/swarm-modes.md +1 -1
  117. package/.claude/commands/swarm/swarm-monitor.md +1 -1
  118. package/.claude/commands/swarm/swarm-spawn.md +3 -3
  119. package/.claude/commands/swarm/swarm-status.md +1 -1
  120. package/.claude/commands/swarm/swarm-strategies.md +1 -1
  121. package/.claude/commands/swarm/testing.md +1 -1
  122. package/.claude/commands/training/model-update.md +4 -4
  123. package/.claude/commands/training/neural-patterns.md +12 -12
  124. package/.claude/commands/training/neural-train.md +8 -8
  125. package/.claude/commands/training/pattern-learn.md +4 -4
  126. package/.claude/commands/training/specialization.md +2 -2
  127. package/.claude/commands/workflows/development.md +3 -3
  128. package/.claude/commands/workflows/research.md +2 -2
  129. package/.claude/commands/workflows/workflow-create.md +4 -4
  130. package/.claude/commands/workflows/workflow-execute.md +4 -4
  131. package/.claude/commands/workflows/workflow-export.md +4 -4
  132. package/.claude/helpers/.helpers-version +1 -1
  133. package/.claude/helpers/auto-memory-hook.mjs +1 -1
  134. package/.claude/helpers/github-setup.sh +4 -4
  135. package/.claude/helpers/helpers.manifest.json +3 -3
  136. package/.claude/helpers/quick-start.sh +4 -4
  137. package/.claude/helpers/setup-mcp.sh +1 -1
  138. package/.claude/helpers/statusline.cjs +0 -0
  139. package/.claude/settings.json +1 -1
  140. package/.claude/skills/dual-mode/dual-spawn.md +2 -2
  141. package/.claude/skills/github-multi-repo/SKILL.md +21 -21
  142. package/.claude/skills/github-release-management/SKILL.md +19 -19
  143. package/.claude/skills/hooks-automation/SKILL.md +107 -107
  144. package/.claude/skills/sparc-methodology/SKILL.md +26 -26
  145. package/.claude/skills/swarm-advanced/SKILL.md +3 -3
  146. package/catalog-manifest.json +2 -2
  147. package/dist/src/commands/memory.js +9 -1
  148. package/dist/src/commands/migrate-agent-detection.d.ts +27 -0
  149. package/dist/src/commands/migrate-agent-detection.js +113 -0
  150. package/dist/src/commands/migrate.js +41 -3
  151. package/dist/src/memory/memory-bridge.d.ts +7 -0
  152. package/dist/src/memory/memory-bridge.js +28 -1
  153. package/dist/src/memory/memory-initializer.d.ts +3 -0
  154. package/package.json +1 -1
@@ -322,7 +322,7 @@ jobs:
322
322
  cd claude-code-flow/claude-code-flow && npm install && npm test
323
323
  cd ../../ruv-swarm/npm && npm install && npm test:all
324
324
  - name: Validate Release
325
- run: npx claude-flow release validate
325
+ run: npx @claude-flow/cli@latest release validate
326
326
  ```
327
327
 
328
328
  ## Monitoring and Metrics
@@ -4,7 +4,7 @@ Deep analysis of GitHub repository with AI insights.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow github repo-analyze [options]
7
+ npx @claude-flow/cli@latest github repo-analyze [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -15,11 +15,11 @@ npx claude-flow github repo-analyze [options]
15
15
  ## Examples
16
16
  ```bash
17
17
  # Basic analysis
18
- npx claude-flow github repo-analyze --repository myorg/myrepo
18
+ npx @claude-flow/cli@latest github repo-analyze --repository myorg/myrepo
19
19
 
20
20
  # Deep analysis
21
- npx claude-flow github repo-analyze --repository myorg/myrepo --deep
21
+ npx @claude-flow/cli@latest github repo-analyze --repository myorg/myrepo --deep
22
22
 
23
23
  # Specific areas
24
- npx claude-flow github repo-analyze --repository myorg/myrepo --include issues,prs
24
+ npx @claude-flow/cli@latest github repo-analyze --repository myorg/myrepo --include issues,prs
25
25
  ```
@@ -113,9 +113,9 @@ mcp__github__push_files {
113
113
 
114
114
  ## Quick Start
115
115
  \`\`\`bash
116
- npx claude-flow init --sparc
116
+ npx @claude-flow/cli@latest init --sparc
117
117
  npm install
118
- npx claude-flow start --ui
118
+ npx @claude-flow/cli@latest start --ui
119
119
  \`\`\`
120
120
 
121
121
  ## Features
@@ -4,5 +4,5 @@ Command documentation for hive-mind-consensus in category hive-mind.
4
4
 
5
5
  Usage:
6
6
  ```bash
7
- npx claude-flow hive-mind hive-mind-consensus [options]
7
+ npx @claude-flow/cli@latest hive-mind hive-mind-consensus [options]
8
8
  ```
@@ -4,7 +4,7 @@ Initialize the Hive Mind collective intelligence system.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow hive-mind init [options]
7
+ npx @claude-flow/cli@latest hive-mind init [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -13,6 +13,6 @@ npx claude-flow hive-mind init [options]
13
13
 
14
14
  ## Examples
15
15
  ```bash
16
- npx claude-flow hive-mind init
17
- npx claude-flow hive-mind init --force
16
+ npx @claude-flow/cli@latest hive-mind init
17
+ npx @claude-flow/cli@latest hive-mind init --force
18
18
  ```
@@ -4,5 +4,5 @@ Command documentation for hive-mind-memory in category hive-mind.
4
4
 
5
5
  Usage:
6
6
  ```bash
7
- npx claude-flow hive-mind hive-mind-memory [options]
7
+ npx @claude-flow/cli@latest hive-mind hive-mind-memory [options]
8
8
  ```
@@ -4,5 +4,5 @@ Command documentation for hive-mind-metrics in category hive-mind.
4
4
 
5
5
  Usage:
6
6
  ```bash
7
- npx claude-flow hive-mind hive-mind-metrics [options]
7
+ npx @claude-flow/cli@latest hive-mind hive-mind-metrics [options]
8
8
  ```
@@ -4,5 +4,5 @@ Command documentation for hive-mind-resume in category hive-mind.
4
4
 
5
5
  Usage:
6
6
  ```bash
7
- npx claude-flow hive-mind hive-mind-resume [options]
7
+ npx @claude-flow/cli@latest hive-mind hive-mind-resume [options]
8
8
  ```
@@ -4,5 +4,5 @@ Command documentation for hive-mind-sessions in category hive-mind.
4
4
 
5
5
  Usage:
6
6
  ```bash
7
- npx claude-flow hive-mind hive-mind-sessions [options]
7
+ npx @claude-flow/cli@latest hive-mind hive-mind-sessions [options]
8
8
  ```
@@ -4,7 +4,7 @@ Spawn a Hive Mind swarm with queen-led coordination.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow hive-mind spawn <objective> [options]
7
+ npx @claude-flow/cli@latest hive-mind spawn <objective> [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -15,7 +15,7 @@ npx claude-flow hive-mind spawn <objective> [options]
15
15
 
16
16
  ## Examples
17
17
  ```bash
18
- npx claude-flow hive-mind spawn "Build API"
19
- npx claude-flow hive-mind spawn "Research patterns" --queen-type adaptive
20
- npx claude-flow hive-mind spawn "Build service" --claude
18
+ npx @claude-flow/cli@latest hive-mind spawn "Build API"
19
+ npx @claude-flow/cli@latest hive-mind spawn "Research patterns" --queen-type adaptive
20
+ npx @claude-flow/cli@latest hive-mind spawn "Build service" --claude
21
21
  ```
@@ -4,5 +4,5 @@ Command documentation for hive-mind-status in category hive-mind.
4
4
 
5
5
  Usage:
6
6
  ```bash
7
- npx claude-flow hive-mind hive-mind-status [options]
7
+ npx @claude-flow/cli@latest hive-mind hive-mind-status [options]
8
8
  ```
@@ -4,5 +4,5 @@ Command documentation for hive-mind-stop in category hive-mind.
4
4
 
5
5
  Usage:
6
6
  ```bash
7
- npx claude-flow hive-mind hive-mind-stop [options]
7
+ npx @claude-flow/cli@latest hive-mind hive-mind-stop [options]
8
8
  ```
@@ -4,5 +4,5 @@ Command documentation for hive-mind-wizard in category hive-mind.
4
4
 
5
5
  Usage:
6
6
  ```bash
7
- npx claude-flow hive-mind hive-mind-wizard [options]
7
+ npx @claude-flow/cli@latest hive-mind hive-mind-wizard [options]
8
8
  ```
@@ -4,7 +4,7 @@ Hive Mind collective intelligence system for advanced swarm coordination.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow hive-mind [subcommand] [options]
7
+ npx @claude-flow/cli@latest hive-mind [subcommand] [options]
8
8
  ```
9
9
 
10
10
  ## Subcommands
@@ -17,11 +17,11 @@ npx claude-flow hive-mind [subcommand] [options]
17
17
  ## Examples
18
18
  ```bash
19
19
  # Initialize hive mind
20
- npx claude-flow hive-mind init
20
+ npx @claude-flow/cli@latest hive-mind init
21
21
 
22
22
  # Spawn swarm
23
- npx claude-flow hive-mind spawn "Build microservices"
23
+ npx @claude-flow/cli@latest hive-mind spawn "Build microservices"
24
24
 
25
25
  # Check status
26
- npx claude-flow hive-mind status
26
+ npx @claude-flow/cli@latest hive-mind status
27
27
  ```
@@ -37,7 +37,7 @@ Hooks are configured in `.claude/settings.json`:
37
37
  "matcher": "^(Write|Edit|MultiEdit)$",
38
38
  "hooks": [{
39
39
  "type": "command",
40
- "command": "npx claude-flow hook pre-edit --file '${tool.params.file_path}'"
40
+ "command": "npx @claude-flow/cli@latest hook pre-edit --file '${tool.params.file_path}'"
41
41
  }]
42
42
  }
43
43
  ]
@@ -5,7 +5,7 @@ Execute post-edit processing including formatting, validation, and memory update
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
- npx claude-flow hook post-edit [options]
8
+ npx @claude-flow/cli@latest hook post-edit [options]
9
9
  ```
10
10
 
11
11
  ## Options
@@ -21,25 +21,25 @@ npx claude-flow hook post-edit [options]
21
21
  ### Basic post-edit hook
22
22
 
23
23
  ```bash
24
- npx claude-flow hook post-edit --file "src/components/Button.jsx"
24
+ npx @claude-flow/cli@latest hook post-edit --file "src/components/Button.jsx"
25
25
  ```
26
26
 
27
27
  ### With memory storage
28
28
 
29
29
  ```bash
30
- npx claude-flow hook post-edit -f "api/auth.js" --memory-key "auth/login-implementation"
30
+ npx @claude-flow/cli@latest hook post-edit -f "api/auth.js" --memory-key "auth/login-implementation"
31
31
  ```
32
32
 
33
33
  ### Format and validate
34
34
 
35
35
  ```bash
36
- npx claude-flow hook post-edit -f "config/webpack.js" --auto-format --validate-output
36
+ npx @claude-flow/cli@latest hook post-edit -f "config/webpack.js" --auto-format --validate-output
37
37
  ```
38
38
 
39
39
  ### Neural training
40
40
 
41
41
  ```bash
42
- npx claude-flow hook post-edit -f "utils/helpers.ts" --train-patterns --memory-key "utils/refactor"
42
+ npx @claude-flow/cli@latest hook post-edit -f "utils/helpers.ts" --train-patterns --memory-key "utils/refactor"
43
43
  ```
44
44
 
45
45
  ## Features
@@ -86,7 +86,7 @@ Manual usage in agents:
86
86
 
87
87
  ```bash
88
88
  # After editing files
89
- npx claude-flow hook post-edit --file "path/to/edited.js" --memory-key "feature/step1"
89
+ npx @claude-flow/cli@latest hook post-edit --file "path/to/edited.js" --memory-key "feature/step1"
90
90
  ```
91
91
 
92
92
  ## Output
@@ -5,7 +5,7 @@ Execute post-task cleanup, performance analysis, and memory storage.
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
- npx claude-flow hook post-task [options]
8
+ npx @claude-flow/cli@latest hook post-task [options]
9
9
  ```
10
10
 
11
11
  ## Options
@@ -21,25 +21,25 @@ npx claude-flow hook post-task [options]
21
21
  ### Basic post-task hook
22
22
 
23
23
  ```bash
24
- npx claude-flow hook post-task --task-id "auth-implementation"
24
+ npx @claude-flow/cli@latest hook post-task --task-id "auth-implementation"
25
25
  ```
26
26
 
27
27
  ### With full analysis
28
28
 
29
29
  ```bash
30
- npx claude-flow hook post-task -t "api-refactor" --analyze-performance --generate-report
30
+ npx @claude-flow/cli@latest hook post-task -t "api-refactor" --analyze-performance --generate-report
31
31
  ```
32
32
 
33
33
  ### Memory storage
34
34
 
35
35
  ```bash
36
- npx claude-flow hook post-task -t "bug-fix-123" --store-decisions --export-learnings
36
+ npx @claude-flow/cli@latest hook post-task -t "bug-fix-123" --store-decisions --export-learnings
37
37
  ```
38
38
 
39
39
  ### Quick cleanup
40
40
 
41
41
  ```bash
42
- npx claude-flow hook post-task -t "minor-update" --analyze-performance false
42
+ npx @claude-flow/cli@latest hook post-task -t "minor-update" --analyze-performance false
43
43
  ```
44
44
 
45
45
  ## Features
@@ -85,7 +85,7 @@ Manual usage in agents:
85
85
 
86
86
  ```bash
87
87
  # In agent coordination
88
- npx claude-flow hook post-task --task-id "your-task-id" --analyze-performance true
88
+ npx @claude-flow/cli@latest hook post-task --task-id "your-task-id" --analyze-performance true
89
89
  ```
90
90
 
91
91
  ## Output
@@ -5,7 +5,7 @@ Execute pre-edit validations and agent assignment before file modifications.
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
- npx claude-flow hook pre-edit [options]
8
+ npx @claude-flow/cli@latest hook pre-edit [options]
9
9
  ```
10
10
 
11
11
  ## Options
@@ -21,25 +21,25 @@ npx claude-flow hook pre-edit [options]
21
21
  ### Basic pre-edit hook
22
22
 
23
23
  ```bash
24
- npx claude-flow hook pre-edit --file "src/auth/login.js"
24
+ npx @claude-flow/cli@latest hook pre-edit --file "src/auth/login.js"
25
25
  ```
26
26
 
27
27
  ### With validation
28
28
 
29
29
  ```bash
30
- npx claude-flow hook pre-edit -f "config/database.js" --validate-syntax
30
+ npx @claude-flow/cli@latest hook pre-edit -f "config/database.js" --validate-syntax
31
31
  ```
32
32
 
33
33
  ### Manual agent assignment
34
34
 
35
35
  ```bash
36
- npx claude-flow hook pre-edit -f "api/users.ts" --auto-assign-agent false
36
+ npx @claude-flow/cli@latest hook pre-edit -f "api/users.ts" --auto-assign-agent false
37
37
  ```
38
38
 
39
39
  ### Safe editing with backup
40
40
 
41
41
  ```bash
42
- npx claude-flow hook pre-edit -f "production.env" --backup-file --check-conflicts
42
+ npx @claude-flow/cli@latest hook pre-edit -f "production.env" --backup-file --check-conflicts
43
43
  ```
44
44
 
45
45
  ## Features
@@ -86,7 +86,7 @@ Manual usage in agents:
86
86
 
87
87
  ```bash
88
88
  # Before editing files
89
- npx claude-flow hook pre-edit --file "path/to/file.js" --validate-syntax
89
+ npx @claude-flow/cli@latest hook pre-edit --file "path/to/file.js" --validate-syntax
90
90
  ```
91
91
 
92
92
  ## Output
@@ -5,7 +5,7 @@ Execute pre-task preparations and context loading.
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
- npx claude-flow hook pre-task [options]
8
+ npx @claude-flow/cli@latest hook pre-task [options]
9
9
  ```
10
10
 
11
11
  ## Options
@@ -21,25 +21,25 @@ npx claude-flow hook pre-task [options]
21
21
  ### Basic pre-task hook
22
22
 
23
23
  ```bash
24
- npx claude-flow hook pre-task --description "Implement user authentication"
24
+ npx @claude-flow/cli@latest hook pre-task --description "Implement user authentication"
25
25
  ```
26
26
 
27
27
  ### With memory loading
28
28
 
29
29
  ```bash
30
- npx claude-flow hook pre-task -d "Continue API development" --load-memory
30
+ npx @claude-flow/cli@latest hook pre-task -d "Continue API development" --load-memory
31
31
  ```
32
32
 
33
33
  ### Manual agent control
34
34
 
35
35
  ```bash
36
- npx claude-flow hook pre-task -d "Debug issue #123" --auto-spawn-agents false
36
+ npx @claude-flow/cli@latest hook pre-task -d "Debug issue #123" --auto-spawn-agents false
37
37
  ```
38
38
 
39
39
  ### Full optimization
40
40
 
41
41
  ```bash
42
- npx claude-flow hook pre-task -d "Refactor codebase" --optimize-topology --estimate-complexity
42
+ npx @claude-flow/cli@latest hook pre-task -d "Refactor codebase" --optimize-topology --estimate-complexity
43
43
  ```
44
44
 
45
45
  ## Features
@@ -85,7 +85,7 @@ Manual usage in agents:
85
85
 
86
86
  ```bash
87
87
  # In agent coordination
88
- npx claude-flow hook pre-task --description "Your task here"
88
+ npx @claude-flow/cli@latest hook pre-task --description "Your task here"
89
89
  ```
90
90
 
91
91
  ## Output
@@ -5,7 +5,7 @@ Cleanup and persist session state before ending work.
5
5
  ## Usage
6
6
 
7
7
  ```bash
8
- npx claude-flow hook session-end [options]
8
+ npx @claude-flow/cli@latest hook session-end [options]
9
9
  ```
10
10
 
11
11
  ## Options
@@ -21,25 +21,25 @@ npx claude-flow hook session-end [options]
21
21
  ### Basic session end
22
22
 
23
23
  ```bash
24
- npx claude-flow hook session-end --session-id "dev-session-2024"
24
+ npx @claude-flow/cli@latest hook session-end --session-id "dev-session-2024"
25
25
  ```
26
26
 
27
27
  ### With full export
28
28
 
29
29
  ```bash
30
- npx claude-flow hook session-end -s "feature-auth" --export-metrics --generate-summary
30
+ npx @claude-flow/cli@latest hook session-end -s "feature-auth" --export-metrics --generate-summary
31
31
  ```
32
32
 
33
33
  ### Quick close
34
34
 
35
35
  ```bash
36
- npx claude-flow hook session-end -s "quick-fix" --save-state false --cleanup-temp
36
+ npx @claude-flow/cli@latest hook session-end -s "quick-fix" --save-state false --cleanup-temp
37
37
  ```
38
38
 
39
39
  ### Complete persistence
40
40
 
41
41
  ```bash
42
- npx claude-flow hook session-end -s "major-refactor" --save-state --export-metrics --generate-summary
42
+ npx @claude-flow/cli@latest hook session-end -s "major-refactor" --save-state --export-metrics --generate-summary
43
43
  ```
44
44
 
45
45
  ## Features
@@ -86,7 +86,7 @@ Manual usage in agents:
86
86
 
87
87
  ```bash
88
88
  # At session end
89
- npx claude-flow hook session-end --session-id "your-session" --generate-summary
89
+ npx @claude-flow/cli@latest hook session-end --session-id "your-session" --generate-summary
90
90
  ```
91
91
 
92
92
  ## Output
@@ -4,7 +4,7 @@
4
4
 
5
5
  ### 1. Initialize with Hooks
6
6
  ```bash
7
- npx claude-flow init --hooks
7
+ npx @claude-flow/cli@latest init --hooks
8
8
  ```
9
9
 
10
10
  This automatically creates:
@@ -15,10 +15,10 @@ This automatically creates:
15
15
  ### 2. Test Hook Functionality
16
16
  ```bash
17
17
  # Test pre-edit hook
18
- npx claude-flow hook pre-edit --file test.js
18
+ npx @claude-flow/cli@latest hook pre-edit --file test.js
19
19
 
20
20
  # Test session summary
21
- npx claude-flow hook session-end --summary
21
+ npx @claude-flow/cli@latest hook session-end --summary
22
22
  ```
23
23
 
24
24
  ### 3. Customize Hooks
@@ -33,7 +33,7 @@ Edit `.claude/settings.json` to customize:
33
33
  "matcher": "^Write$",
34
34
  "hooks": [{
35
35
  "type": "command",
36
- "command": "npx claude-flow hook pre-write --file '${tool.params.file_path}'"
36
+ "command": "npx @claude-flow/cli@latest hook pre-write --file '${tool.params.file_path}'"
37
37
  }]
38
38
  }
39
39
  ]
@@ -72,7 +72,7 @@ Example blocking response:
72
72
  export CLAUDE_FLOW_DEBUG=true
73
73
 
74
74
  # Test specific hook
75
- npx claude-flow hook pre-edit --file app.js --debug
75
+ npx @claude-flow/cli@latest hook pre-edit --file app.js --debug
76
76
  ```
77
77
 
78
78
  ## Common Patterns
@@ -86,7 +86,7 @@ Already configured by default for common file types.
86
86
  "matcher": "^(Write|Edit)$",
87
87
  "hooks": [{
88
88
  "type": "command",
89
- "command": "npx claude-flow hook check-protected --file '${tool.params.file_path}'"
89
+ "command": "npx @claude-flow/cli@latest hook check-protected --file '${tool.params.file_path}'"
90
90
  }]
91
91
  }
92
92
  ```
@@ -4,7 +4,7 @@ Persist memory across sessions.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow memory persist [options]
7
+ npx @claude-flow/cli@latest memory persist [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -15,11 +15,11 @@ npx claude-flow memory persist [options]
15
15
  ## Examples
16
16
  ```bash
17
17
  # Export memory
18
- npx claude-flow memory persist --export memory-backup.json
18
+ npx @claude-flow/cli@latest memory persist --export memory-backup.json
19
19
 
20
20
  # Import memory
21
- npx claude-flow memory persist --import memory-backup.json
21
+ npx @claude-flow/cli@latest memory persist --import memory-backup.json
22
22
 
23
23
  # Compressed export
24
- npx claude-flow memory persist --export memory.gz --compress
24
+ npx @claude-flow/cli@latest memory persist --export memory.gz --compress
25
25
  ```
@@ -4,7 +4,7 @@ Search through stored memory.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow memory search [options]
7
+ npx @claude-flow/cli@latest memory search [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -15,11 +15,11 @@ npx claude-flow memory search [options]
15
15
  ## Examples
16
16
  ```bash
17
17
  # Search memory
18
- npx claude-flow memory search --query "authentication"
18
+ npx @claude-flow/cli@latest memory search --query "authentication"
19
19
 
20
20
  # Pattern search
21
- npx claude-flow memory search --pattern "api-.*"
21
+ npx @claude-flow/cli@latest memory search --pattern "api-.*"
22
22
 
23
23
  # Limited results
24
- npx claude-flow memory search --query "config" --limit 10
24
+ npx @claude-flow/cli@latest memory search --query "config" --limit 10
25
25
  ```
@@ -4,7 +4,7 @@ Manage persistent memory storage.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow memory usage [options]
7
+ npx @claude-flow/cli@latest memory usage [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -15,11 +15,11 @@ npx claude-flow memory usage [options]
15
15
  ## Examples
16
16
  ```bash
17
17
  # Store memory
18
- npx claude-flow memory usage --action store --key "project-config" --value '{"api": "v2"}'
18
+ npx @claude-flow/cli@latest memory usage --action store --key "project-config" --value '{"api": "v2"}'
19
19
 
20
20
  # Retrieve memory
21
- npx claude-flow memory usage --action retrieve --key "project-config"
21
+ npx @claude-flow/cli@latest memory usage --action retrieve --key "project-config"
22
22
 
23
23
  # List all keys
24
- npx claude-flow memory usage --action list
24
+ npx @claude-flow/cli@latest memory usage --action list
25
25
  ```
@@ -4,7 +4,7 @@ View agent performance metrics.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow agent metrics [options]
7
+ npx @claude-flow/cli@latest agent metrics [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -15,11 +15,11 @@ npx claude-flow agent metrics [options]
15
15
  ## Examples
16
16
  ```bash
17
17
  # All agents metrics
18
- npx claude-flow agent metrics
18
+ npx @claude-flow/cli@latest agent metrics
19
19
 
20
20
  # Specific agent
21
- npx claude-flow agent metrics --agent-id agent-001
21
+ npx @claude-flow/cli@latest agent metrics --agent-id agent-001
22
22
 
23
23
  # Last hour
24
- npx claude-flow agent metrics --period 1h
24
+ npx @claude-flow/cli@latest agent metrics --period 1h
25
25
  ```
@@ -4,7 +4,7 @@ Real-time view of swarm activity.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow monitoring real-time-view [options]
7
+ npx @claude-flow/cli@latest monitoring real-time-view [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -15,11 +15,11 @@ npx claude-flow monitoring real-time-view [options]
15
15
  ## Examples
16
16
  ```bash
17
17
  # Start real-time view
18
- npx claude-flow monitoring real-time-view
18
+ npx @claude-flow/cli@latest monitoring real-time-view
19
19
 
20
20
  # Filter errors
21
- npx claude-flow monitoring real-time-view --filter errors
21
+ npx @claude-flow/cli@latest monitoring real-time-view --filter errors
22
22
 
23
23
  # Highlight pattern
24
- npx claude-flow monitoring real-time-view --highlight "API"
24
+ npx @claude-flow/cli@latest monitoring real-time-view --highlight "API"
25
25
  ```
@@ -4,7 +4,7 @@ Real-time swarm monitoring.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow swarm monitor [options]
7
+ npx @claude-flow/cli@latest swarm monitor [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -15,11 +15,11 @@ npx claude-flow swarm monitor [options]
15
15
  ## Examples
16
16
  ```bash
17
17
  # Start monitoring
18
- npx claude-flow swarm monitor
18
+ npx @claude-flow/cli@latest swarm monitor
19
19
 
20
20
  # Custom interval
21
- npx claude-flow swarm monitor --interval 5000
21
+ npx @claude-flow/cli@latest swarm monitor --interval 5000
22
22
 
23
23
  # With metrics
24
- npx claude-flow swarm monitor --metrics
24
+ npx @claude-flow/cli@latest swarm monitor --metrics
25
25
  ```
@@ -45,7 +45,7 @@ Result: Automatically uses hierarchical topology with architect, coder, and test
45
45
  The pre-task hook automatically handles topology selection:
46
46
  ```json
47
47
  {
48
- "command": "npx claude-flow hook pre-task --optimize-topology"
48
+ "command": "npx @claude-flow/cli@latest hook pre-task --optimize-topology"
49
49
  }
50
50
  ```
51
51
 
@@ -58,5 +58,5 @@ Parameters: {"swarmId": "current"}
58
58
  ## CLI Usage
59
59
  ```bash
60
60
  # Auto-optimize topology via CLI
61
- npx claude-flow optimize topology
61
+ npx @claude-flow/cli@latest optimize topology
62
62
  ```
@@ -4,7 +4,7 @@ Manage operation cache for performance.
4
4
 
5
5
  ## Usage
6
6
  ```bash
7
- npx claude-flow optimization cache-manage [options]
7
+ npx @claude-flow/cli@latest optimization cache-manage [options]
8
8
  ```
9
9
 
10
10
  ## Options
@@ -15,11 +15,11 @@ npx claude-flow optimization cache-manage [options]
15
15
  ## Examples
16
16
  ```bash
17
17
  # View cache stats
18
- npx claude-flow optimization cache-manage --action view
18
+ npx @claude-flow/cli@latest optimization cache-manage --action view
19
19
 
20
20
  # Clear cache
21
- npx claude-flow optimization cache-manage --action clear
21
+ npx @claude-flow/cli@latest optimization cache-manage --action clear
22
22
 
23
23
  # Set limits
24
- npx claude-flow optimization cache-manage --max-size 100 --ttl 3600
24
+ npx @claude-flow/cli@latest optimization cache-manage --max-size 100 --ttl 3600
25
25
  ```