Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Update hooks to new Claude CLI format (v1.0.51+) (#218)

Maciej15c1e5feec0f
diff --git a/.claude/settings.json b/.claude/settings.json
index fe5d4bc074..47c4a07dd5 100644
--- a/.claude/settings.json
+++ b/.claude/settings.json
@@ -34,36 +34,57 @@
]
},
"hooks": {
- "preEditHook": {
- "command": "npx",
- "args": ["claude-flow", "hooks", "pre-edit", "--file", "${file}", "--auto-assign-agents", "true", "--load-context", "true"],
- "alwaysRun": false,
- "outputFormat": "json"
- },
- "postEditHook": {
- "command": "npx",
- "args": ["claude-flow", "hooks", "post-edit", "--file", "${file}", "--format", "true", "--update-memory", "true", "--train-neural", "true"],
- "alwaysRun": true,
- "outputFormat": "json"
- },
- "preCommandHook": {
- "command": "npx",
- "args": ["claude-flow", "hooks", "pre-command", "--command", "${command}", "--validate-safety", "true", "--prepare-resources", "true"],
- "alwaysRun": false,
- "outputFormat": "json"
- },
- "postCommandHook": {
- "command": "npx",
- "args": ["claude-flow", "hooks", "post-command", "--command", "${command}", "--track-metrics", "true", "--store-results", "true"],
- "alwaysRun": false,
- "outputFormat": "json"
- },
- "sessionEndHook": {
- "command": "npx",
- "args": ["claude-flow", "hooks", "session-end", "--generate-summary", "true", "--persist-state", "true", "--export-metrics", "true"],
- "alwaysRun": true,
- "outputFormat": "json"
- }
+ "PreToolUse": [
+ {
+ "matcher": "Bash",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "npx claude-flow hooks pre-command --command \"${command}\" --validate-safety true --prepare-resources true"
+ }
+ ]
+ },
+ {
+ "matcher": "Write|Edit|MultiEdit",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "npx claude-flow hooks pre-edit --file \"${file}\" --auto-assign-agents true --load-context true"
+ }
+ ]
+ }
+ ],
+ "PostToolUse": [
+ {
+ "matcher": "Bash",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "npx claude-flow hooks post-command --command \"${command}\" --track-metrics true --store-results true"
+ }
+ ]
+ },
+ {
+ "matcher": "Write|Edit|MultiEdit",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "npx claude-flow hooks post-edit --file \"${file}\" --format true --update-memory true --train-neural true"
+ }
+ ]
+ }
+ ],
+ "Stop": [
+ {
+ "matcher": "",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "npx claude-flow hooks session-end --generate-summary true --persist-state true --export-metrics true"
+ }
+ ]
+ }
+ ]
},
"mcpServers": {
"claude-flow": {
@@ -100,4 +121,4 @@
"cacheEnabled": true,
"telemetryLevel": "detailed"
}
-}
\ No newline at end of file
+}