🌊 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
rUv77dea1d78957
diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.tsindex 322e69da68..111d8ef087 100644--- a/v3/@claude-flow/cli/src/init/settings-generator.ts+++ b/v3/@claude-flow/cli/src/init/settings-generator.ts@@ -178,8 +178,8 @@ function generateStatusLineConfig(options: InitOptions): object {function generateHooksConfig(config: HooksConfig): object {const hooks: Record<string, unknown[]> = {};- // All hook commands use `2>/dev/null || true` to prevent Node.js errors- // (e.g. MODULE_NOT_FOUND) from surfacing as hook failures in Claude Code.+ // Node.js scripts handle errors internally via try/catch.+ // No shell-level error suppression needed (2>/dev/null || true breaks Windows).// PreToolUse — validate commands before executionif (config.preToolUse) {@@ -189,7 +189,7 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'node .claude/helpers/hook-handler.cjs pre-bash 2>/dev/null || true',+ command: 'node .claude/helpers/hook-handler.cjs pre-bash',timeout: config.timeout,},],@@ -205,7 +205,7 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'node .claude/helpers/hook-handler.cjs post-edit 2>/dev/null || true',+ command: 'node .claude/helpers/hook-handler.cjs post-edit',timeout: 10000,},],@@ -220,7 +220,7 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'node .claude/helpers/hook-handler.cjs route 2>/dev/null || true',+ command: 'node .claude/helpers/hook-handler.cjs route',timeout: 10000,},],@@ -235,12 +235,12 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'node .claude/helpers/hook-handler.cjs session-restore 2>/dev/null || true',+ command: 'node .claude/helpers/hook-handler.cjs session-restore',timeout: 15000,},{type: 'command',- command: 'node .claude/helpers/auto-memory-hook.mjs import 2>/dev/null || true',+ command: 'node .claude/helpers/auto-memory-hook.mjs import',timeout: 8000,},],@@ -255,7 +255,7 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'node .claude/helpers/hook-handler.cjs session-end 2>/dev/null || true',+ command: 'node .claude/helpers/hook-handler.cjs session-end',timeout: 10000,},],@@ -270,7 +270,7 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'node .claude/helpers/auto-memory-hook.mjs sync 2>/dev/null || true',+ command: 'node .claude/helpers/auto-memory-hook.mjs sync',timeout: 10000,},],@@ -286,11 +286,11 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: `/bin/bash -c 'echo "PreCompact Guidance:"; echo "IMPORTANT: Review CLAUDE.md in project root for:"; echo " - Available agents and concurrent usage patterns"; echo " - Swarm coordination strategies (hierarchical, mesh, adaptive)"; echo " - Critical concurrent execution rules (1 MESSAGE = ALL OPERATIONS)"; echo "Ready for compact operation"'`,+ command: 'node .claude/helpers/hook-handler.cjs compact-manual',},{type: 'command',- command: 'node .claude/helpers/hook-handler.cjs session-end 2>/dev/null || true',+ command: 'node .claude/helpers/hook-handler.cjs session-end',timeout: 5000,},],@@ -300,11 +300,11 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: `/bin/bash -c 'echo "Auto-Compact Guidance (Context Window Full):"; echo "CRITICAL: Before compacting, ensure you understand:"; echo " - All agents available in .claude/agents/ directory"; echo " - Concurrent execution patterns from CLAUDE.md"; echo " - Swarm coordination strategies for complex tasks"; echo "Apply GOLDEN RULE: Always batch operations in single messages"; echo "Auto-compact proceeding with full agent context"'`,+ command: 'node .claude/helpers/hook-handler.cjs compact-auto',},{type: 'command',- command: 'node .claude/helpers/hook-handler.cjs session-end 2>/dev/null || true',+ command: 'node .claude/helpers/hook-handler.cjs session-end',timeout: 6000,},],@@ -318,7 +318,7 @@ function generateHooksConfig(config: HooksConfig): object {hooks: [{type: 'command',- command: 'node .claude/helpers/hook-handler.cjs status 2>/dev/null || true',+ command: 'node .claude/helpers/hook-handler.cjs status',timeout: 3000,},],