@delorenj/claude-notifications 1.1.0 → 2.0.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.
Files changed (148) hide show
  1. package/.claude/checkpoints/1756392335.json +1 -0
  2. package/.claude/checkpoints/1756392341.json +1 -0
  3. package/.claude/checkpoints/1756392347.json +1 -0
  4. package/.claude/checkpoints/1756392376.json +1 -0
  5. package/.claude/checkpoints/1756392377.json +1 -0
  6. package/.claude/checkpoints/1756392386.json +1 -0
  7. package/.claude/checkpoints/1756392387.json +1 -0
  8. package/.claude/checkpoints/1756392398.json +1 -0
  9. package/.claude/checkpoints/1756392400.json +1 -0
  10. package/.claude/checkpoints/1756392427.json +1 -0
  11. package/.claude/checkpoints/1756392428.json +1 -0
  12. package/.claude/checkpoints/1756392486.json +1 -0
  13. package/.claude/checkpoints/1756392488.json +1 -0
  14. package/.claude/checkpoints/1756392558.json +1 -0
  15. package/.claude/checkpoints/1756392559.json +1 -0
  16. package/.claude/checkpoints/summary-session-20250828-105040.md +57 -0
  17. package/.claude/checkpoints/task-1756392207.json +1 -0
  18. package/.claude/checkpoints/task-1756392742.json +1 -0
  19. package/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
  20. package/.claude/commands/analysis/README.md +9 -0
  21. package/.claude/commands/analysis/bottleneck-detect.md +162 -0
  22. package/.claude/commands/analysis/performance-bottlenecks.md +59 -0
  23. package/.claude/commands/analysis/performance-report.md +25 -0
  24. package/.claude/commands/analysis/token-efficiency.md +45 -0
  25. package/.claude/commands/analysis/token-usage.md +25 -0
  26. package/.claude/commands/automation/README.md +9 -0
  27. package/.claude/commands/automation/auto-agent.md +122 -0
  28. package/.claude/commands/automation/self-healing.md +106 -0
  29. package/.claude/commands/automation/session-memory.md +90 -0
  30. package/.claude/commands/automation/smart-agents.md +73 -0
  31. package/.claude/commands/automation/smart-spawn.md +25 -0
  32. package/.claude/commands/automation/workflow-select.md +25 -0
  33. package/.claude/commands/coordination/README.md +9 -0
  34. package/.claude/commands/coordination/agent-spawn.md +25 -0
  35. package/.claude/commands/coordination/init.md +44 -0
  36. package/.claude/commands/coordination/orchestrate.md +43 -0
  37. package/.claude/commands/coordination/spawn.md +45 -0
  38. package/.claude/commands/coordination/swarm-init.md +85 -0
  39. package/.claude/commands/coordination/task-orchestrate.md +25 -0
  40. package/.claude/commands/github/README.md +11 -0
  41. package/.claude/commands/github/code-review-swarm.md +514 -0
  42. package/.claude/commands/github/code-review.md +25 -0
  43. package/.claude/commands/github/github-modes.md +147 -0
  44. package/.claude/commands/github/github-swarm.md +121 -0
  45. package/.claude/commands/github/issue-tracker.md +292 -0
  46. package/.claude/commands/github/issue-triage.md +25 -0
  47. package/.claude/commands/github/multi-repo-swarm.md +519 -0
  48. package/.claude/commands/github/pr-enhance.md +26 -0
  49. package/.claude/commands/github/pr-manager.md +170 -0
  50. package/.claude/commands/github/project-board-sync.md +471 -0
  51. package/.claude/commands/github/release-manager.md +338 -0
  52. package/.claude/commands/github/release-swarm.md +544 -0
  53. package/.claude/commands/github/repo-analyze.md +25 -0
  54. package/.claude/commands/github/repo-architect.md +367 -0
  55. package/.claude/commands/github/swarm-issue.md +482 -0
  56. package/.claude/commands/github/swarm-pr.md +285 -0
  57. package/.claude/commands/github/sync-coordinator.md +301 -0
  58. package/.claude/commands/github/workflow-automation.md +442 -0
  59. package/.claude/commands/hooks/README.md +11 -0
  60. package/.claude/commands/hooks/overview.md +58 -0
  61. package/.claude/commands/hooks/post-edit.md +117 -0
  62. package/.claude/commands/hooks/post-task.md +112 -0
  63. package/.claude/commands/hooks/pre-edit.md +113 -0
  64. package/.claude/commands/hooks/pre-task.md +111 -0
  65. package/.claude/commands/hooks/session-end.md +118 -0
  66. package/.claude/commands/hooks/setup.md +103 -0
  67. package/.claude/commands/memory/README.md +9 -0
  68. package/.claude/commands/memory/memory-persist.md +25 -0
  69. package/.claude/commands/memory/memory-search.md +25 -0
  70. package/.claude/commands/memory/memory-usage.md +25 -0
  71. package/.claude/commands/memory/neural.md +47 -0
  72. package/.claude/commands/memory/usage.md +46 -0
  73. package/.claude/commands/monitoring/README.md +9 -0
  74. package/.claude/commands/monitoring/agent-metrics.md +25 -0
  75. package/.claude/commands/monitoring/agents.md +44 -0
  76. package/.claude/commands/monitoring/real-time-view.md +25 -0
  77. package/.claude/commands/monitoring/status.md +46 -0
  78. package/.claude/commands/monitoring/swarm-monitor.md +25 -0
  79. package/.claude/commands/optimization/README.md +9 -0
  80. package/.claude/commands/optimization/auto-topology.md +62 -0
  81. package/.claude/commands/optimization/cache-manage.md +25 -0
  82. package/.claude/commands/optimization/parallel-execute.md +25 -0
  83. package/.claude/commands/optimization/parallel-execution.md +50 -0
  84. package/.claude/commands/optimization/topology-optimize.md +25 -0
  85. package/.claude/commands/pair/README.md +261 -0
  86. package/.claude/commands/pair/commands.md +546 -0
  87. package/.claude/commands/pair/config.md +510 -0
  88. package/.claude/commands/pair/examples.md +512 -0
  89. package/.claude/commands/pair/modes.md +348 -0
  90. package/.claude/commands/pair/session.md +407 -0
  91. package/.claude/commands/pair/start.md +209 -0
  92. package/.claude/commands/sparc/analyzer.md +52 -0
  93. package/.claude/commands/sparc/architect.md +53 -0
  94. package/.claude/commands/sparc/batch-executor.md +54 -0
  95. package/.claude/commands/sparc/coder.md +54 -0
  96. package/.claude/commands/sparc/debugger.md +54 -0
  97. package/.claude/commands/sparc/designer.md +53 -0
  98. package/.claude/commands/sparc/documenter.md +54 -0
  99. package/.claude/commands/sparc/innovator.md +54 -0
  100. package/.claude/commands/sparc/memory-manager.md +54 -0
  101. package/.claude/commands/sparc/optimizer.md +54 -0
  102. package/.claude/commands/sparc/orchestrator.md +132 -0
  103. package/.claude/commands/sparc/researcher.md +54 -0
  104. package/.claude/commands/sparc/reviewer.md +54 -0
  105. package/.claude/commands/sparc/sparc-modes.md +174 -0
  106. package/.claude/commands/sparc/swarm-coordinator.md +54 -0
  107. package/.claude/commands/sparc/tdd.md +54 -0
  108. package/.claude/commands/sparc/tester.md +54 -0
  109. package/.claude/commands/sparc/workflow-manager.md +54 -0
  110. package/.claude/commands/stream-chain/pipeline.md +121 -0
  111. package/.claude/commands/stream-chain/run.md +70 -0
  112. package/.claude/commands/swarm/analysis.md +95 -0
  113. package/.claude/commands/swarm/development.md +96 -0
  114. package/.claude/commands/swarm/examples.md +168 -0
  115. package/.claude/commands/swarm/maintenance.md +102 -0
  116. package/.claude/commands/swarm/optimization.md +117 -0
  117. package/.claude/commands/swarm/research.md +136 -0
  118. package/.claude/commands/swarm/testing.md +131 -0
  119. package/.claude/commands/training/README.md +9 -0
  120. package/.claude/commands/training/model-update.md +25 -0
  121. package/.claude/commands/training/neural-patterns.md +74 -0
  122. package/.claude/commands/training/neural-train.md +25 -0
  123. package/.claude/commands/training/pattern-learn.md +25 -0
  124. package/.claude/commands/training/specialization.md +63 -0
  125. package/.claude/commands/truth/start.md +143 -0
  126. package/.claude/commands/verify/check.md +50 -0
  127. package/.claude/commands/verify/start.md +128 -0
  128. package/.claude/commands/workflows/README.md +9 -0
  129. package/.claude/commands/workflows/development.md +78 -0
  130. package/.claude/commands/workflows/research.md +63 -0
  131. package/.claude/commands/workflows/workflow-create.md +25 -0
  132. package/.claude/commands/workflows/workflow-execute.md +25 -0
  133. package/.claude/commands/workflows/workflow-export.md +25 -0
  134. package/.claude/config.json +36 -0
  135. package/.claude/settings.json +162 -0
  136. package/.claude-flow/metrics/agent-metrics.json +1 -0
  137. package/.claude-flow/metrics/performance.json +9 -0
  138. package/.claude-flow/metrics/system-metrics.json +230 -0
  139. package/.claude-flow/metrics/task-metrics.json +10 -0
  140. package/FIXES.md +75 -0
  141. package/README.md +19 -2
  142. package/bin/claude-notifications.js +145 -46
  143. package/bin/claude-notify.js +84 -4
  144. package/lib/config.js +113 -1
  145. package/package.json +1 -1
  146. package/test-results.md +163 -0
  147. package/test.sh +1 -1
  148. package/ruv-swarm-mcp.db +0 -0
