🌊 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
rUvb999225cb3ef
diff --git a/v3/@claude-flow/cli/src/commands/daemon.ts b/v3/@claude-flow/cli/src/commands/daemon.tsindex dd4665010c..cf5a0f99c9 100644--- a/v3/@claude-flow/cli/src/commands/daemon.ts+++ b/v3/@claude-flow/cli/src/commands/daemon.ts@@ -30,14 +30,17 @@ const startCommand: Command = {const quiet = ctx.flags.quiet as boolean;const foreground = ctx.flags.foreground as boolean;const projectRoot = process.cwd();+ const isDaemonProcess = process.env.CLAUDE_FLOW_DAEMON === '1';- // Check if background daemon already running- const bgPid = getBackgroundDaemonPid(projectRoot);- if (bgPid && isProcessRunning(bgPid)) {- if (!quiet) {- output.printWarning(`Daemon already running in background (PID: ${bgPid})`);+ // Check if background daemon already running (skip if we ARE the daemon process)+ if (!isDaemonProcess) {+ const bgPid = getBackgroundDaemonPid(projectRoot);+ if (bgPid && isProcessRunning(bgPid)) {+ if (!quiet) {+ output.printWarning(`Daemon already running in background (PID: ${bgPid})`);+ }+ return { success: true };}- return { success: true };}// Background mode (default): fork a detached processdiff --git a/v3/@claude-flow/embeddings/src/embedding-service.ts b/v3/@claude-flow/embeddings/src/embedding-service.tsindex f7db109c6d..ec8f321b85 100644--- a/v3/@claude-flow/embeddings/src/embedding-service.ts+++ b/v3/@claude-flow/embeddings/src/embedding-service.ts@@ -571,7 +571,9 @@ export class AgenticFlowEmbeddingService extends BaseEmbeddingService {const createEmbedder = async (modulePath: string): Promise<boolean> => {try {- const module = await import(/* webpackIgnore: true */ modulePath);+ // Use file:// protocol for absolute paths+ const importPath = modulePath.startsWith('/') ? `file://${modulePath}` : modulePath;+ const module = await import(/* webpackIgnore: true */ importPath);const getOptimizedEmbedder = module.getOptimizedEmbedder || module.default?.getOptimizedEmbedder;if (!getOptimizedEmbedder) return false;@@ -593,22 +595,31 @@ export class AgenticFlowEmbeddingService extends BaseEmbeddingService {// Build list of possible module paths to tryconst possiblePaths: string[] = [];- // Try standard package import path- const packagePath = 'agentic-flow/dist/embeddings/optimized-embedder.js';- possiblePaths.push(packagePath);-// Try node_modules resolution from different locationstry {const path = await import('path');+ const { existsSync } = await import('fs');const cwd = process.cwd();- possiblePaths.push(++ // Prioritize absolute paths that exist+ const absolutePaths = [path.join(cwd, 'node_modules/agentic-flow/dist/embeddings/optimized-embedder.js'),path.join(cwd, '../node_modules/agentic-flow/dist/embeddings/optimized-embedder.js'),- );+ '/workspaces/claude-flow/node_modules/agentic-flow/dist/embeddings/optimized-embedder.js',+ ];++ for (const p of absolutePaths) {+ if (existsSync(p)) {+ possiblePaths.push(p);+ }+ }} catch {- // path module not available, skip+ // fs/path module not available, fallback to package import}+ // Try standard package import path as fallback+ possiblePaths.push('agentic-flow/dist/embeddings/optimized-embedder.js');+// Try each pathfor (const modulePath of possiblePaths) {if (await createEmbedder(modulePath)) {