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

Fix init hook bugs: TOOL_INPUT_prompt overflow and description field (#1161)

rUv282143a60df4
diff --git a/plugin/hooks/hooks.json b/plugin/hooks/hooks.json
index d9a9f0c01b..9ddeb2ed84 100644
--- a/plugin/hooks/hooks.json
+++ b/plugin/hooks/hooks.json
@@ -33,7 +33,7 @@
"hooks": [
{
"type": "command",
- "command": "npx claude-flow@alpha hooks pre-task --description \"$TOOL_INPUT_prompt\"",
+ "command": "npx claude-flow@alpha hooks pre-task --description \"$(echo \"$TOOL_INPUT_description\" | head -c 200)\"",
"timeout": 5000,
"continueOnError": true
}
diff --git a/v3/@claude-flow/mcp/.claude/settings.json b/v3/@claude-flow/mcp/.claude/settings.json
index bfbfada31f..0c370d2877 100644
--- a/v3/@claude-flow/mcp/.claude/settings.json
+++ b/v3/@claude-flow/mcp/.claude/settings.json
@@ -28,7 +28,7 @@
"hooks": [
{
"type": "command",
- "command": "[ -n \"$TOOL_INPUT_prompt\" ] && npx @claude-flow/cli@latest hooks pre-task --task-id \"task-$(date +%s)\" --description \"$TOOL_INPUT_prompt\" 2>/dev/null || true",
+ "command": "[ -n \"$TOOL_INPUT_description\" ] && npx @claude-flow/cli@latest hooks pre-task --task-id \"task-$(date +%s)\" --description \"$(echo \"$TOOL_INPUT_description\" | head -c 200)\" 2>/dev/null || true",
"timeout": 5000,
"continueOnError": true
}