π 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: P0 daemon startup, ESM controller-registry, memory-bridge v3.5.49
rUv5a5bfa6a6635
diff --git a/package-lock.json b/package-lock.jsonindex b2118ef0a5..6f8ea307db 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "claude-flow",- "version": "3.5.46",+ "version": "3.5.49","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "claude-flow",- "version": "3.5.46",+ "version": "3.5.49","license": "MIT","dependencies": {"@ruvector/ruvllm-wasm": "^2.0.0",diff --git a/package.json b/package.jsonindex d13abba45b..fe70919e8c 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "claude-flow",- "version": "3.5.48",+ "version": "3.5.49","description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration","main": "dist/index.js","type": "module",diff --git a/ruflo/package.json b/ruflo/package.jsonindex 6b4a5f998a..2eeeb85c74 100644--- a/ruflo/package.json+++ b/ruflo/package.json@@ -1,6 +1,6 @@{"name": "ruflo",- "version": "3.5.48",+ "version": "3.5.49","description": "Ruflo - Enterprise AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration","main": "bin/ruflo.js","type": "module",diff --git a/v3/@claude-flow/cli/README.md b/v3/@claude-flow/cli/README.mdindex 6e5c31691e..e2f02e419e 100644--- a/v3/@claude-flow/cli/README.md+++ b/v3/@claude-flow/cli/README.md@@ -21,11 +21,11 @@[](https://www.youtube.com/@ReuvenCohen)# **Production-ready multi-agent AI orchestration for Claude Code**-*Deploy 60+ specialized agents in coordinated swarms with self-learning capabilities, fault-tolerant consensus, and enterprise-grade security.*+*Deploy 100+ specialized agents in coordinated swarms with self-learning capabilities, fault-tolerant consensus, and enterprise-grade security.*</div>-> **Why Ruflo?** Claude Flow is now Ruflo β named by Ruv, who loves Rust, flow states, and building things that feel inevitable. The "Ru" is the Ruv. The "flo" is the flow. Underneath, WASM kernels written in Rust power the policy engine, embeddings, and proof system. 5,900+ commits later, the alpha is over. This is v3.5.+> **Why Ruflo?** Claude Flow is now Ruflo β named by Ruv, who loves Rust, flow states, and building things that feel inevitable. The "Ru" is the Ruv. The "flo" is the flow. Underneath, WASM kernels written in Rust power the policy engine, embeddings, and proof system. 6,000+ commits later, this is v3.5.## Getting into the Flow@@ -56,8 +56,8 @@ flowchart TBsubgraph ROUTING["π§ Routing Layer"]QL[Q-Learning Router]MOE[MoE - 8 Experts]- SK[Skills - 42+]- HK[Hooks - 17]+ SK[Skills - 130+]+ HK[Hooks - 27]endsubgraph SWARM["π Swarm Coordination"]@@ -66,7 +66,7 @@ flowchart TBCLM[Claims<br/>Human-Agent Coord]end- subgraph AGENTS["π€ 60+ Agents"]+ subgraph AGENTS["π€ 100+ Agents"]AG1[coder]AG2[tester]AG3[reviewer]@@ -132,7 +132,7 @@ flowchart TB|-----------|---------|-------------|| **SONA** | Self-Optimizing Neural Architecture - learns optimal routing | Fast adaptation || **EWC++** | Elastic Weight Consolidation - prevents catastrophic forgetting | Preserves learned patterns |-| **Flash Attention** | Optimized attention computation | 2-7x speedup |+| **Flash Attention** | Optimized attention computation | 2-7x speedup (benchmarked) || **HNSW** | Hierarchical Navigable Small World vector search | Sub-millisecond retrieval || **ReasoningBank** | Pattern storage with trajectory learning | RETRIEVEβJUDGEβDISTILL || **Hyperbolic** | Poincare ball embeddings for hierarchical data | Better code relationships |@@ -161,12 +161,12 @@ curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/ruflo@main/scripts/install.sh | banpx ruflo@latest init --wizard```-> **New to Ruflo?** You don't need to learn 259 MCP tools or 26 CLI commands. After running `init`, just use Claude Code normally β the hooks system automatically routes tasks to the right agents, learns from successful patterns, and coordinates multi-agent work in the background. The advanced tools exist for fine-grained control when you need it.+> **New to Ruflo?** You don't need to learn 310+ MCP tools or 26 CLI commands. After running `init`, just use Claude Code normally β the hooks system automatically routes tasks to the right agents, learns from successful patterns, and coordinates multi-agent work in the background. The advanced tools exist for fine-grained control when you need it.---### Key Capabilities-π€ **60+ Specialized Agents** - Ready-to-use AI agents for coding, code review, testing, security audits, documentation, and DevOps. Each agent is optimized for its specific role.+π€ **100+ Specialized Agents** - Ready-to-use AI agents for coding, code review, testing, security audits, documentation, and DevOps. Each agent is optimized for its specific role.π **Coordinated Agent Teams** - Run unlimited agents simultaneously in organized swarms. Agents spawn sub-workers, communicate, share context, and divide work automatically using hierarchical (queen/workers) or mesh (peer-to-peer) patterns.@@ -193,7 +193,7 @@ Every request flows through four layers: from your CLI or Claude Code interface,|-------|------------|--------------|| User | Claude Code, CLI | Your interface to control and run commands || Orchestration | MCP Server, Router, Hooks | Routes requests to the right agents |-| Agents | 60+ types | Specialized workers (coder, tester, reviewer...) |+| Agents | 100+ types | Specialized workers (coder, tester, reviewer...) || Providers | Anthropic, OpenAI, Google, Ollama | AI models that power reasoning |</details>@@ -702,7 +702,7 @@ claude mcp add ruflo -- npx -y ruflo@latest mcp startclaude mcp list```-Once added, Claude Code can use all 259 ruflo MCP tools directly:+Once added, Claude Code can use all 313 ruflo MCP tools directly:- `swarm_init` - Initialize agent swarms- `agent_spawn` - Spawn specialized agents- `memory_search` - Search patterns with HNSW vector search@@ -757,7 +757,7 @@ Ruflo v3 introduces **self-learning neural capabilities** that no other agent or| Feature | Ruflo v3 | CrewAI | LangGraph | AutoGen | Manus ||---------|----------------|--------|-----------|---------|-------|-| **MCP Integration** | β Native (259 tools) | β | β | β | β |+| **MCP Integration** | β Native (313 tools) | β | β | β | β || **Skills System** | β 42+ pre-built | β | β | β | Limited || **Stream Pipelines** | β JSON chains | β | Via code | β | β || **Pair Programming** | β Driver/Navigator | β | β | β | β |@@ -895,7 +895,7 @@ flowchart TBsubgraph Agents["π€ Agent Layer"]Queen[Queen Coordinator]- Workers[60+ Specialized Agents]+ Workers[100+ Specialized Agents]Swarm[Swarm Manager]end@@ -1180,7 +1180,7 @@ Connect Ruflo to your development environment.<details><summary>π <strong>MCP Setup</strong> β Connect Ruflo to Any AI Environment</summary>-Ruflo runs as an MCP (Model Context Protocol) server, allowing you to connect it to any MCP-compatible AI client. This means you can use Ruflo's 60+ agents, swarm coordination, and self-learning capabilities from Claude Desktop, VS Code, Cursor, Windsurf, ChatGPT, and more.+Ruflo runs as an MCP (Model Context Protocol) server, allowing you to connect it to any MCP-compatible AI client. This means you can use Ruflo's 100+ agents, swarm coordination, and self-learning capabilities from Claude Desktop, VS Code, Cursor, Windsurf, ChatGPT, and more.### Quick Add Command@@ -1558,12 +1558,12 @@ chain.verify(envelope); // true β tamper-evidentComprehensive capabilities for enterprise-grade AI agent orchestration.<details>-<summary>π¦ <strong>Features</strong> β 60+ Agents, Swarm Topologies, MCP Tools & Security</summary>+<summary>π¦ <strong>Features</strong> β 100+ Agents, Swarm Topologies, MCP Tools & Security</summary>Comprehensive feature set for enterprise-grade AI agent orchestration.<details open>-<summary>π€ <strong>Agent Ecosystem</strong> β 60+ specialized agents across 8 categories</summary>+<summary>π€ <strong>Agent Ecosystem</strong> β 100+ specialized agents across 8 categories</summary>Pre-built agents for every development task, from coding to security audits.@@ -1710,7 +1710,7 @@ npx ruflo@latest hooks task-completed --task-id <id> --train-patterns</details><details>-<summary>π§ <strong>MCP Tools & Integration</strong> β 259 tools across 7 categories</summary>+<summary>π§ <strong>MCP Tools & Integration</strong> β 313 tools across 31 modules</summary>Full MCP server with tools for coordination, monitoring, memory, and GitHub integration.@@ -2163,7 +2163,7 @@ npx ruflo@latest worker status| `agentConfigs` | 15 V3 agent configurations | Agent testing || `memoryEntries` | Patterns, rules, embeddings | Memory testing || `swarmConfigs` | V3 default, minimal, mesh, hierarchical | Swarm testing |-| `mcpTools` | 259 tool definitions | MCP testing |+| `mcpTools` | 313 tool definitions | MCP testing |</details>@@ -5023,9 +5023,9 @@ npx agentic-flow mcp stdio</details><details>-<summary>π§ <strong>MCP Tools</strong> β 259 Integration Tools</summary>+<summary>π§ <strong>MCP Tools</strong> β 313 Integration Tools</summary>-Agentic-flow exposes 259 MCP tools for integration:+Agentic-flow exposes 310+ MCP tools for integration:| Category | Tools | Examples ||----------|-------|----------|@@ -6141,7 +6141,7 @@ Domain-Driven Design with bounded contexts, clean architecture, and measured per| **Memory** | Pattern retrieval | <10ms | β Met || **Swarm** | Agent spawn | <200ms | β Met || **Swarm** | Consensus latency | <100ms | β Met |-| **Neural** | SONA adaptation | <0.05ms | β Met |+| **Neural** | SONA adaptation | <0.05ms | β‘ Benchmarked || **Graph** | Build (1k nodes) | <200ms | β Met || **Graph** | PageRank (1k nodes) | <100ms | β Met || **Learning** | Insight recording | <5ms | β Met |@@ -7349,7 +7349,7 @@ export CLAUDE_FLOW_HNSW_EF=100β Pattern Matching β Self-learning (ReasoningBank) ββ Security β CVE remediation + strict validation ββ Modular Architecture β 18 @claude-flow/* packages β-β Agent Coordination β 60+ specialized agents β+β Agent Coordination β 100+ specialized agents ββ Token Efficiency β 32% reduction with optimization ββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββ```diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.jsonindex 5750fb8039..2cf1ceb138 100644--- a/v3/@claude-flow/cli/package.json+++ b/v3/@claude-flow/cli/package.json@@ -1,6 +1,6 @@{"name": "@claude-flow/cli",- "version": "3.5.48",+ "version": "3.5.49","type": "module","description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code","main": "dist/src/index.js",diff --git a/v3/@claude-flow/cli/src/commands/daemon.ts b/v3/@claude-flow/cli/src/commands/daemon.tsindex a2303b332a..9ad8eca4be 100644--- a/v3/@claude-flow/cli/src/commands/daemon.ts+++ b/v3/@claude-flow/cli/src/commands/daemon.ts@@ -95,8 +95,9 @@ const startCommand: Command = {fs.mkdirSync(stateDir, { recursive: true });}- // Write PID file for foreground mode- fs.writeFileSync(pidFile, String(process.pid));+ // NOTE: Do NOT write PID file here β startDaemon() writes it internally.+ // Writing it before startDaemon() causes checkExistingDaemon() to detect+ // our own PID and return early, leaving no workers scheduled (#1478 Bug 1).// Clean up PID file on exitconst cleanup = () => {@@ -173,10 +174,13 @@ const startCommand: Command = {output.writeln(output.error(`[daemon] Worker failed: ${type} - ${error}`));});- // Keep process alive+ // Keep process alive β setInterval creates a ref'd handle that prevents+ // Node.js from exiting even when startDaemon's timers are unref'd (#1478 Bug 2).+ setInterval(() => {}, 60_000);await new Promise(() => {}); // Never resolves - daemon runs until killed} else {await startDaemon(projectRoot, config);+ setInterval(() => {}, 60_000); // Keep alive with ref'd handle (#1478)await new Promise(() => {}); // Keep alive}@@ -255,7 +259,10 @@ async function startBackgroundDaemon(projectRoot: string, quiet: boolean, maxCpuconst spawnOpts: any = {cwd: resolvedRoot,detached: !isWin, // detached is POSIX-only; Windows uses windowsHide- stdio: ['ignore', fs.openSync(logFile, 'a'), fs.openSync(logFile, 'a')],+ // Use 'ignore' for all stdio β passing fs.openSync() FDs causes the child to+ // die on Windows when the parent exits and closes the FDs (#1478 Bug 3).+ // The daemon writes its own logs via appendFileSync to .claude-flow/logs/.+ stdio: ['ignore', 'ignore', 'ignore'],env: {...process.env,CLAUDE_FLOW_DAEMON: '1',@@ -294,11 +301,17 @@ async function startBackgroundDaemon(projectRoot: string, quiet: boolean, maxCpu// but child hasn't fully detached yet (fixes macOS daemon death #1283)child.unref();- // Small delay to let the child process fully detach on macOS- await new Promise(resolve => setTimeout(resolve, 100));+ // Longer delay to let the child process start and write its own PID file.+ // 100ms was too short on Windows; the child's checkExistingDaemon() would+ // find the parent-written PID and return early (#1478 Bug 1).+ await new Promise(resolve => setTimeout(resolve, 500));- // Save PID only after child is detached- fs.writeFileSync(pidFile, String(pid));+ // Write PID file only if the child hasn't already written its own.+ // The foreground child calls writePidFile() internally, but on some platforms+ // it may not have started yet, so we write as a fallback.+ if (!fs.existsSync(pidFile)) {+ fs.writeFileSync(pidFile, String(pid));+ }if (!quiet) {output.printSuccess(`Daemon started in background (PID: ${pid})`);diff --git a/v3/@claude-flow/cli/src/memory/memory-bridge.ts b/v3/@claude-flow/cli/src/memory/memory-bridge.tsindex 9535862d23..8ab6a030f0 100644--- a/v3/@claude-flow/cli/src/memory/memory-bridge.ts+++ b/v3/@claude-flow/cli/src/memory/memory-bridge.ts@@ -1177,11 +1177,14 @@ export async function bridgeSearchPatterns(options: {try {const reasoningBank = registry.get('reasoningBank');- if (reasoningBank && typeof reasoningBank.search === 'function') {- const results = await reasoningBank.search(options.query, {- topK: options.topK || 5,- minScore: options.minConfidence || 0.3,- });+ // ReasoningBank may expose .searchPatterns() (agentdb) or .search() (legacy) (#1492 Bug 2)+ if (reasoningBank && typeof (reasoningBank.searchPatterns ?? reasoningBank.search) === 'function') {+ let results: any;+ if (typeof reasoningBank.searchPatterns === 'function') {+ results = await reasoningBank.searchPatterns({ task: options.query, k: options.topK || 5, threshold: options.minConfidence || 0.3 });+ } else {+ results = await reasoningBank.search(options.query, { topK: options.topK || 5, minScore: options.minConfidence || 0.3 });+ }return {results: Array.isArray(results) ? results.map((r: any) => ({id: r.id || r.patternId || '',diff --git a/v3/@claude-flow/memory/src/controller-registry.ts b/v3/@claude-flow/memory/src/controller-registry.tsindex 0509915950..189e2b5d44 100644--- a/v3/@claude-flow/memory/src/controller-registry.ts+++ b/v3/@claude-flow/memory/src/controller-registry.ts@@ -462,7 +462,10 @@ export class ControllerRegistry extends EventEmitter {// Validate dbPath to prevent path traversalconst dbPath = config.dbPath || ':memory:';if (dbPath !== ':memory:') {- const resolved = require('path').resolve(dbPath);+ // Use dynamic import instead of require() β require() is not defined in ESM+ // context and silently kills initAgentDB(), disabling all 15+ controllers (#1492).+ const { resolve: resolvePath } = await import('node:path');+ const resolved = resolvePath(dbPath);if (resolved.includes('..')) {this.emit('agentdb:unavailable', { reason: 'Invalid dbPath' });return;diff --git a/v3/package-lock.json b/v3/package-lock.jsonindex 856eb6e33d..ed01d89e56 100644--- a/v3/package-lock.json+++ b/v3/package-lock.json@@ -1789,7 +1789,7 @@}},"@claude-flow/cli": {- "version": "3.5.46",+ "version": "3.5.49","license": "MIT","dependencies": {"@claude-flow/mcp": "^3.0.0-alpha.8",