🌊 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix: complete hook variable interpolation fixes for alpha release
rUvdf0527a51d86
diff --git a/src/cli/simple-commands/init/templates/enhanced-templates.js b/src/cli/simple-commands/init/templates/enhanced-templates.jsindex ceab1346db..503df94d2b 100644--- a/src/cli/simple-commands/init/templates/enhanced-templates.js+++ b/src/cli/simple-commands/init/templates/enhanced-templates.js@@ -1266,7 +1266,7 @@ function createEnhancedSettingsJsonFallback() {hooks: [{type: "command",- command: "npx claude-flow@alpha hooks pre-command --command \"${command}\" --validate-safety true --prepare-resources true"+ command: "cat | jq -r '.tool_input.command // \"\"' | xargs -I {} npx claude-flow@alpha hooks pre-command --command \"{}\" --validate-safety true --prepare-resources true"}]},@@ -1275,7 +1275,7 @@ function createEnhancedSettingsJsonFallback() {hooks: [{type: "command",- command: "npx claude-flow@alpha hooks pre-edit --file \"${file}\" --auto-assign-agents true --load-context true"+ command: "cat | jq -r '.tool_input.file_path // .tool_input.path // \"\"' | xargs -I {} npx claude-flow@alpha hooks pre-edit --file \"{}\" --auto-assign-agents true --load-context true"}]}@@ -1286,7 +1286,7 @@ function createEnhancedSettingsJsonFallback() {hooks: [{type: "command",- command: "npx claude-flow@alpha hooks post-command --command \"${command}\" --track-metrics true --store-results true"+ command: "cat | jq -r '.tool_input.command // \"\"' | xargs -I {} npx claude-flow@alpha hooks post-command --command \"{}\" --track-metrics true --store-results true"}]},@@ -1295,7 +1295,7 @@ function createEnhancedSettingsJsonFallback() {hooks: [{type: "command",- command: "npx claude-flow@alpha hooks post-edit --file \"${file}\" --format true --update-memory true --train-neural true"+ command: "cat | jq -r '.tool_input.file_path // .tool_input.path // \"\"' | xargs -I {} npx claude-flow@alpha hooks post-edit --file \"{}\" --format true --update-memory true --train-neural true"}]}diff --git a/src/cli/simple-commands/init/templates/settings.json b/src/cli/simple-commands/init/templates/settings.jsonindex fe5d4bc074..b496cc6e4c 100644--- a/src/cli/simple-commands/init/templates/settings.json+++ b/src/cli/simple-commands/init/templates/settings.json@@ -34,36 +34,56 @@]},"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": "cat | jq -r '.tool_input.command // \"\"' | xargs -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 // \"\"' | xargs -I {} npx claude-flow@alpha hooks pre-edit --file \"{}\" --auto-assign-agents true --load-context true"+ }+ ]+ }+ ],+ "PostToolUse": [+ {+ "matcher": "Bash",+ "hooks": [+ {+ "type": "command",+ "command": "cat | jq -r '.tool_input.command // \"\"' | xargs -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 // \"\"' | xargs -I {} npx claude-flow@alpha hooks post-edit --file \"{}\" --format true --update-memory true --train-neural true"+ }+ ]+ }+ ],+ "Stop": [+ {+ "hooks": [+ {+ "type": "command",+ "command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true"+ }+ ]+ }+ ]},"mcpServers": {"claude-flow": {