🌊 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
rUv479f0c1e2795
diff --git a/v3/@claude-flow/cli/agents/architect.yaml b/v3/@claude-flow/cli/agents/architect.yamlindex 31cd3fc279..7bbf361794 100644--- a/v3/@claude-flow/cli/agents/architect.yaml+++ b/v3/@claude-flow/cli/agents/architect.yaml@@ -8,4 +8,4 @@ capabilities:optimizations:- context-caching- memory-persistence-createdAt: "2026-01-08T03:12:37.942Z"+createdAt: "2026-01-08T03:27:06.913Z"diff --git a/v3/@claude-flow/cli/agents/coder.yaml b/v3/@claude-flow/cli/agents/coder.yamlindex a93fa6ada6..cb44e3dc45 100644--- a/v3/@claude-flow/cli/agents/coder.yaml+++ b/v3/@claude-flow/cli/agents/coder.yaml@@ -8,4 +8,4 @@ capabilities:optimizations:- flash-attention- token-reduction-createdAt: "2026-01-08T03:12:37.941Z"+createdAt: "2026-01-08T03:27:06.913Z"diff --git a/v3/@claude-flow/cli/agents/reviewer.yaml b/v3/@claude-flow/cli/agents/reviewer.yamlindex 31aeaa6faa..8c491c7ad1 100644--- a/v3/@claude-flow/cli/agents/reviewer.yaml+++ b/v3/@claude-flow/cli/agents/reviewer.yaml@@ -7,4 +7,4 @@ capabilities:- best-practicesoptimizations:- incremental-analysis-createdAt: "2026-01-08T03:12:37.942Z"+createdAt: "2026-01-08T03:27:06.913Z"diff --git a/v3/@claude-flow/cli/agents/security-architect.yaml b/v3/@claude-flow/cli/agents/security-architect.yamlindex 58a9f6ad3d..7521807071 100644--- a/v3/@claude-flow/cli/agents/security-architect.yaml+++ b/v3/@claude-flow/cli/agents/security-architect.yaml@@ -7,4 +7,4 @@ capabilities:- security-reviewoptimizations:- pattern-matching-createdAt: "2026-01-08T03:12:37.942Z"+createdAt: "2026-01-08T03:27:06.913Z"diff --git a/v3/@claude-flow/cli/agents/tester.yaml b/v3/@claude-flow/cli/agents/tester.yamlindex 030897c4b0..c723e7d254 100644--- a/v3/@claude-flow/cli/agents/tester.yaml+++ b/v3/@claude-flow/cli/agents/tester.yaml@@ -7,4 +7,4 @@ capabilities:- coverageoptimizations:- parallel-execution-createdAt: "2026-01-08T03:12:37.942Z"+createdAt: "2026-01-08T03:27:06.913Z"diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.jsonindex 5dda15e2d1..cbe9bab1b9 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.0.0-alpha.37",+ "version": "3.0.0-alpha.38","type": "module","description": "CLI module - command parsing, prompts, output formatting","main": "dist/src/index.js",diff --git a/v3/@claude-flow/cli/src/init/executor.ts b/v3/@claude-flow/cli/src/init/executor.tsindex b3da49fde3..49af491a8f 100644--- a/v3/@claude-flow/cli/src/init/executor.ts+++ b/v3/@claude-flow/cli/src/init/executor.ts@@ -447,6 +447,55 @@ async function copyAgents(}}+/**+ * Find source helpers directory+ */+function findSourceHelpersDir(sourceBaseDir?: string): string | null {+ const possiblePaths: string[] = [];++ // If explicit source base directory is provided, check it first+ if (sourceBaseDir) {+ possiblePaths.push(path.join(sourceBaseDir, '.claude', 'helpers'));+ }++ // IMPORTANT: Check the package's own .claude/helpers directory+ // This is the primary path when running as an npm package+ // __dirname is typically /path/to/node_modules/@claude-flow/cli/dist/src/init+ // We need to go up 4 levels to reach the package root+ const packageRoot = path.resolve(__dirname, '..', '..', '..', '..');+ const packageHelpers = path.join(packageRoot, '.claude', 'helpers');+ if (fs.existsSync(packageHelpers)) {+ possiblePaths.unshift(packageHelpers); // Add to beginning (highest priority)+ }++ // From dist/src/init -> go up to project root+ let currentDir = __dirname;+ for (let i = 0; i < 10; i++) {+ const parentDir = path.dirname(currentDir);+ const helpersPath = path.join(parentDir, '.claude', 'helpers');+ if (fs.existsSync(helpersPath)) {+ possiblePaths.push(helpersPath);+ }+ currentDir = parentDir;+ }++ // Also check relative to process.cwd() for development+ const cwdBased = [+ path.join(process.cwd(), '.claude', 'helpers'),+ path.join(process.cwd(), '..', '.claude', 'helpers'),+ path.join(process.cwd(), '..', '..', '.claude', 'helpers'),+ ];+ possiblePaths.push(...cwdBased);++ for (const p of possiblePaths) {+ if (fs.existsSync(p)) {+ return p;+ }+ }++ return null;+}+/*** Write helper scripts*/@@ -456,33 +505,38 @@ async function writeHelpers(result: InitResult): Promise<void> {const helpersDir = path.join(targetDir, '.claude', 'helpers');- const sourceBaseDir = options.sourceBaseDir;++ // Find source helpers directory (works for npm package and local dev)+ const sourceHelpersDir = findSourceHelpersDir(options.sourceBaseDir);// Try to copy existing helpers from source first- if (sourceBaseDir) {- const sourceHelpersDir = path.join(sourceBaseDir, '.claude', 'helpers');- if (fs.existsSync(sourceHelpersDir)) {- const helperFiles = fs.readdirSync(sourceHelpersDir);- for (const file of helperFiles) {- const sourcePath = path.join(sourceHelpersDir, file);- const destPath = path.join(helpersDir, file);+ if (sourceHelpersDir && fs.existsSync(sourceHelpersDir)) {+ const helperFiles = fs.readdirSync(sourceHelpersDir);+ let copiedCount = 0;- // Skip directories and only copy files- if (!fs.statSync(sourcePath).isFile()) continue;+ for (const file of helperFiles) {+ const sourcePath = path.join(sourceHelpersDir, file);+ const destPath = path.join(helpersDir, file);- if (!fs.existsSync(destPath) || options.force) {- fs.copyFileSync(sourcePath, destPath);+ // Skip directories and only copy files+ if (!fs.statSync(sourcePath).isFile()) continue;- // Make shell scripts executable- if (file.endsWith('.sh')) {- fs.chmodSync(destPath, '755');- }+ if (!fs.existsSync(destPath) || options.force) {+ fs.copyFileSync(sourcePath, destPath);- result.created.files.push(`.claude/helpers/${file}`);- } else {- result.skipped.push(`.claude/helpers/${file}`);+ // Make shell scripts and mjs files executable+ if (file.endsWith('.sh') || file.endsWith('.mjs')) {+ fs.chmodSync(destPath, '755');}++ result.created.files.push(`.claude/helpers/${file}`);+ copiedCount++;+ } else {+ result.skipped.push(`.claude/helpers/${file}`);}+ }++ if (copiedCount > 0) {return; // Skip generating if we copied from source}}diff --git a/v3/package-lock.json b/v3/package-lock.jsonindex 5fded9226f..c2968bb63d 100644--- a/v3/package-lock.json+++ b/v3/package-lock.json@@ -124,7 +124,7 @@}},"@claude-flow/cli": {- "version": "3.0.0-alpha.37",+ "version": "3.0.0-alpha.38","dependencies": {"@claude-flow/shared": "^3.0.0-alpha.1"},