@@ -0,0 +1,78 @@
1
+ # Development Workflow Coordination
2
+
3
+ ## Purpose
4
+ Structure Claude Code's approach to complex development tasks for maximum efficiency.
5
+
6
+ ## Step-by-Step Coordination
7
+
8
+ ### 1. Initialize Development Framework
9
+ ```
10
+ Tool: mcp__claude-flow__swarm_init
11
+ Parameters: {"topology": "hierarchical", "maxAgents": 8, "strategy": "specialized"}
12
+ ```
13
+ Creates hierarchical structure for organized, top-down development.
14
+
15
+ ### 2. Define Development Perspectives
16
+ ```
17
+ Tool: mcp__claude-flow__agent_spawn
18
+ Parameters: {
19
+ "type": "architect",
20
+ "name": "System Design",
21
+ "capabilities": ["api-design", "database-schema"]
22
+ }
23
+ ```
24
+ ```
25
+ Tool: mcp__claude-flow__agent_spawn
26
+ Parameters: {
27
+ "type": "coder",
28
+ "name": "Implementation Focus",
29
+ "capabilities": ["nodejs", "typescript", "express"]
30
+ }
31
+ ```
32
+ ```
33
+ Tool: mcp__claude-flow__agent_spawn
34
+ Parameters: {
35
+ "type": "tester",
36
+ "name": "Quality Assurance",
37
+ "capabilities": ["unit-testing", "integration-testing"]
38
+ }
39
+ ```
40
+ Sets up architectural and implementation thinking patterns.
41
+
42
+ ### 3. Coordinate Implementation
43
+ ```
44
+ Tool: mcp__claude-flow__task_orchestrate
45
+ Parameters: {
46
+ "task": "Build REST API with authentication",
47
+ "strategy": "parallel",
48
+ "priority": "high",
49
+ "dependencies": ["database setup", "auth system"]
50
+ }
51
+ ```
52
+
53
+ ### 4. Monitor Progress
54
+ ```
55
+ Tool: mcp__claude-flow__task_status
56
+ Parameters: {"taskId": "api-build-task-123"}
57
+ ```
58
+
59
+ ## What Claude Code Actually Does
60
+ 1. Uses **Write** tool to create new files
61
+ 2. Uses **Edit/MultiEdit** tools for code modifications
62
+ 3. Uses **Bash** tool for testing and building
63
+ 4. Uses **TodoWrite** tool for task tracking
64
+ 5. Follows coordination patterns for systematic implementation
65
+
66
+ Remember: All code is written by Claude Code using its native tools!
67
+
68
+ ## CLI Usage
69
+ ```bash
70
+ # Start development workflow via CLI
71
+ npx claude-flow workflow dev "REST API with auth"
72
+
73
+ # Create custom workflow
74
+ npx claude-flow workflow create --name "api-dev" --steps "design,implement,test,deploy"
75
+
76
+ # Execute saved workflow
77
+ npx claude-flow workflow execute api-dev
78
+ ```
@@ -0,0 +1,63 @@
1
+ # Research Workflow Coordination
2
+
3
+ ## Purpose
4
+ Coordinate Claude Code's research activities for comprehensive, systematic exploration.
5
+
6
+ ## Step-by-Step Coordination
7
+
8
+ ### 1. Initialize Research Framework
9
+ ```
10
+ Tool: mcp__claude-flow__swarm_init
11
+ Parameters: {"topology": "mesh", "maxAgents": 5, "strategy": "balanced"}
12
+ ```
13
+ Creates a mesh topology for comprehensive exploration from multiple angles.
14
+
15
+ ### 2. Define Research Perspectives
16
+ ```
17
+ Tool: mcp__claude-flow__agent_spawn
18
+ Parameters: {"type": "researcher", "name": "Literature Review"}
19
+ ```
20
+ ```
21
+ Tool: mcp__claude-flow__agent_spawn
22
+ Parameters: {"type": "analyst", "name": "Data Analysis"}
23
+ ```
24
+ Sets up different analytical approaches for Claude Code to use.
25
+
26
+ ### 3. Execute Coordinated Research
27
+ ```
28
+ Tool: mcp__claude-flow__task_orchestrate
29
+ Parameters: {
30
+ "task": "Research modern web frameworks performance",
31
+ "strategy": "adaptive",
32
+ "priority": "medium"
33
+ }
34
+ ```
35
+
36
+ ### 4. Store Research Findings
37
+ ```
38
+ Tool: mcp__claude-flow__memory_usage
39
+ Parameters: {
40
+ "action": "store",
41
+ "key": "research_findings",
42
+ "value": "framework performance analysis results",
43
+ "namespace": "research"
44
+ }
45
+ ```
46
+
47
+ ## What Claude Code Actually Does
48
+ 1. Uses **WebSearch** tool for finding resources
49
+ 2. Uses **Read** tool for analyzing documentation
50
+ 3. Uses **Task** tool for parallel exploration
51
+ 4. Synthesizes findings using coordination patterns
52
+ 5. Stores insights in memory for future reference
53
+
54
+ Remember: The swarm coordinates HOW Claude Code researches, not WHAT it finds.
55
+
56
+ ## CLI Usage
57
+ ```bash
58
+ # Start research workflow via CLI
59
+ npx claude-flow workflow research "modern web frameworks"
60
+
61
+ # Export research workflow
62
+ npx claude-flow workflow export research --format json
63
+ ```
@@ -0,0 +1,25 @@
1
+ # workflow-create
2
+
3
+ Create reusable workflow templates.
4
+
5
+ ## Usage
6
+ ```bash
7
+ npx claude-flow workflow create [options]
8
+ ```
9
+
10
+ ## Options
11
+ - `--name <name>` - Workflow name
12
+ - `--from-history` - Create from history
13
+ - `--interactive` - Interactive creation
14
+
15
+ ## Examples
16
+ ```bash
17
+ # Create workflow
18
+ npx claude-flow workflow create --name "deploy-api"
19
+
20
+ # From history
21
+ npx claude-flow workflow create --name "test-suite" --from-history
22
+
23
+ # Interactive mode
24
+ npx claude-flow workflow create --interactive
25
+ ```
@@ -0,0 +1,25 @@
1
+ # workflow-execute
2
+
3
+ Execute saved workflows.
4
+
5
+ ## Usage
6
+ ```bash
7
+ npx claude-flow workflow execute [options]
8
+ ```
9
+
10
+ ## Options
11
+ - `--name <name>` - Workflow name
12
+ - `--params <json>` - Workflow parameters
13
+ - `--dry-run` - Preview execution
14
+
15
+ ## Examples
16
+ ```bash
17
+ # Execute workflow
18
+ npx claude-flow workflow execute --name "deploy-api"
19
+
20
+ # With parameters
21
+ npx claude-flow workflow execute --name "test-suite" --params '{"env": "staging"}'
22
+
23
+ # Dry run
24
+ npx claude-flow workflow execute --name "deploy-api" --dry-run
25
+ ```
@@ -0,0 +1,25 @@
1
+ # workflow-export
2
+
3
+ Export workflows for sharing.
4
+
5
+ ## Usage
6
+ ```bash
7
+ npx claude-flow workflow export [options]
8
+ ```
9
+
10
+ ## Options
11
+ - `--name <name>` - Workflow to export
12
+ - `--format <type>` - Export format
13
+ - `--include-history` - Include execution history
14
+
15
+ ## Examples
16
+ ```bash
17
+ # Export workflow
18
+ npx claude-flow workflow export --name "deploy-api"
19
+
20
+ # As YAML
21
+ npx claude-flow workflow export --name "test-suite" --format yaml
22
+
23
+ # With history
24
+ npx claude-flow workflow export --name "deploy-api" --include-history
25
+ ```
@@ -0,0 +1,36 @@
1
+ {
2
+ "version": "1.0",
3
+ "sparc": {
4
+ "enabled": true,
5
+ "modes": [
6
+ "orchestrator",
7
+ "coder",
8
+ "researcher",
9
+ "tdd",
10
+ "architect",
11
+ "reviewer",
12
+ "debugger",
13
+ "tester",
14
+ "analyzer",
15
+ "optimizer",
16
+ "documenter",
17
+ "designer",
18
+ "innovator",
19
+ "swarm-coordinator",
20
+ "memory-manager",
21
+ "batch-executor",
22
+ "workflow-manager"
23
+ ]
24
+ },
25
+ "swarm": {
26
+ "enabled": true,
27
+ "strategies": [
28
+ "research",
29
+ "development",
30
+ "analysis",
31
+ "testing",
32
+ "optimization",
33
+ "maintenance"
34
+ ]
35
+ }
36
+ }
@@ -0,0 +1,162 @@
1
+ {
2
+ "env": {
3
+ "CLAUDE_FLOW_AUTO_COMMIT": "false",
4
+ "CLAUDE_FLOW_AUTO_PUSH": "false",
5
+ "CLAUDE_FLOW_HOOKS_ENABLED": "true",
6
+ "CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
7
+ "CLAUDE_FLOW_REMOTE_EXECUTION": "true",
8
+ "CLAUDE_FLOW_GITHUB_INTEGRATION": "true",
9
+ "CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true",
10
+ "CREATE_GH_RELEASE": "true"
11
+ },
12
+ "permissions": {
13
+ "allow": [
14
+ "Bash(npx claude-flow *)",
15
+ "Bash(npm run lint)",
16
+ "Bash(npm run test:*)",
17
+ "Bash(npm test *)",
18
+ "Bash(git status)",
19
+ "Bash(git diff *)",
20
+ "Bash(git log *)",
21
+ "Bash(git add *)",
22
+ "Bash(git commit *)",
23
+ "Bash(git push)",
24
+ "Bash(git config *)",
25
+ "Bash(git tag *)",
26
+ "Bash(git branch *)",
27
+ "Bash(git checkout *)",
28
+ "Bash(git stash *)",
29
+ "Bash(git reset *)",
30
+ "Bash(git rev-parse *)",
31
+ "Bash(git ls-files *)",
32
+ "Bash(gh *)",
33
+ "Bash(node *)",
34
+ "Bash(which *)",
35
+ "Bash(pwd)",
36
+ "Bash(ls *)",
37
+ "Bash(jq *)",
38
+ "Bash(test *)",
39
+ "Bash(find *)",
40
+ "Bash(grep *)",
41
+ "Bash(sed *)",
42
+ "Bash(awk *)",
43
+ "Bash(curl *)",
44
+ "Bash(mkdir *)",
45
+ "Bash(cd *)",
46
+ "Bash(cat *)",
47
+ "Bash(echo *)",
48
+ "Bash(npx claude-flow@alpha *)",
49
+ "Bash(./claude-flow *)",
50
+ "Bash(./.claude/helpers/*)"
51
+ ],
52
+ "deny": [
53
+ "Bash(rm -rf /)",
54
+ "Bash(curl * | bash)",
55
+ "Bash(wget * | sh)",
56
+ "Bash(eval *)"
57
+ ]
58
+ },
59
+ "hooks": {
60
+ "PreToolUse": [
61
+ {
62
+ "matcher": "Bash",
63
+ "hooks": [
64
+ {
65
+ "type": "command",
66
+ "command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-command --command '{}' --validate-safety true --prepare-resources true"
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "matcher": "Write|Edit|MultiEdit",
72
+ "hooks": [
73
+ {
74
+ "type": "command",
75
+ "command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-edit --file '{}' --auto-assign-agents true --load-context true"
76
+ },
77
+ {
78
+ "type": "command",
79
+ "command": "/bin/bash -c 'FILE=$(cat | jq -r \".tool_input.file_path // .tool_input.path // empty\"); if [ -n \"$FILE\" ]; then CHECKPOINT_BRANCH=\"checkpoint/pre-edit-$(date +%Y%m%d-%H%M%S)\"; git add -A && git stash push -m \"Pre-edit checkpoint for $FILE\" >/dev/null 2>&1 && git branch \"$CHECKPOINT_BRANCH\" && mkdir -p .claude/checkpoints && echo \"{\\\"branch\\\": \\\"$CHECKPOINT_BRANCH\\\", \\\"file\\\": \\\"$FILE\\\", \\\"timestamp\\\": \\\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\\\", \\\"type\\\": \\\"pre-edit\\\", \\\"original_branch\\\": \\\"$(git branch --show-current)\\\"}\" > \".claude/checkpoints/$(date +%s).json\" && git stash pop --quiet >/dev/null 2>&1 || true && echo \"✅ Created checkpoint: $CHECKPOINT_BRANCH for $FILE\"; fi'"
80
+ }
81
+ ]
82
+ }
83
+ ],
84
+ "PostToolUse": [
85
+ {
86
+ "matcher": "Bash",
87
+ "hooks": [
88
+ {
89
+ "type": "command",
90
+ "command": "cat | jq -r '.tool_input.command // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-command --command '{}' --track-metrics true --store-results true"
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "matcher": "Write|Edit|MultiEdit",
96
+ "hooks": [
97
+ {
98
+ "type": "command",
99
+ "command": "cat | jq -r '.tool_input.file_path // .tool_input.path // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks post-edit --file '{}' --format true --update-memory true"
100
+ },
101
+ {
102
+ "type": "command",
103
+ "command": "/bin/bash -c 'FILE=$(cat | jq -r \".tool_input.file_path // .tool_input.path // empty\"); if [ -n \"$FILE\" ] && [ -f \"$FILE\" ]; then if ! git ls-files --error-unmatch \"$FILE\" >/dev/null 2>&1; then git add \"$FILE\"; fi; if ! (git diff --cached --quiet \"$FILE\" 2>/dev/null && git diff --quiet \"$FILE\" 2>/dev/null); then TAG_NAME=\"checkpoint-$(date +%Y%m%d-%H%M%S)\"; BRANCH=$(git branch --show-current); git add \"$FILE\" && git commit -m \"🔖 Checkpoint: Edit $FILE\" --quiet && git tag -a \"$TAG_NAME\" -m \"Checkpoint after editing $FILE\" && mkdir -p .claude/checkpoints && DIFF_STATS=$(git diff HEAD~1 --stat | tr \"\\n\" \" \" | sed \"s/\\\"/\\\\\\\\\\\"/g\") && echo \"{\\\"tag\\\": \\\"$TAG_NAME\\\", \\\"file\\\": \\\"$FILE\\\", \\\"timestamp\\\": \\\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\\\", \\\"type\\\": \\\"post-edit\\\", \\\"branch\\\": \\\"$BRANCH\\\", \\\"diff_summary\\\": \\\"$DIFF_STATS\\\"}\" > \".claude/checkpoints/$(date +%s).json\" && echo \"✅ Created checkpoint: $TAG_NAME for $FILE\"; else echo \"ℹ️ No changes to checkpoint for $FILE\"; fi; fi'"
104
+ }
105
+ ]
106
+ }
107
+ ],
108
+ "UserPromptSubmit": [
109
+ {
110
+ "hooks": [
111
+ {
112
+ "type": "command",
113
+ "command": "/bin/bash -c 'INPUT=$(cat); TASK=$(echo \"$INPUT\" | jq -r \".prompt // empty\" 2>/dev/null | head -c 100 | tr \"\\n\" \" \"); if [ -z \"$TASK\" ]; then TASK=\"Task checkpoint\"; fi; if [ -n \"$TASK\" ]; then CHECKPOINT_NAME=\"task-$(date +%Y%m%d-%H%M%S)\"; git add -A && git commit -m \"🔖 Task: $TASK...\" --quiet || true; if command -v gh &> /dev/null; then echo \"🚀 Creating GitHub release for checkpoint...\"; gh release create \"$CHECKPOINT_NAME\" --title \"Checkpoint: $(date +\"%Y-%m-%d %H:%M\")\" --notes \"Task: $TASK\n\n## Checkpoint Details\n- Branch: $(git branch --show-current)\n- Commit: $(git rev-parse HEAD)\n- Files changed: $(git diff HEAD~1 --stat 2>/dev/null | wc -l || echo 0) files\n\n## Rollback Instructions\n\\`\\`\\`bash\n# To rollback to this checkpoint:\ngit checkout $CHECKPOINT_NAME\n\\`\\`\\`\" --prerelease || echo \"⚠️ Failed to create GitHub release\"; fi; mkdir -p .claude/checkpoints && echo \"{\\\"checkpoint\\\": \\\"$CHECKPOINT_NAME\\\", \\\"task\\\": \\\"$TASK\\\", \\\"timestamp\\\": \\\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\\\", \\\"commit\\\": \\\"$(git rev-parse HEAD)\\\", \\\"github_release\\\": \\\"$(command -v gh &> /dev/null && echo true || echo false)\\\"}\" > \".claude/checkpoints/task-$(date +%s).json\" && echo \"✅ Created task checkpoint: $CHECKPOINT_NAME\"; fi'"
114
+ }
115
+ ]
116
+ }
117
+ ],
118
+ "Stop": [
119
+ {
120
+ "hooks": [
121
+ {
122
+ "type": "command",
123
+ "command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"
124
+ },
125
+ {
126
+ "type": "command",
127
+ "command": "/bin/bash -c 'SESSION_ID=\"session-$(date +%Y%m%d-%H%M%S)\"; SUMMARY_FILE=\".claude/checkpoints/summary-$SESSION_ID.md\"; mkdir -p .claude/checkpoints && echo \"# Session Summary - $(date +\"%Y-%m-%d %H:%M:%S\")\n\n## Checkpoints Created\n$(find .claude/checkpoints -name \"*.json\" -mtime -1 -exec basename {} \\; | sort)\n\n## Files Modified\n$(git diff --name-only $(git log --format=%H -n 1 --before=\"1 hour ago\" 2>/dev/null) 2>/dev/null || echo \"No files tracked\")\n\n## Recent Commits\n$(git log --oneline -10 --grep=\"Checkpoint\" || echo \"No checkpoint commits\")\n\n## GitHub Releases Created\n$(gh release list --limit 10 | grep \"checkpoint-\" || echo \"No GitHub releases\")\n\n## Rollback Instructions\nTo rollback to a specific checkpoint:\n\\`\\`\\`bash\n# List all checkpoints\ngit tag -l \"checkpoint-*\" | sort -r\n\n# List GitHub releases\ngh release list\n\n# Rollback to a checkpoint\ngit checkout checkpoint-YYYYMMDD-HHMMSS\n\\`\\`\\`\" > \"$SUMMARY_FILE\" && git add -A && git commit -m \"🏁 Session end checkpoint: $SESSION_ID\" --quiet || true && git tag -a \"session-end-$SESSION_ID\" -m \"End of Claude session\" && if command -v gh &> /dev/null; then echo \"📊 Creating GitHub session summary...\"; gh release create \"session-$SESSION_ID\" --title \"Session Summary: $(date +\"%Y-%m-%d %H:%M\")\" --notes-file \"$SUMMARY_FILE\" --prerelease || echo \"⚠️ Failed to create GitHub session summary\"; fi && echo \"✅ Session summary saved to: $SUMMARY_FILE\" && echo \"📌 Final checkpoint: session-end-$SESSION_ID\"'"
128
+ }
129
+ ]
130
+ }
131
+ ],
132
+ "PreCompact": [
133
+ {
134
+ "matcher": "manual",
135
+ "hooks": [
136
+ {
137
+ "type": "command",
138
+ "command": "/bin/bash -c 'INPUT=$(cat); CUSTOM=$(echo \"$INPUT\" | jq -r \".custom_instructions // \"\"\"); echo \"🔄 PreCompact Guidance:\"; echo \"📋 IMPORTANT: Review CLAUDE.md in project root for:\"; echo \" • 54 available agents and concurrent usage patterns\"; echo \" • Swarm coordination strategies (hierarchical, mesh, adaptive)\"; echo \" • SPARC methodology workflows with batchtools optimization\"; echo \" • Critical concurrent execution rules (GOLDEN RULE: 1 MESSAGE = ALL OPERATIONS)\"; if [ -n \"$CUSTOM\" ]; then echo \"🎯 Custom compact instructions: $CUSTOM\"; fi; echo \"✅ Ready for compact operation\"'"
139
+ }
140
+ ]
141
+ },
142
+ {
143
+ "matcher": "auto",
144
+ "hooks": [
145
+ {
146
+ "type": "command",
147
+ "command": "/bin/bash -c 'echo \"🔄 Auto-Compact Guidance (Context Window Full):\"; echo \"📋 CRITICAL: Before compacting, ensure you understand:\"; echo \" • All 54 agents available in .claude/agents/ directory\"; echo \" • Concurrent execution patterns from CLAUDE.md\"; echo \" • Batchtools optimization for 300% performance gains\"; echo \" • Swarm coordination strategies for complex tasks\"; echo \"⚡ Apply GOLDEN RULE: Always batch operations in single messages\"; echo \"✅ Auto-compact proceeding with full agent context\"'"
148
+ }
149
+ ]
150
+ }
151
+ ]
152
+ },
153
+ "statusLine": {
154
+ "type": "command",
155
+ "command": "input=$(cat); model_name=$(echo \"$input\" | jq -r '.model.display_name'); current_dir=$(echo \"$input\" | jq -r '.workspace.current_dir'); project_dir=$(echo \"$input\" | jq -r '.workspace.project_dir'); relative_path=$(echo \"${current_dir#$project_dir}\"); if [ \"$relative_path\" = \"$current_dir\" ]; then display_path=$(basename \"$current_dir\"); else display_path=\"$(basename \"$project_dir\")${relative_path}\"; fi; printf \"$(whoami)@$(hostname -s):${display_path} [${model_name}]\""
156
+ },
157
+ "includeCoAuthoredBy": true,
158
+ "enabledMcpjsonServers": [
159
+ "claude-flow",
160
+ "ruv-swarm"
161
+ ]
162
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "startTime": 1756392641501,
3
+ "totalTasks": 1,
4
+ "successfulTasks": 1,
5
+ "failedTasks": 0,
6
+ "totalAgents": 0,
7
+ "activeAgents": 0,
8
+ "neuralEvents": 0
9
+ }
@@ -0,0 +1,230 @@
1
+ [
2
+ {
3
+ "timestamp": 1756392216005,
4
+ "memoryTotal": 130149437440,
5
+ "memoryUsed": 51103371264,
6
+ "memoryFree": 79046066176,
7
+ "memoryUsagePercent": 39.26514956129495,
8
+ "memoryEfficiency": 60.73485043870505,
9
+ "cpuCount": 32,
10
+ "cpuLoad": 0.173125,
11
+ "platform": "linux",
12
+ "uptime": 297696.47
13
+ },
14
+ {
15
+ "timestamp": 1756392246004,
16
+ "memoryTotal": 130149437440,
17
+ "memoryUsed": 51238985728,
18
+ "memoryFree": 78910451712,
19
+ "memoryUsagePercent": 39.3693486010046,
20
+ "memoryEfficiency": 60.6306513989954,
21
+ "cpuCount": 32,
22
+ "cpuLoad": 0.17,
23
+ "platform": "linux",
24
+ "uptime": 297726.47
25
+ },
26
+ {
27
+ "timestamp": 1756392276005,
28
+ "memoryTotal": 130149437440,
29
+ "memoryUsed": 51970199552,
30
+ "memoryFree": 78179237888,
31
+ "memoryUsagePercent": 39.93117494338668,
32
+ "memoryEfficiency": 60.06882505661332,
33
+ "cpuCount": 32,
34
+ "cpuLoad": 0.18625,
35
+ "platform": "linux",
36
+ "uptime": 297756.47
37
+ },
38
+ {
39
+ "timestamp": 1756392306008,
40
+ "memoryTotal": 130149437440,
41
+ "memoryUsed": 52412080128,
42
+ "memoryFree": 77737357312,
43
+ "memoryUsagePercent": 40.270692796626506,
44
+ "memoryEfficiency": 59.729307203373494,
45
+ "cpuCount": 32,
46
+ "cpuLoad": 0.1603125,
47
+ "platform": "linux",
48
+ "uptime": 297786.47
49
+ },
50
+ {
51
+ "timestamp": 1756392336008,
52
+ "memoryTotal": 130149437440,
53
+ "memoryUsed": 52511125504,
54
+ "memoryFree": 77638311936,
55
+ "memoryUsagePercent": 40.34679406755644,
56
+ "memoryEfficiency": 59.65320593244356,
57
+ "cpuCount": 32,
58
+ "cpuLoad": 0.16375,
59
+ "platform": "linux",
60
+ "uptime": 297816.47
61
+ },
62
+ {
63
+ "timestamp": 1756392366008,
64
+ "memoryTotal": 130149437440,
65
+ "memoryUsed": 52112154624,
66
+ "memoryFree": 78037282816,
67
+ "memoryUsagePercent": 40.04024577365088,
68
+ "memoryEfficiency": 59.95975422634912,
69
+ "cpuCount": 32,
70
+ "cpuLoad": 0.2034375,
71
+ "platform": "linux",
72
+ "uptime": 297846.47
73
+ },
74
+ {
75
+ "timestamp": 1756392396008,
76
+ "memoryTotal": 130149437440,
77
+ "memoryUsed": 51785342976,
78
+ "memoryFree": 78364094464,
79
+ "memoryUsagePercent": 39.78914084809124,
80
+ "memoryEfficiency": 60.21085915190876,
81
+ "cpuCount": 32,
82
+ "cpuLoad": 0.20625,
83
+ "platform": "linux",
84
+ "uptime": 297876.47
85
+ },
86
+ {
87
+ "timestamp": 1756392426009,
88
+ "memoryTotal": 130149437440,
89
+ "memoryUsed": 51429216256,
90
+ "memoryFree": 78720221184,
91
+ "memoryUsagePercent": 39.515511759095624,
92
+ "memoryEfficiency": 60.484488240904376,
93
+ "cpuCount": 32,
94
+ "cpuLoad": 0.214375,
95
+ "platform": "linux",
96
+ "uptime": 297906.47
97
+ },
98
+ {
99
+ "timestamp": 1756392456009,
100
+ "memoryTotal": 130149437440,
101
+ "memoryUsed": 51651747840,
102
+ "memoryFree": 78497689600,
103
+ "memoryUsagePercent": 39.686493354081456,
104
+ "memoryEfficiency": 60.313506645918544,
105
+ "cpuCount": 32,
106
+ "cpuLoad": 0.181875,
107
+ "platform": "linux",
108
+ "uptime": 297936.47
109
+ },
110
+ {
111
+ "timestamp": 1756392486010,
112
+ "memoryTotal": 130149437440,
113
+ "memoryUsed": 51695247360,
114
+ "memoryFree": 78454190080,
115
+ "memoryUsagePercent": 39.71991610323475,
116
+ "memoryEfficiency": 60.28008389676525,
117
+ "cpuCount": 32,
118
+ "cpuLoad": 0.16375,
119
+ "platform": "linux",
120
+ "uptime": 297966.47
121
+ },
122
+ {
123
+ "timestamp": 1756392516010,
124
+ "memoryTotal": 130149437440,
125
+ "memoryUsed": 51591417856,
126
+ "memoryFree": 78558019584,
127
+ "memoryUsagePercent": 39.64013895932826,
128
+ "memoryEfficiency": 60.35986104067174,
129
+ "cpuCount": 32,
130
+ "cpuLoad": 0.15625,
131
+ "platform": "linux",
132
+ "uptime": 297996.47
133
+ },
134
+ {
135
+ "timestamp": 1756392546010,
136
+ "memoryTotal": 130149437440,
137
+ "memoryUsed": 51719688192,
138
+ "memoryFree": 78429749248,
139
+ "memoryUsagePercent": 39.73869515636071,
140
+ "memoryEfficiency": 60.26130484363929,
141
+ "cpuCount": 32,
142
+ "cpuLoad": 0.2025,
143
+ "platform": "linux",
144
+ "uptime": 298026.47
145
+ },
146
+ {
147
+ "timestamp": 1756392576011,
148
+ "memoryTotal": 130149437440,
149
+ "memoryUsed": 51735486464,
150
+ "memoryFree": 78413950976,
151
+ "memoryUsagePercent": 39.75083371977731,
152
+ "memoryEfficiency": 60.24916628022269,
153
+ "cpuCount": 32,
154
+ "cpuLoad": 0.198125,
155
+ "platform": "linux",
156
+ "uptime": 298056.47
157
+ },
158
+ {
159
+ "timestamp": 1756392606014,
160
+ "memoryTotal": 130149437440,
161
+ "memoryUsed": 51600707584,
162
+ "memoryFree": 78548729856,
163
+ "memoryUsagePercent": 39.64727669897795,
164
+ "memoryEfficiency": 60.35272330102205,
165
+ "cpuCount": 32,
166
+ "cpuLoad": 0.1890625,
167
+ "platform": "linux",
168
+ "uptime": 298086.48
169
+ },
170
+ {
171
+ "timestamp": 1756392636011,
172
+ "memoryTotal": 130149437440,
173
+ "memoryUsed": 51362631680,
174
+ "memoryFree": 78786805760,
175
+ "memoryUsagePercent": 39.46435166396982,
176
+ "memoryEfficiency": 60.53564833603018,
177
+ "cpuCount": 32,
178
+ "cpuLoad": 0.15375,
179
+ "platform": "linux",
180
+ "uptime": 298116.47
181
+ },
182
+ {
183
+ "timestamp": 1756392666012,
184
+ "memoryTotal": 130149437440,
185
+ "memoryUsed": 51300798464,
186
+ "memoryFree": 78848638976,
187
+ "memoryUsagePercent": 39.41684226460841,
188
+ "memoryEfficiency": 60.58315773539159,
189
+ "cpuCount": 32,
190
+ "cpuLoad": 0.12875,
191
+ "platform": "linux",
192
+ "uptime": 298146.47
193
+ },
194
+ {
195
+ "timestamp": 1756392696012,
196
+ "memoryTotal": 130149437440,
197
+ "memoryUsed": 51313537024,
198
+ "memoryFree": 78835900416,
199
+ "memoryUsagePercent": 39.4266299058388,
200
+ "memoryEfficiency": 60.5733700941612,
201
+ "cpuCount": 32,
202
+ "cpuLoad": 0.1290625,
203
+ "platform": "linux",
204
+ "uptime": 298176.47
205
+ },
206
+ {
207
+ "timestamp": 1756392726011,
208
+ "memoryTotal": 130149437440,
209
+ "memoryUsed": 50838163456,
210
+ "memoryFree": 79311273984,
211
+ "memoryUsagePercent": 39.06137779461154,
212
+ "memoryEfficiency": 60.93862220538846,
213
+ "cpuCount": 32,
214
+ "cpuLoad": 0.1415625,
215
+ "platform": "linux",
216
+ "uptime": 298206.47
217
+ },
218
+ {
219
+ "timestamp": 1756392756012,
220
+ "memoryTotal": 130149437440,
221
+ "memoryUsed": 50225434624,
222
+ "memoryFree": 79924002816,
223
+ "memoryUsagePercent": 38.59058910427819,
224
+ "memoryEfficiency": 61.40941089572181,
225
+ "cpuCount": 32,
226
+ "cpuLoad": 0.1540625,
227
+ "platform": "linux",
228
+ "uptime": 298236.47
229
+ }
230
+ ]
@@ -0,0 +1,10 @@
1
+ [
2
+ {
3
+ "id": "cmd-hooks-1756392641548",
4
+ "type": "hooks",
5
+ "success": true,
6
+ "duration": 6.68726199999999,
7
+ "timestamp": 1756392641555,
8
+ "metadata": {}
9
+ }
10
+ ]