🌊 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
Checkpoint: File edits
rUv0fa44d1074a1
diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.tsindex fe01d439ad..50cd182d1e 100644--- a/v3/@claude-flow/cli/src/init/settings-generator.ts+++ b/v3/@claude-flow/cli/src/init/settings-generator.ts@@ -137,7 +137,7 @@ function generateStatusLineConfig(options: InitOptions): object {function generateHooksConfig(config: HooksConfig): object {const hooks: Record<string, unknown[]> = {};- // PreToolUse hooks - cross-platform via npx+ // PreToolUse hooks - cross-platform via npx with defensive guardsif (config.preToolUse) {hooks.PreToolUse = [// File edit hooks with intelligence routing@@ -146,9 +146,9 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'npx @claude-flow/cli@latest hooks pre-edit --file "$TOOL_INPUT_file_path" --intelligence',+ command: '[ -n "$TOOL_INPUT_file_path" ] && npx @claude-flow/cli@latest hooks pre-edit --file "$TOOL_INPUT_file_path" 2>/dev/null || true',timeout: config.timeout,- continueOnError: config.continueOnError,+ continueOnError: true,},],},@@ -158,9 +158,9 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'npx @claude-flow/cli@latest hooks pre-command --command "$TOOL_INPUT_command" --validate-safety',+ command: '[ -n "$TOOL_INPUT_command" ] && npx @claude-flow/cli@latest hooks pre-command --command "$TOOL_INPUT_command" 2>/dev/null || true',timeout: config.timeout,- continueOnError: config.continueOnError,+ continueOnError: true,},],},@@ -170,9 +170,9 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'npx @claude-flow/cli@latest hooks pre-task --task-id "task-$(date +%s)" --description "$TOOL_INPUT_prompt"',+ 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',timeout: config.timeout,- continueOnError: config.continueOnError,+ continueOnError: true,},],},