mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-25 14:43:05 +09:00
🏁 Session end checkpoint: session-20250731-201542
This commit is contained in:
1 parent
82459faa32
commit
93a4921048
8 files changed
+522
-8
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"startTime": 1753992813158,
|
||||
"startTime": 1753992943514,
|
||||
"totalTasks": 1,
|
||||
"successfulTasks": 1,
|
||||
"failedTasks": 0,
|
||||
|
||||
@@ -826,5 +826,53 @@
|
||||
"cpuLoad": 0.02625,
|
||||
"platform": "linux",
|
||||
"uptime": 26774.59
|
||||
},
|
||||
{
|
||||
"timestamp": 1753992852489,
|
||||
"memoryTotal": 67427545088,
|
||||
"memoryUsed": 5542318080,
|
||||
"memoryFree": 61885227008,
|
||||
"memoryUsagePercent": 8.219664638193033,
|
||||
"memoryEfficiency": 91.78033536180696,
|
||||
"cpuCount": 16,
|
||||
"cpuLoad": 0.030625,
|
||||
"platform": "linux",
|
||||
"uptime": 26804.62
|
||||
},
|
||||
{
|
||||
"timestamp": 1753992882520,
|
||||
"memoryTotal": 67427545088,
|
||||
"memoryUsed": 5575860224,
|
||||
"memoryFree": 61851684864,
|
||||
"memoryUsagePercent": 8.269410100461048,
|
||||
"memoryEfficiency": 91.73058989953896,
|
||||
"cpuCount": 16,
|
||||
"cpuLoad": 0.025625,
|
||||
"platform": "linux",
|
||||
"uptime": 26834.66
|
||||
},
|
||||
{
|
||||
"timestamp": 1753992912549,
|
||||
"memoryTotal": 67427545088,
|
||||
"memoryUsed": 5630468096,
|
||||
"memoryFree": 61797076992,
|
||||
"memoryUsagePercent": 8.350397584031349,
|
||||
"memoryEfficiency": 91.64960241596864,
|
||||
"cpuCount": 16,
|
||||
"cpuLoad": 0.01875,
|
||||
"platform": "linux",
|
||||
"uptime": 26864.68
|
||||
},
|
||||
{
|
||||
"timestamp": 1753992942561,
|
||||
"memoryTotal": 67427545088,
|
||||
"memoryUsed": 5660409856,
|
||||
"memoryFree": 61767135232,
|
||||
"memoryUsagePercent": 8.39480341248161,
|
||||
"memoryEfficiency": 91.60519658751839,
|
||||
"cpuCount": 16,
|
||||
"cpuLoad": 0.02375,
|
||||
"platform": "linux",
|
||||
"uptime": 26894.7
|
||||
}
|
||||
]
|
||||
@@ -1,10 +1,10 @@
|
||||
[
|
||||
{
|
||||
"id": "cmd-hooks-1753992813257",
|
||||
"id": "cmd-hooks-1753992943616",
|
||||
"type": "hooks",
|
||||
"success": true,
|
||||
"duration": 7.139896999999962,
|
||||
"timestamp": 1753992813264,
|
||||
"duration": 65.58831400000003,
|
||||
"timestamp": 1753992943682,
|
||||
"metadata": {}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,143 @@
|
||||
# Session Summary - 2025-07-31 20:15:42
|
||||
|
||||
## Checkpoints Created
|
||||
1753906353.json
|
||||
1753906370.json
|
||||
task-1753913133.json
|
||||
task-1753913281.json
|
||||
task-1753913468.json
|
||||
task-1753978885.json
|
||||
task-1753979030.json
|
||||
task-1753979159.json
|
||||
task-1753979667.json
|
||||
task-1753979823.json
|
||||
task-1753980048.json
|
||||
task-1753980144.json
|
||||
task-1753980195.json
|
||||
task-1753980418.json
|
||||
task-1753980464.json
|
||||
task-1753980570.json
|
||||
task-1753989347.json
|
||||
task-1753989565.json
|
||||
task-1753989862.json
|
||||
task-1753989875.json
|
||||
task-1753990005.json
|
||||
task-1753990081.json
|
||||
task-1753990201.json
|
||||
task-1753990251.json
|
||||
task-1753990417.json
|
||||
task-1753990715.json
|
||||
task-1753990753.json
|
||||
task-1753990966.json
|
||||
task-1753991048.json
|
||||
task-1753991287.json
|
||||
task-1753992757.json
|
||||
task-1753992828.json
|
||||
|
||||
## Files Modified
|
||||
.claude-flow/metrics/performance.json
|
||||
.claude-flow/metrics/system-metrics.json
|
||||
.claude-flow/metrics/task-metrics.json
|
||||
.claude/checkpoints/1753906298.json
|
||||
.claude/checkpoints/summary-session-20250731-191747.md
|
||||
.claude/checkpoints/summary-session-20250731-192119.md
|
||||
.claude/checkpoints/summary-session-20250731-192226.md
|
||||
.claude/checkpoints/summary-session-20250731-192608.md
|
||||
.claude/checkpoints/summary-session-20250731-192632.md
|
||||
.claude/checkpoints/summary-session-20250731-192658.md
|
||||
.claude/checkpoints/summary-session-20250731-192710.md
|
||||
.claude/checkpoints/summary-session-20250731-192711.md
|
||||
.claude/checkpoints/summary-session-20250731-192731.md
|
||||
.claude/checkpoints/summary-session-20250731-192752.md
|
||||
.claude/checkpoints/summary-session-20250731-192810.md
|
||||
.claude/checkpoints/summary-session-20250731-192839.md
|
||||
.claude/checkpoints/summary-session-20250731-192900.md
|
||||
.claude/checkpoints/summary-session-20250731-192913.md
|
||||
.claude/checkpoints/summary-session-20250731-193017.md
|
||||
.claude/checkpoints/summary-session-20250731-193038.md
|
||||
.claude/checkpoints/summary-session-20250731-193043.md
|
||||
.claude/checkpoints/summary-session-20250731-193115.md
|
||||
.claude/checkpoints/summary-session-20250731-193121.md
|
||||
.claude/checkpoints/summary-session-20250731-193124.md
|
||||
.claude/checkpoints/summary-session-20250731-193231.md
|
||||
.claude/checkpoints/summary-session-20250731-193748.md
|
||||
.claude/checkpoints/summary-session-20250731-194208.md
|
||||
.claude/checkpoints/summary-session-20250731-194343.md
|
||||
.claude/checkpoints/summary-session-20250731-195358.md
|
||||
.claude/checkpoints/task-1753989347.json
|
||||
.claude/checkpoints/task-1753989565.json
|
||||
.claude/checkpoints/task-1753989862.json
|
||||
.claude/checkpoints/task-1753989875.json
|
||||
.claude/checkpoints/task-1753990005.json
|
||||
.claude/checkpoints/task-1753990081.json
|
||||
.claude/checkpoints/task-1753990201.json
|
||||
.claude/checkpoints/task-1753990251.json
|
||||
.claude/checkpoints/task-1753990417.json
|
||||
.claude/checkpoints/task-1753990715.json
|
||||
.claude/checkpoints/task-1753990753.json
|
||||
.claude/checkpoints/task-1753990966.json
|
||||
.claude/checkpoints/task-1753991048.json
|
||||
.claude/checkpoints/task-1753991287.json
|
||||
.claude/checkpoints/task-1753992757.json
|
||||
.claude/settings-backup-1753992809.json
|
||||
.claude/settings-npx-hooks.json
|
||||
.claude/settings.json
|
||||
bin/claude-flow
|
||||
bin/claude-flow.js
|
||||
claude-flow
|
||||
claude-flow-wiki
|
||||
package.json
|
||||
src/cli/help-text.js
|
||||
src/cli/index-remote.ts
|
||||
src/cli/index.ts
|
||||
src/cli/simple-cli.js
|
||||
src/cli/simple-cli.ts
|
||||
src/cli/simple-commands/github/init.js
|
||||
src/cli/simple-commands/process-ui-enhanced.js
|
||||
src/cli/simple-commands/status.js
|
||||
test-edit.txt
|
||||
|
||||
## Recent Commits
|
||||
48b228d 🔖 Checkpoint: Edit example-file.js
|
||||
48eb1e3 🔖 Checkpoint: Edit example-file.js
|
||||
e216f8e 🔖 Checkpoint: Edit demo.txt
|
||||
093611a 🔧 Fix SQLite preparation errors in hive-mind spawn
|
||||
|
||||
## GitHub Releases Created
|
||||
No GitHub releases
|
||||
|
||||
## Rollback Instructions
|
||||
To rollback to a specific checkpoint:
|
||||
checkpoint-20250730-201250
|
||||
checkpoint-20250730-201233
|
||||
checkpoint-20250730-201138
|
||||
Checkpoint: 2025-07-31 20:13 Pre-release task-20250731-201347 2025-07-31T20:13:47Z
|
||||
Checkpoint: 2025-07-31 20:12 Pre-release task-20250731-201236 2025-07-31T20:12:37Z
|
||||
Session Summary: 2025-07-31 19:54 Pre-release session-session-20250731-195358 2025-07-31T19:54:00Z
|
||||
Checkpoint: 2025-07-31 19:48 Pre-release task-20250731-194807 2025-07-31T19:48:07Z
|
||||
Checkpoint: 2025-07-31 19:44 Pre-release task-20250731-194407 2025-07-31T19:44:08Z
|
||||
Session Summary: 2025-07-31 19:43 Pre-release session-session-20250731-194343 2025-07-31T19:43:45Z
|
||||
Checkpoint: 2025-07-31 19:42 Pre-release task-20250731-194245 2025-07-31T19:42:45Z
|
||||
Session Summary: 2025-07-31 19:42 Pre-release session-session-20250731-194208 2025-07-31T19:42:11Z
|
||||
Session Summary: 2025-07-31 19:41 Pre-release session-session-20250731-193038 2025-07-31T19:41:09Z
|
||||
Session Summary: 2025-07-31 19:41 Pre-release session-session-20250731-193043 2025-07-31T19:41:07Z
|
||||
Checkpoint: 2025-07-31 19:39 Pre-release task-20250731-193912 2025-07-31T19:39:12Z
|
||||
Checkpoint: 2025-07-31 19:38 Pre-release task-20250731-193834 2025-07-31T19:38:34Z
|
||||
Session Summary: 2025-07-31 19:37 Pre-release session-session-20250731-193748 2025-07-31T19:37:50Z
|
||||
Checkpoint: 2025-07-31 19:33 Pre-release task-20250731-193336 2025-07-31T19:33:36Z
|
||||
Session Summary: 2025-07-31 19:32 Pre-release session-session-20250731-193231 2025-07-31T19:32:34Z
|
||||
Session Summary: 2025-07-31 19:31 Pre-release session-session-20250731-193121 2025-07-31T19:31:23Z
|
||||
Checkpoint: 2025-07-31 19:30 Pre-release task-20250731-193051 2025-07-31T19:30:51Z
|
||||
Session Summary: 2025-07-31 19:30 Pre-release session-session-20250731-193017 2025-07-31T19:30:19Z
|
||||
Checkpoint: 2025-07-31 19:30 Pre-release task-20250731-193000 2025-07-31T19:30:00Z
|
||||
Session Summary: 2025-07-31 19:29 Pre-release session-session-20250731-192913 2025-07-31T19:29:15Z
|
||||
Session Summary: 2025-07-31 19:29 Pre-release session-session-20250731-192900 2025-07-31T19:29:02Z
|
||||
Session Summary: 2025-07-31 19:28 Pre-release session-session-20250731-192839 2025-07-31T19:28:41Z
|
||||
Session Summary: 2025-07-31 19:28 Pre-release session-session-20250731-192810 2025-07-31T19:28:12Z
|
||||
Checkpoint: 2025-07-31 19:28 Pre-release task-20250731-192800 2025-07-31T19:28:01Z
|
||||
Session Summary: 2025-07-31 19:27 Pre-release session-session-20250731-192711 2025-07-31T19:27:13Z
|
||||
Session Summary: 2025-07-31 19:27 Pre-release session-session-20250731-192658 2025-07-31T19:27:00Z
|
||||
Checkpoint: 2025-07-31 19:26 Pre-release task-20250731-192644 2025-07-31T19:26:44Z
|
||||
Session Summary: 2025-07-31 19:26 Pre-release session-session-20250731-192632 2025-07-31T19:26:34Z
|
||||
Session Summary: 2025-07-31 19:26 Pre-release session-session-20250731-192608 2025-07-31T19:26:10Z
|
||||
Checkpoint: 2025-07-31 19:24 Pre-release task-20250731-192434 2025-07-31T19:24:34Z
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"checkpoint": "task-20250731-201347",
|
||||
"task": "{{user_prompt}} ",
|
||||
"timestamp": "2025-07-31T20:13:48Z",
|
||||
"commit": "82459faa3244d77699e3aa8f8c6f860a54a1ea63",
|
||||
"github_release": "true"
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"env": {
|
||||
"CLAUDE_FLOW_AUTO_COMMIT": "false",
|
||||
"CLAUDE_FLOW_AUTO_PUSH": "false",
|
||||
"CLAUDE_FLOW_HOOKS_ENABLED": "true",
|
||||
"CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
|
||||
"CLAUDE_FLOW_REMOTE_EXECUTION": "true",
|
||||
"CLAUDE_FLOW_GITHUB_INTEGRATION": "true",
|
||||
"CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true",
|
||||
"CREATE_GH_RELEASE": "true"
|
||||
},
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(npx claude-flow *)",
|
||||
"Bash(npm run lint)",
|
||||
"Bash(npm run test:*)",
|
||||
"Bash(npm test *)",
|
||||
"Bash(git status)",
|
||||
"Bash(git diff *)",
|
||||
"Bash(git log *)",
|
||||
"Bash(git add *)",
|
||||
"Bash(git commit *)",
|
||||
"Bash(git push)",
|
||||
"Bash(git config *)",
|
||||
"Bash(git tag *)",
|
||||
"Bash(git branch *)",
|
||||
"Bash(git checkout *)",
|
||||
"Bash(git stash *)",
|
||||
"Bash(git reset *)",
|
||||
"Bash(git rev-parse *)",
|
||||
"Bash(git ls-files *)",
|
||||
"Bash(gh *)",
|
||||
"Bash(node *)",
|
||||
"Bash(which *)",
|
||||
"Bash(pwd)",
|
||||
"Bash(ls *)",
|
||||
"Bash(jq *)",
|
||||
"Bash(test *)",
|
||||
"Bash(find *)",
|
||||
"Bash(grep *)",
|
||||
"Bash(sed *)",
|
||||
"Bash(awk *)",
|
||||
"Bash(curl *)",
|
||||
"Bash(mkdir *)",
|
||||
"Bash(cd *)",
|
||||
"Bash(cat *)",
|
||||
"Bash(echo *)",
|
||||
"Bash(npx claude-flow@alpha *)",
|
||||
"Bash(./claude-flow *)",
|
||||
"Bash(./.claude/helpers/*)"
|
||||
],
|
||||
"deny": [
|
||||
"Bash(rm -rf /)",
|
||||
"Bash(curl * | bash)",
|
||||
"Bash(wget * | sh)",
|
||||
"Bash(eval *)"
|
||||
]
|
||||
},
|
||||
"hooks": {
|
||||
"PreToolUse": [
|
||||
{
|
||||
"matcher": "Bash",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": "Write|Edit|MultiEdit",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"command": "bash .claude/helpers/github-checkpoint-hooks.sh pre-edit \"{{tool_input}}\""
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"PostToolUse": [
|
||||
{
|
||||
"matcher": "Bash",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": "Write|Edit|MultiEdit",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"command": "bash .claude/helpers/github-checkpoint-hooks.sh post-edit \"{{tool_input}}\""
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"UserPromptSubmit": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "bash .claude/helpers/github-checkpoint-hooks.sh task \"{{user_prompt}}\""
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Stop": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"command": "bash .claude/helpers/github-checkpoint-hooks.sh session-end"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"PreCompact": [
|
||||
{
|
||||
"matcher": "manual",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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\"'"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": "auto",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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\"'"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"includeCoAuthoredBy": true,
|
||||
"enabledMcpjsonServers": [
|
||||
"claude-flow",
|
||||
"ruv-swarm"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,158 @@
|
||||
{
|
||||
"env": {
|
||||
"CLAUDE_FLOW_AUTO_COMMIT": "false",
|
||||
"CLAUDE_FLOW_AUTO_PUSH": "false",
|
||||
"CLAUDE_FLOW_HOOKS_ENABLED": "true",
|
||||
"CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
|
||||
"CLAUDE_FLOW_REMOTE_EXECUTION": "true",
|
||||
"CLAUDE_FLOW_GITHUB_INTEGRATION": "true",
|
||||
"CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true",
|
||||
"CREATE_GH_RELEASE": "true"
|
||||
},
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(npx claude-flow *)",
|
||||
"Bash(npm run lint)",
|
||||
"Bash(npm run test:*)",
|
||||
"Bash(npm test *)",
|
||||
"Bash(git status)",
|
||||
"Bash(git diff *)",
|
||||
"Bash(git log *)",
|
||||
"Bash(git add *)",
|
||||
"Bash(git commit *)",
|
||||
"Bash(git push)",
|
||||
"Bash(git config *)",
|
||||
"Bash(git tag *)",
|
||||
"Bash(git branch *)",
|
||||
"Bash(git checkout *)",
|
||||
"Bash(git stash *)",
|
||||
"Bash(git reset *)",
|
||||
"Bash(git rev-parse *)",
|
||||
"Bash(git ls-files *)",
|
||||
"Bash(gh *)",
|
||||
"Bash(node *)",
|
||||
"Bash(which *)",
|
||||
"Bash(pwd)",
|
||||
"Bash(ls *)",
|
||||
"Bash(jq *)",
|
||||
"Bash(test *)",
|
||||
"Bash(find *)",
|
||||
"Bash(grep *)",
|
||||
"Bash(sed *)",
|
||||
"Bash(awk *)",
|
||||
"Bash(curl *)",
|
||||
"Bash(mkdir *)",
|
||||
"Bash(cd *)",
|
||||
"Bash(cat *)",
|
||||
"Bash(echo *)",
|
||||
"Bash(npx claude-flow@alpha *)",
|
||||
"Bash(./claude-flow *)",
|
||||
"Bash(./.claude/helpers/*)"
|
||||
],
|
||||
"deny": [
|
||||
"Bash(rm -rf /)",
|
||||
"Bash(curl * | bash)",
|
||||
"Bash(wget * | sh)",
|
||||
"Bash(eval *)"
|
||||
]
|
||||
},
|
||||
"hooks": {
|
||||
"PreToolUse": [
|
||||
{
|
||||
"matcher": "Bash",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": "Write|Edit|MultiEdit",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"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'"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"PostToolUse": [
|
||||
{
|
||||
"matcher": "Bash",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": "Write|Edit|MultiEdit",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"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'"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"UserPromptSubmit": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "/bin/bash -c 'TASK=$(echo \"{{user_prompt}}\" | head -c 100 | tr \"\\n\" \" \"); if [ -n \"$TASK\" ]; then CHECKPOINT_NAME=\"task-$(date +%Y%m%d-%H%M%S)\"; git add -A && git commit -m \"🔖 Task checkpoint: $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'"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Stop": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"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\"'"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"PreCompact": [
|
||||
{
|
||||
"matcher": "manual",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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\"'"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": "auto",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"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\"'"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"includeCoAuthoredBy": true,
|
||||
"enabledMcpjsonServers": [
|
||||
"claude-flow",
|
||||
"ruv-swarm"
|
||||
]
|
||||
}
|
||||
@@ -76,7 +76,7 @@
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"command": "bash .claude/helpers/github-checkpoint-hooks.sh pre-edit \"{{tool_input}}\""
|
||||
"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'"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -100,7 +100,7 @@
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"command": "bash .claude/helpers/github-checkpoint-hooks.sh post-edit \"{{tool_input}}\""
|
||||
"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'"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -110,7 +110,7 @@
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "bash .claude/helpers/github-checkpoint-hooks.sh task \"{{user_prompt}}\""
|
||||
"command": "/bin/bash -c 'TASK=$(echo \"{{user_prompt}}\" | head -c 100 | tr \"\\n\" \" \"); if [ -n \"$TASK\" ]; then CHECKPOINT_NAME=\"task-$(date +%Y%m%d-%H%M%S)\"; git add -A && git commit -m \"🔖 Task checkpoint: $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'"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -124,7 +124,7 @@
|
||||
},
|
||||
{
|
||||
"type": "command",
|
||||
"command": "bash .claude/helpers/github-checkpoint-hooks.sh session-end"
|
||||
"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\"'"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user