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

Checkpoint: File edits

rUv8c7e5958222a
diff --git a/.claude/settings copy.json b/.claude/settings copy.json
new file mode 100644
index 0000000000..71c41483b2
--- /dev/null
+++ b/.claude/settings copy.json
@@ -0,0 +1,526 @@
+{
+ "model": "claude-opus-4-5-20251101",
+ "customInstructions": "Follow the project's CLAUDE.md guidelines. Use concurrent execution for all operations. Prioritize v3 implementation with security-first development, 15-agent swarm coordination, phased performance optimization, and cross-platform helper automation. Leverage Opus 4.5's advanced reasoning for complex architectural decisions and system optimization. CRITICAL: When spawning swarms, ALWAYS use MCP tools AND Task tool in the SAME message. V3 CLI hooks enabled at /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js with SONA, MoE, and HNSW intelligence features.",
+ "env": {
+ "AGENTIC_FLOW_INTELLIGENCE": "true",
+ "AGENTIC_FLOW_LEARNING_RATE": "0.05",
+ "AGENTIC_FLOW_EPSILON": "0.1",
+ "AGENTIC_FLOW_MEMORY_BACKEND": "agentdb",
+ "AGENTIC_FLOW_V3_MODE": "true",
+ "AGENTIC_FLOW_SWARM_SIZE": "15",
+ "AGENTIC_FLOW_TOPOLOGY": "hierarchical",
+ "AGENTIC_FLOW_SECURITY_FIRST": "true",
+ "AGENTIC_FLOW_PERFORMANCE_TIER": "standard",
+ "AGENTIC_FLOW_LEARNING_TIER": "standard",
+ "AGENTIC_FLOW_PRETRAIN_ENABLED": "true",
+ "AGENTIC_FLOW_SONA_ENABLED": "true",
+ "AGENTIC_FLOW_HNSW_ENABLED": "true",
+ "AGENTIC_FLOW_MOE_ATTENTION": "true",
+ "AGENTIC_FLOW_MULTI_ALGORITHM_RL": "true",
+ "AGENTIC_FLOW_COMPRESSION_ENABLED": "true",
+ "AGENTIC_FLOW_SWARM_COMM_ENABLED": "true",
+ "AGENTIC_FLOW_AGENT_NAME": "claude-code",
+ "AGENTIC_FLOW_PATTERN_BROADCAST_THRESHOLD": "0.7",
+ "AGENTIC_FLOW_CONSENSUS_TIMEOUT": "30000",
+ "AGENTIC_FLOW_AUTO_BROADCAST_PATTERNS": "true",
+ "CLAUDE_FLOW_AUTO_COMMIT": "true",
+ "CLAUDE_FLOW_AUTO_PUSH": "true",
+ "CLAUDE_FLOW_HOOKS_ENABLED": "true",
+ "CLAUDE_FLOW_TELEMETRY_ENABLED": "true",
+ "CLAUDE_FLOW_REMOTE_EXECUTION": "true",
+ "CLAUDE_FLOW_CHECKPOINTS_ENABLED": "true",
+ "CLAUDE_FLOW_V3_CLI_ENABLED": "true",
+ "CLAUDE_FLOW_V3_CLI_PATH": "/workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js",
+ "CLAUDE_FLOW_V3_INTELLIGENCE": "true"
+ },
+ "permissions": {
+ "allowedTools": [
+ "Read",
+ "Write",
+ "Edit",
+ "Bash",
+ "Glob",
+ "Grep",
+ "Task",
+ "WebFetch",
+ "WebSearch",
+ "TodoWrite",
+ "LSP",
+ "NotebookEdit"
+ ],
+ "deniedTools": [],
+ "allow": [
+ "Bash(npx:*)",
+ "Bash(npx claude-flow:*)",
+ "Bash(agentic-flow:*)",
+ "Bash(npm run:*)",
+ "Bash(npm run lint)",
+ "Bash(npm run test:*)",
+ "Bash(npm test:*)",
+ "Bash(git status)",
+ "Bash(git diff:*)",
+ "Bash(git log:*)",
+ "Bash(git add:*)",
+ "Bash(git commit:*)",
+ "Bash(git push)",
+ "Bash(git config:*)",
+ "Bash(git tag:*)",
+ "Bash(git branch:*)",
+ "Bash(git checkout:*)",
+ "Bash(git stash:*)",
+ "Bash(jq:*)",
+ "Bash(node:*)",
+ "Bash(which:*)",
+ "Bash(pwd)",
+ "Bash(ls:*)",
+ "mcp__agentic-flow",
+ "mcp__claude-flow",
+ "mcp__claude-flow__*",
+ "mcp__ruv-swarm",
+ "mcp__ruv-swarm__*",
+ "mcp__flow-nexus__*"
+ ],
+ "deny": [
+ "Bash(rm -rf /)"
+ ]
+ },
+ "checkpointManager": {
+ "enabled": true,
+ "autoCommit": true,
+ "commitMessage": "checkpoint: V3 development progress",
+ "frequency": "after-significant-change",
+ "includeMetrics": true
+ },
+ "githubIntegration": {
+ "enabled": true,
+ "features": {
+ "autoCommit": true,
+ "prTracking": true,
+ "issueManagement": true,
+ "progressReporting": true
+ }
+ },
+ "hooks": {
+ "PreToolUse": [
+ {
+ "matcher": "Edit|Write|MultiEdit",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "/workspaces/claude-flow/.claude/helpers/guidance-hooks.sh pre-edit \"$TOOL_INPUT_file_path\" 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks pre-edit --file \"$TOOL_INPUT_file_path\" --intelligence true 2>/dev/null || true"
+ }
+ ]
+ },
+ {
+ "matcher": "Bash",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "/workspaces/claude-flow/.claude/helpers/guidance-hooks.sh pre-command \"$TOOL_INPUT_command\" 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks pre-command --command \"$TOOL_INPUT_command\" 2>/dev/null || true"
+ }
+ ]
+ },
+ {
+ "matcher": "Task",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 2000,
+ "command": "/workspaces/claude-flow/.claude/helpers/guidance-hooks.sh route \"$TOOL_INPUT_prompt\" 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "/workspaces/claude-flow/.claude/helpers/swarm-hooks.sh pre-task \"$TOOL_INPUT_prompt\" 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "cat | jq -r '.tool_input.prompt // empty' | tr '\\n' '\\0' | xargs -0 -I {} npx claude-flow@alpha hooks pre-task --description '{}' --coordinate-swarm true 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks pre-task --task-id \"task-$(date +%s)\" --description \"$TOOL_INPUT_prompt\" --intelligence true --swarm-coordinate true 2>/dev/null || true"
+ }
+ ]
+ }
+ ],
+ "PostToolUse": [
+ {
+ "matcher": "Edit|Write|MultiEdit",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "/workspaces/claude-flow/.claude/helpers/guidance-hooks.sh post-edit \"$TOOL_INPUT_file_path\" 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "/workspaces/claude-flow/.claude/helpers/learning-hooks.sh store \"Edit: $TOOL_INPUT_file_path\" code 0.7 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks post-edit --file \"$TOOL_INPUT_file_path\" --success true --train-patterns true --memory-key \"edit/$TOOL_INPUT_file_path\" 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 10000,
+ "command": "/workspaces/claude-flow/.claude/helpers/auto-commit.sh batch 'Checkpoint: File edits' 2>/dev/null || true"
+ }
+ ]
+ },
+ {
+ "matcher": "Bash",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "npx agentic-flow@alpha hooks post-command \"$TOOL_INPUT_command\" -c 0 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 2000,
+ "command": "/workspaces/claude-flow/.claude/helpers/swarm-monitor.sh check 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks post-command --command \"$TOOL_INPUT_command\" --exit-code 0 --success true 2>/dev/null || true"
+ }
+ ]
+ },
+ {
+ "matcher": "Task",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 2000,
+ "command": "npx agentic-flow@alpha hooks metrics 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "/workspaces/claude-flow/.claude/helpers/swarm-monitor.sh check 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "/workspaces/claude-flow/.claude/helpers/swarm-hooks.sh post-task \"$TOOL_INPUT_prompt\" true 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "/workspaces/claude-flow/.claude/helpers/checkpoint-manager.sh agent-checkpoint \"Task completed: $TOOL_INPUT_prompt\" 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "cat | jq -r '{agent: .tool_input.subagent_type, description: .tool_input.description} | @json' | xargs -I {} npx claude-flow@alpha hooks post-task --agent-data '{}' --update-swarm-status true --train-patterns true 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks post-task --task-id \"task-$(date +%s)\" --description \"$TOOL_INPUT_prompt\" --success true --train-patterns true --update-metrics true 2>/dev/null || true"
+ }
+ ]
+ }
+ ],
+ "PostToolUseFailure": [
+ {
+ "matcher": "Edit|Write|MultiEdit",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "npx agentic-flow@alpha hooks post-edit \"$TOOL_INPUT_file_path\" --fail 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks post-edit --file \"$TOOL_INPUT_file_path\" --success false --learn-from-failure true 2>/dev/null || true"
+ }
+ ]
+ },
+ {
+ "matcher": "Bash",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "npx agentic-flow@alpha hooks post-command \"$TOOL_INPUT_command\" -c 1 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks post-command --command \"$TOOL_INPUT_command\" --exit-code 1 --success false --learn-from-failure true 2>/dev/null || true"
+ }
+ ]
+ },
+ {
+ "matcher": "Task",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks post-task --task-id \"task-$(date +%s)\" --description \"$TOOL_INPUT_prompt\" --success false --learn-from-failure true --retry-analysis true 2>/dev/null || true"
+ }
+ ]
+ }
+ ],
+ "SessionStart": [
+ {
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "/workspaces/claude-flow/.claude/helpers/daemon-manager.sh start 3 5 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 8000,
+ "command": "/workspaces/claude-flow/.claude/helpers/learning-hooks.sh session-start 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 3000,
+ "command": "/workspaces/claude-flow/.claude/helpers/swarm-hooks.sh agents 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "/workspaces/claude-flow/.claude/helpers/guidance-hooks.sh session-context 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "npx claude-flow@alpha hooks session-start --auto-configure true --restore-context true 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 6000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks session-restore --restore-memory true --load-patterns true --intelligence true 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks build-agents --topology hierarchical-mesh --max-agents 15 2>/dev/null || true"
+ }
+ ]
+ }
+ ],
+ "SessionEnd": [
+ {
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 10000,
+ "command": "/workspaces/claude-flow/.claude/helpers/learning-hooks.sh session-end 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 8000,
+ "command": "npx agentic-flow@alpha hooks metrics --json 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 6000,
+ "command": "/workspaces/claude-flow/.claude/helpers/checkpoint-manager.sh session-end \"V3 development session completed\" 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "/workspaces/claude-flow/.claude/helpers/update-v3-progress.sh status > /workspaces/claude-flow/.claude-flow/last-session-status.txt 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 2000,
+ "command": "/workspaces/claude-flow/.claude/helpers/daemon-manager.sh stop 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 8000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks session-end --persist-memory true --export-patterns true --generate-summary true 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks metrics --format json --output /workspaces/claude-flow/.claude-flow/v3-session-metrics.json 2>/dev/null || true"
+ }
+ ]
+ }
+ ],
+ "UserPromptSubmit": [
+ {
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "/workspaces/claude-flow/.claude/helpers/guidance-hooks.sh user-prompt \"$USER_PROMPT\" 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "npx claude-flow@alpha hooks route-task --auto-swarm true --detect-complexity true 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks route --task \"$USER_PROMPT\" --intelligence true --auto-swarm true --complexity-threshold 3 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 6000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks worker detect --prompt \"$USER_PROMPT\" --auto-dispatch --min-confidence 0.6 2>/dev/null || true"
+ }
+ ]
+ }
+ ],
+ "Stop": [
+ {
+ "matcher": ".*",
+ "hooks": [
+ {
+ "type": "command",
+ "timeout": 8000,
+ "command": "/workspaces/claude-flow/.claude/helpers/learning-hooks.sh session-end 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "npx agentic-flow@alpha hooks metrics --json 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "npx claude-flow@alpha hooks session-end --generate-summary true --persist-state true --export-metrics true 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 6000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks session-end --persist-memory true --train-final-patterns true --export-learnings true 2>/dev/null || true"
+ },
+ {
+ "type": "command",
+ "timeout": 4000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks transfer --export-patterns /workspaces/claude-flow/.claude-flow/v3-patterns.json 2>/dev/null || true"
+ }
+ ]
+ }
+ ],
+ "PreCompact": [
+ {
+ "matcher": "manual",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "/bin/bash -c 'INPUT=$(cat); CUSTOM=$(echo \"$INPUT\" | jq -r \".custom_instructions // \\\"\\\"\"); echo \"πŸ”„ PreCompact Guidance:\"; echo \"πŸ“‹ IMPORTANT: Review CLAUDE.md in project root for:\"; echo \" β€’ 54 available agents and concurrent usage patterns\"; echo \" β€’ Swarm coordination strategies (hierarchical, mesh, adaptive)\"; echo \" β€’ SPARC methodology workflows with batchtools optimization\"; echo \" β€’ Critical concurrent execution rules (GOLDEN RULE: 1 MESSAGE = ALL OPERATIONS)\"; if [ -n \"$CUSTOM\" ]; then echo \"🎯 Custom compact instructions: $CUSTOM\"; fi; echo \"βœ… Ready for compact operation\"'"
+ },
+ {
+ "type": "command",
+ "timeout": 5000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks transfer --export-patterns /workspaces/claude-flow/.claude-flow/compact-patterns.json --preserve-critical true 2>/dev/null || true"
+ }
+ ]
+ },
+ {
+ "matcher": "auto",
+ "hooks": [
+ {
+ "type": "command",
+ "command": "/bin/bash -c 'echo \"πŸ”„ Auto-Compact Guidance (Context Window Full):\"; echo \"πŸ“‹ CRITICAL: Before compacting, ensure you understand:\"; echo \" β€’ All 54 agents available in .claude/agents/ directory\"; echo \" β€’ Concurrent execution patterns from CLAUDE.md\"; echo \" β€’ Batchtools optimization for 300% performance gains\"; 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\"'"
+ },
+ {
+ "type": "command",
+ "timeout": 6000,
+ "command": "node /workspaces/claude-flow/v3/@claude-flow/cli/bin/cli.js hooks intelligence --export-state /workspaces/claude-flow/.claude-flow/intelligence-state.json --preserve-patterns true 2>/dev/null || true"
+ }
+ ]
+ }
+ ]
+ },
+ "agents": {
+ "source": ".claude/agents",
+ "customAgents": []
+ },
+ "skills": {
+ "source": ".claude/commands",
+ "enabled": true
+ },
+ "helpers": {
+ "directory": ".claude/helpers",
+ "enabled": true,
+ "scripts": {
+ "v3ProgressUpdater": ".claude/helpers/update-v3-progress.sh",
+ "v3ConfigValidator": ".claude/helpers/validate-v3-config.sh",
+ "v3QuickStatus": ".claude/helpers/v3-quick-status.sh",
+ "v3CheckpointManager": ".claude/helpers/checkpoint-manager.sh",
+ "v3SwarmMonitor": ".claude/helpers/swarm-monitor.sh",
+ "v3SwarmHooks": ".claude/helpers/swarm-hooks.sh",
+ "v3Master": ".claude/helpers/v3.sh"
+ }
+ },
+ "v3Configuration": {
+ "domains": {
+ "total": 5,
+ "names": ["task-management", "session-management", "health-monitoring", "lifecycle-management", "event-coordination"],
+ "sourceDir": "src/domains"
+ },
+ "swarm": {
+ "totalAgents": 15,
+ "topology": "hierarchical-mesh",
+ "coordination": "queen-led",
+ "communication": {
+ "enabled": true,
+ "messaging": true,
+ "patternBroadcast": true,
+ "consensus": true,
+ "taskHandoff": true,
+ "autoPatternShare": true,
+ "patternThreshold": 0.7,
+ "consensusTimeout": 30000
+ }
+ },
+ "performance": {
+ "flashAttentionTarget": "2.49x-7.47x",
+ "memoryReductionTarget": "50-75%",
+ "searchImprovementTarget": "150x-12,500x",
+ "codebaseReductionTarget": "10,000+ lines"
+ },
+ "security": {
+ "criticalCves": 3,
+ "securityFirst": true,
+ "auditRequired": true
+ }
+ },
+ "statusLine": {
+ "type": "command",
+ "command": "/workspaces/claude-flow/.claude/statusline.sh"
+ },
+ "mcpServers": {
+ "claude-flow": {
+ "command": "npx",
+ "args": [
+ "agentic-flow@alpha",
+ "mcp",
+ "start"
+ ]
+ }
+ },
+ "includeCoAuthoredBy": true,
+ "enabledMcpjsonServers": ["claude-flow", "ruv-swarm"]
+}
diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.ts
index 302f54b146..7978114cee 100644
--- a/v3/@claude-flow/cli/src/init/settings-generator.ts
+++ b/v3/@claude-flow/cli/src/init/settings-generator.ts
@@ -102,7 +102,7 @@ function generateHooksConfig(config: HooksConfig): object {
hooks: [
{
type: 'command',
- command: 'if [ -n "$TOOL_INPUT_file_path" ]; then npx claude-flow@v3alpha hooks pre-edit -f "$TOOL_INPUT_file_path" 2>/dev/null; fi; exit 0',
+ command: 'if [ -n "$TOOL_INPUT_file_path" ]; then npx claude-flow@v3alpha hooks pre-edit --file "$TOOL_INPUT_file_path" 2>/dev/null; fi; exit 0',
timeout: config.timeout,
continueOnError: config.continueOnError,
},
@@ -114,7 +114,7 @@ function generateHooksConfig(config: HooksConfig): object {
hooks: [
{
type: 'command',
- command: 'if [ -n "$TOOL_INPUT_command" ]; then npx claude-flow@v3alpha hooks pre-command -c "$TOOL_INPUT_command" 2>/dev/null; fi; exit 0',
+ command: 'if [ -n "$TOOL_INPUT_command" ]; then npx claude-flow@v3alpha hooks pre-command --command "$TOOL_INPUT_command" 2>/dev/null; fi; exit 0',
timeout: config.timeout,
continueOnError: config.continueOnError,
},
@@ -126,7 +126,7 @@ function generateHooksConfig(config: HooksConfig): object {
hooks: [
{
type: 'command',
- command: 'if [ -n "$TOOL_INPUT_prompt" ]; then npx claude-flow@v3alpha hooks pre-task -d "$TOOL_INPUT_prompt" 2>/dev/null; fi; exit 0',
+ command: 'if [ -n "$TOOL_INPUT_prompt" ]; then npx claude-flow@v3alpha hooks pre-task --task-id "task-$(date +%s)" --description "$TOOL_INPUT_prompt" 2>/dev/null; fi; exit 0',
timeout: config.timeout,
continueOnError: config.continueOnError,
},
diff --git a/v3/package-lock.json b/v3/package-lock.json
index 20a9062512..652fcbe00b 100644
--- a/v3/package-lock.json
+++ b/v3/package-lock.json
@@ -373,10 +373,10 @@
}
},
"claude-flow": {
- "version": "3.0.0-alpha.18",
+ "version": "3.0.0-alpha.20",
"license": "MIT",
"dependencies": {
- "@claude-flow/cli": "3.0.0-alpha.25",
+ "@claude-flow/cli": "^3.0.0-alpha.32",
"@claude-flow/embeddings": "^3.0.0-alpha.1",
"@claude-flow/hooks": "^3.0.0-alpha.2",
"@claude-flow/mcp": "^3.0.0-alpha.1",
@@ -395,17 +395,6 @@
"node": ">=18.0.0"
}
},
- "claude-flow/node_modules/@claude-flow/cli": {
- "version": "3.0.0-alpha.25",
- "resolved": "https://registry.npmjs.org/@claude-flow/cli/-/cli-3.0.0-alpha.25.tgz",
- "integrity": "sha512-MzdLL8kJXL0g7IbKsgoCeH2QOIJv4lzw5dHpwEPw99O+Egda13IPCltKiCCD+NYFFm3aSNyFO6u34O4foWiNpw==",
- "dependencies": {
- "@claude-flow/shared": "^3.0.0-alpha.1"
- },
- "bin": {
- "claude-flow": "bin/cli.js"
- }
- },
"node_modules/@actions/core": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@actions/core/-/core-2.0.1.tgz",