diff --git a/v3/@claude-flow/cli/src/init/executor.ts b/v3/@claude-flow/cli/src/init/executor.ts index 869766b3cd..8eae0f9ad2 100644 --- a/v3/@claude-flow/cli/src/init/executor.ts +++ b/v3/@claude-flow/cli/src/init/executor.ts @@ -580,7 +580,8 @@ function findSourceClaudeDir(sourceBaseDir?: string): string | null { } // IMPORTANT: Check the package's own .claude directory - const packageRoot = path.resolve(__dirname, '..', '..', '..', '..'); + // Go up 3 levels: dist/src/init -> dist/src -> dist -> root + const packageRoot = path.resolve(__dirname, '..', '..', '..'); const packageClaude = path.join(packageRoot, '.claude'); if (fs.existsSync(packageClaude)) { possiblePaths.unshift(packageClaude); // Add to beginning (highest priority)