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

docs: add fix-hook-variables command documentation

rUv081f9392e308
diff --git a/README.md b/README.md
index 2612b3e552..d48ee6994a 100644
--- a/README.md
+++ b/README.md
@@ -235,6 +235,26 @@ npx claude-flow hooks post-edit --file "src/api.js" --format --train-neural
npx claude-flow hooks session-end --generate-summary --persist-state
```
+### **Fixing Hook Variable Interpolation**
+
+If you're experiencing issues with `${file}` or `${command}` variables not working in your hooks (common with Claude Code 1.0.51+), use the `fix-hook-variables` command:
+
+```bash
+# Fix all found settings.json files
+npx claude-flow@alpha fix-hook-variables
+
+# Fix specific file
+npx claude-flow@alpha fix-hook-variables .claude/settings.json
+
+# Create test configuration
+npx claude-flow@alpha fix-hook-variables --test
+```
+
+This command automatically transforms legacy variable syntax to working environment variables:
+- `${file}` → `$CLAUDE_EDITED_FILE`
+- `${command}` → `$CLAUDE_COMMAND`
+- `${tool}` → `$CLAUDE_TOOL`
+
---
## 🐝 **Revolutionary Hive-Mind Intelligence**