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: Edit /workspaces/claude-code-flow/src/cli/simple-commands/init/index.js

rUv16973a9e9431
diff --git a/src/cli/simple-commands/init/index.js b/src/cli/simple-commands/init/index.js
index 2128569870..73752e6b77 100644
--- a/src/cli/simple-commands/init/index.js
+++ b/src/cli/simple-commands/init/index.js
@@ -1558,3 +1558,91 @@ ${commands.map((cmd) => `- [${cmd}](./${cmd}.md)`).join('\n')}
}
}
}
+
+/**
+ * Flow Nexus minimal initialization - only creates Flow Nexus CLAUDE.md, commands, and agents
+ */
+async function flowNexusMinimalInit(flags, subArgs) {
+ console.log('🌐 Flow Nexus: Initializing minimal setup...');
+
+ try {
+ const force = flags.force || flags.f;
+
+ // Import functions we need
+ const { createFlowNexusClaudeMd } = await import('./templates/claude-md.js');
+ const { promises: fs } = await import('fs');
+
+ // Create Flow Nexus CLAUDE.md
+ console.log('πŸ“ Creating Flow Nexus CLAUDE.md...');
+ const flowNexusClaudeMd = createFlowNexusClaudeMd();
+ await fs.writeFile('CLAUDE.md', flowNexusClaudeMd);
+ console.log(' βœ… Created CLAUDE.md with Flow Nexus integration');
+
+ // Create .claude/commands/flow-nexus directory and copy commands
+ console.log('πŸ“ Setting up Flow Nexus commands...');
+ await fs.mkdir('.claude/commands/flow-nexus', { recursive: true });
+
+ // Copy Flow Nexus command files
+ const sourceCommandsDir = '/workspaces/claude-code-flow/.claude/commands/flow-nexus';
+ try {
+ const commandFiles = await fs.readdir(sourceCommandsDir);
+ let copiedCommands = 0;
+
+ for (const file of commandFiles) {
+ if (file.endsWith('.md')) {
+ const sourcePath = `${sourceCommandsDir}/${file}`;
+ const destPath = `.claude/commands/flow-nexus/${file}`;
+ const content = await fs.readFile(sourcePath, 'utf8');
+ await fs.writeFile(destPath, content);
+ copiedCommands++;
+ }
+ }
+
+ console.log(` βœ… Copied ${copiedCommands} Flow Nexus command files`);
+ } catch (err) {
+ console.log(' ⚠️ Could not copy Flow Nexus commands:', err.message);
+ }
+
+ // Create .claude/agents/flow-nexus directory and copy agents
+ console.log('πŸ€– Setting up Flow Nexus agents...');
+ await fs.mkdir('.claude/agents/flow-nexus', { recursive: true });
+
+ // Copy Flow Nexus agent files
+ const sourceAgentsDir = '/workspaces/claude-code-flow/.claude/agents/flow-nexus';
+ try {
+ const agentFiles = await fs.readdir(sourceAgentsDir);
+ let copiedAgents = 0;
+
+ for (const file of agentFiles) {
+ if (file.endsWith('.md')) {
+ const sourcePath = `${sourceAgentsDir}/${file}`;
+ const destPath = `.claude/agents/flow-nexus/${file}`;
+ const content = await fs.readFile(sourcePath, 'utf8');
+ await fs.writeFile(destPath, content);
+ copiedAgents++;
+ }
+ }
+
+ console.log(` βœ… Copied ${copiedAgents} Flow Nexus agent files`);
+ } catch (err) {
+ console.log(' ⚠️ Could not copy Flow Nexus agents:', err.message);
+ }
+
+ console.log('\nπŸŽ‰ Flow Nexus minimal initialization complete!');
+ console.log('πŸ“š Created: CLAUDE.md with Flow Nexus documentation');
+ console.log('πŸ“ Created: .claude/commands/flow-nexus/ directory with command documentation');
+ console.log('πŸ€– Created: .claude/agents/flow-nexus/ directory with specialized agents');
+ console.log('');
+ console.log('πŸ’‘ Quick Start:');
+ console.log(' 1. Register: mcp__flow-nexus__user_register({ email, password })');
+ console.log(' 2. Login: mcp__flow-nexus__user_login({ email, password })');
+ console.log(' 3. Deploy: mcp__flow-nexus__swarm_init({ topology: "mesh", maxAgents: 5 })');
+ console.log('');
+ console.log('πŸ”— Use Flow Nexus MCP tools in Claude Code for full functionality');
+
+ } catch (err) {
+ console.log(`❌ Flow Nexus initialization failed: ${err.message}`);
+ console.log('Stack trace:', err.stack);
+ process.exit(1);
+ }
+}
diff --git a/test-flow-nexus/.claude/checkpoints/1757192731.json b/test-flow-nexus/.claude/checkpoints/1757192731.json
new file mode 100644
index 0000000000..c40fba51b4
--- /dev/null
+++ b/test-flow-nexus/.claude/checkpoints/1757192731.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250906-210531", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/index.js", "timestamp": "2025-09-06T21:05:31Z", "type": "pre-edit", "original_branch": "alpha101"}
diff --git a/test-flow-nexus/.claude/checkpoints/1757192733.json b/test-flow-nexus/.claude/checkpoints/1757192733.json
new file mode 100644
index 0000000000..26561d3cc3
--- /dev/null
+++ b/test-flow-nexus/.claude/checkpoints/1757192733.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250906-210533", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/init/index.js", "timestamp": "2025-09-06T21:05:33Z", "type": "post-edit", "branch": "alpha101", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 1446 ++++++++++++-------- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/task-1757192639.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/init/index.js | 5 + .../.claude/agents/MIGRATION_SUMMARY.md | 222 +++ test-flow-nexus/.claude/agents/README.md | 89 ++ .../.claude/agents/analysis/code-analyzer.md | 209 +++ .../analysis/code-review/analyze-code-quality.md | 180 +++ .../system-design/arch-system-design.md | 156 +++ .../.claude/agents/base-template-generator.md | 42 + test-flow-nexus/.claude/agents/consensus/README.md | 253 ++++ .../agents/consensus/byzantine-coordinator.md | 63 + .../.claude/agents/consensus/crdt-synchronizer.md | 997 ++++++++++++++ .../.claude/agents/consensus/gossip-coordinator.md | 63 + .../agents/consensus/performance-benchmarker.md | 851 ++++++++++++ .../.claude/agents/consensus/quorum-manager.md | 823 +++++++++++ .../.claude/agents/consensus/raft-manager.md | 63 + .../.claude/agents/consensus/security-manager.md | 622 +++++++++ test-flow-nexus/.claude/agents/core/coder.md | 211 +++ test-flow-nexus/.claude/agents/core/planner.md | 116 ++ test-flow-nexus/.claude/agents/core/researcher.md | 136 ++ test-flow-nexus/.claude/agents/core/reviewer.md | 272 ++++ test-flow-nexus/.claude/agents/core/tester.md | 266 ++++ .../.claude/agents/data/ml/data-ml-model.md | 193 +++ .../agents/development/backend/dev-backend-api.md | 142 ++ .../.claude/agents/devops/ci-cd/ops-cicd-github.md | 164 +++ .../documentation/api-docs/docs-api-openapi.md | 174 +++ .../.claude/agents/flow-nexus/app-store.md | 88 ++ .../.claude/agents/flow-nexus/authentication.md | 69 + .../.claude/agents/flow-nexus/challenges.md | 81 ++ .../.claude/agents/flow-nexus/neural-network.md | 88 ++ .../.claude/agents/flow-nexus/payments.md | 83 ++ .../.claude/agents/flow-nexus/sandbox.md | 76 + test-flow-nexus/.claude/agents/flow-nexus/swarm.md | 76 + .../.claude/agents/flow-nexus/user-tools.md | 96 ++ .../.claude/agents/flow-nexus/workflow.md | 84 ++ .../.claude/agents/github/code-review-swarm.md | 538 ++++++++ .../.claude/agents/github/github-modes.md | 173 +++ .../.claude/agents/github/issue-tracker.md | 319 +++++ .../.claude/agents/github/multi-repo-swarm.md | 553 ++++++++ .../.claude/agents/github/pr-manager.md | 191 +++ .../.claude/agents/github/project-board-sync.md | 509 +++++++ .../.claude/agents/github/release-manager.md | 367 +++++ .../.claude/agents/github/release-swarm.md | 583 ++++++++ .../.claude/agents/github/repo-architect.md | 398 ++++++ .../.claude/agents/github/swarm-issue.md | 573 ++++++++ test-flow-nexus/.claude/agents/github/swarm-pr.md | 428 ++++++ .../.claude/agents/github/sync-coordinator.md | 452 ++++++ .../.claude/agents/github/workflow-automation.md | 635 +++++++++ .../.claude/agents/optimization/README.md | 250 ++++ .../.claude/agents/optimization/benchmark-suite.md | 665 +++++++++ .../.claude/agents/optimization/load-balancer.md | 431 ++++++ .../agents/optimization/performance-monitor.md | 672 +++++++++ .../agents/optimization/resource-allocator.md | 674 +++++++++ .../agents/optimization/topology-optimizer.md | 808 +++++++++++ .../.claude/agents/sparc/architecture.md | 472 +++++++ test-flow-nexus/.claude/agents/sparc/pseudocode.md | 318 +++++ test-flow-nexus/.claude/agents/sparc/refinement.md | 525 +++++++ .../.claude/agents/sparc/specification.md | 276 ++++ .../specialized/mobile/spec-mobile-react-native.md | 226 +++ test-flow-nexus/.claude/agents/swarm/README.md | 190 +++ .../.claude/agents/swarm/adaptive-coordinator.md | 396 ++++++ .../agents/swarm/hierarchical-coordinator.md | 256 ++++ .../.claude/agents/swarm/mesh-coordinator.md | 392 ++++++ .../agents/templates/automation-smart-agent.md | 205 +++ .../agents/templates/coordinator-swarm-init.md | 90 ++ .../.claude/agents/templates/github-pr-manager.md | 177 +++ .../agents/templates/implementer-sparc-coder.md | 259 ++++ .../.claude/agents/templates/memory-coordinator.md | 187 +++ .../.claude/agents/templates/migration-plan.md | 746 ++++++++++ .../.claude/agents/templates/orchestrator-task.md | 139 ++ .../agents/templates/performance-analyzer.md | 199 +++ .../.claude/agents/templates/sparc-coordinator.md | 183 +++ .../agents/testing/unit/tdd-london-swarm.md | 244 ++++ .../testing/validation/production-validator.md | 395 ++++++ test-flow-nexus/.claude/commands/agents/README.md | 10 + .../.claude/commands/agents/agent-capabilities.md | 21 + .../.claude/commands/agents/agent-coordination.md | 28 + .../.claude/commands/agents/agent-spawning.md | 28 + .../.claude/commands/agents/agent-types.md | 26 + .../commands/analysis/COMMAND_COMPLIANCE_REPORT.md | 54 + .../.claude/commands/analysis/README.md | 9 + .../.claude/commands/analysis/bottleneck-detect.md | 162 +++ .../commands/analysis/performance-bottlenecks.md | 59 + .../commands/analysis/performance-report.md | 25 + .../.claude/commands/analysis/token-efficiency.md | 45 + .../.claude/commands/analysis/token-usage.md | 25 + .../.claude/commands/automation/README.md | 9 + .../.claude/commands/automation/auto-agent.md | 122 ++ .../.claude/commands/automation/self-healing.md | 106 ++ .../.claude/commands/automation/session-memory.md | 90 ++ .../.claude/commands/automation/smart-agents.md | 73 + .../.claude/commands/automation/smart-spawn.md | 25 + .../.claude/commands/automation/workflow-select.md | 25 + .../.claude/commands/coordination/README.md | 9 + .../.claude/commands/coordination/agent-spawn.md | 25 + .../.claude/commands/coordination/init.md | 44 + .../.claude/commands/coordination/orchestrate.md | 43 + .../.claude/commands/coordination/spawn.md | 45 + .../.claude/commands/coordination/swarm-init.md | 85 ++ .../commands/coordination/task-orchestrate.md | 25 + .../.claude/commands/flow-nexus/app-store.md | 124 ++ .../.claude/commands/flow-nexus/challenges.md | 120 ++ .../commands/flow-nexus/login-registration.md | 65 + .../.claude/commands/flow-nexus/neural-network.md | 134 ++ .../.claude/commands/flow-nexus/payments.md | 116 ++ .../.claude/commands/flow-nexus/sandbox.md | 83 ++ .../.claude/commands/flow-nexus/swarm.md | 87 ++ .../.claude/commands/flow-nexus/user-tools.md | 152 ++ .../.claude/commands/flow-nexus/workflow.md | 115 ++ test-flow-nexus/.claude/commands/github/README.md | 11 + .../.claude/commands/github/code-review-swarm.md | 514 +++++++ .../.claude/commands/github/code-review.md | 25 + .../.claude/commands/github/github-modes.md | 147 ++ .../.claude/commands/github/github-swarm.md | 121 ++ .../.claude/commands/github/issue-tracker.md | 292 ++++ .../.claude/commands/github/issue-triage.md | 25 + .../.claude/commands/github/multi-repo-swarm.md | 519 +++++++ .../.claude/commands/github/pr-enhance.md | 26 + .../.claude/commands/github/pr-manager.md | 170 +++ .../.claude/commands/github/project-board-sync.md | 471 +++++++ .../.claude/commands/github/release-manager.md | 338 +++++ .../.claude/commands/github/release-swarm.md | 544 ++++++++ .../.claude/commands/github/repo-analyze.md | 25 + .../.claude/commands/github/repo-architect.md | 367 +++++ .../.claude/commands/github/swarm-issue.md | 482 +++++++ .../.claude/commands/github/swarm-pr.md | 285 ++++ .../.claude/commands/github/sync-coordinator.md | 301 ++++ .../.claude/commands/github/workflow-automation.md | 442 ++++++ .../.claude/commands/hive-mind/README.md | 17 + .../commands/hive-mind/hive-mind-consensus.md | 8 + .../.claude/commands/hive-mind/hive-mind-init.md | 18 + .../.claude/commands/hive-mind/hive-mind-memory.md | 8 + .../commands/hive-mind/hive-mind-metrics.md | 8 + .../.claude/commands/hive-mind/hive-mind-resume.md | 8 + .../commands/hive-mind/hive-mind-sessions.md | 8 + .../.claude/commands/hive-mind/hive-mind-spawn.md | 21 + .../.claude/commands/hive-mind/hive-mind-status.md | 8 + .../.claude/commands/hive-mind/hive-mind-stop.md | 8 + .../.claude/commands/hive-mind/hive-mind-wizard.md | 8 + .../.claude/commands/hive-mind/hive-mind.md | 27 + test-flow-nexus/.claude/commands/hooks/README.md | 11 + test-flow-nexus/.claude/commands/hooks/overview.md | 58 + .../.claude/commands/hooks/post-edit.md | 117 ++ .../.claude/commands/hooks/post-task.md | 112 ++ test-flow-nexus/.claude/commands/hooks/pre-edit.md | 113 ++ test-flow-nexus/.claude/commands/hooks/pre-task.md | 111 ++ .../.claude/commands/hooks/session-end.md | 118 ++ test-flow-nexus/.claude/commands/hooks/setup.md | 103 ++ test-flow-nexus/.claude/commands/memory/README.md | 9 + .../.claude/commands/memory/memory-persist.md | 25 + .../.claude/commands/memory/memory-search.md | 25 + .../.claude/commands/memory/memory-usage.md | 25 + test-flow-nexus/.claude/commands/memory/neural.md | 47 + test-flow-nexus/.claude/commands/memory/usage.md | 46 + .../.claude/commands/monitoring/README.md | 9 + .../.claude/commands/monitoring/agent-metrics.md | 25 + .../.claude/commands/monitoring/agents.md | 44 + .../.claude/commands/monitoring/real-time-view.md | 25 + .../.claude/commands/monitoring/status.md | 46 + .../.claude/commands/monitoring/swarm-monitor.md | 25 + .../.claude/commands/optimization/README.md | 9 + .../.claude/commands/optimization/auto-topology.md | 62 + .../.claude/commands/optimization/cache-manage.md | 25 + .../commands/optimization/parallel-execute.md | 25 + .../commands/optimization/parallel-execution.md | 50 + .../commands/optimization/topology-optimize.md | 25 + test-flow-nexus/.claude/commands/pair/README.md | 261 ++++ test-flow-nexus/.claude/commands/pair/commands.md | 546 ++++++++ test-flow-nexus/.claude/commands/pair/config.md | 510 +++++++ test-flow-nexus/.claude/commands/pair/examples.md | 512 +++++++ test-flow-nexus/.claude/commands/pair/modes.md | 348 +++++ test-flow-nexus/.claude/commands/pair/session.md | 407 ++++++ test-flow-nexus/.claude/commands/pair/start.md | 209 +++ test-flow-nexus/.claude/commands/sparc/analyzer.md | 52 + .../.claude/commands/sparc/architect.md | 53 + .../.claude/commands/sparc/batch-executor.md | 54 + test-flow-nexus/.claude/commands/sparc/coder.md | 54 + test-flow-nexus/.claude/commands/sparc/debugger.md | 54 + test-flow-nexus/.claude/commands/sparc/designer.md | 53 + .../.claude/commands/sparc/documenter.md | 54 + .../.claude/commands/sparc/innovator.md | 54 + .../.claude/commands/sparc/memory-manager.md | 54 + .../.claude/commands/sparc/optimizer.md | 54 + .../.claude/commands/sparc/orchestrator.md | 132 ++ .../.claude/commands/sparc/researcher.md | 54 + test-flow-nexus/.claude/commands/sparc/reviewer.md | 54 + .../.claude/commands/sparc/sparc-modes.md | 174 +++ .../.claude/commands/sparc/swarm-coordinator.md | 54 + test-flow-nexus/.claude/commands/sparc/tdd.md | 54 + test-flow-nexus/.claude/commands/sparc/tester.md | 54 + .../.claude/commands/sparc/workflow-manager.md | 54 + .../.claude/commands/stream-chain/pipeline.md | 121 ++ .../.claude/commands/stream-chain/run.md | 70 + test-flow-nexus/.claude/commands/swarm/README.md | 15 + test-flow-nexus/.claude/commands/swarm/analysis.md | 95 ++ .../.claude/commands/swarm/development.md | 96 ++ test-flow-nexus/.claude/commands/swarm/examples.md | 168 +++ .../.claude/commands/swarm/maintenance.md | 102 ++ .../.claude/commands/swarm/optimization.md | 117 ++ test-flow-nexus/.claude/commands/swarm/research.md | 136 ++ .../.claude/commands/swarm/swarm-analysis.md | 8 + .../.claude/commands/swarm/swarm-background.md | 8 + .../.claude/commands/swarm/swarm-init.md | 19 + .../.claude/commands/swarm/swarm-modes.md | 8 + .../.claude/commands/swarm/swarm-monitor.md | 8 + .../.claude/commands/swarm/swarm-spawn.md | 19 + .../.claude/commands/swarm/swarm-status.md | 8 + .../.claude/commands/swarm/swarm-strategies.md | 8 + test-flow-nexus/.claude/commands/swarm/swarm.md | 27 + test-flow-nexus/.claude/commands/swarm/testing.md | 131 ++ .../.claude/commands/training/README.md | 9 + .../.claude/commands/training/model-update.md | 25 + .../.claude/commands/training/neural-patterns.md | 74 + .../.claude/commands/training/neural-train.md | 25 + .../.claude/commands/training/pattern-learn.md | 25 + .../.claude/commands/training/specialization.md | 63 + test-flow-nexus/.claude/commands/truth/start.md | 143 ++ test-flow-nexus/.claude/commands/verify/check.md | 50 + test-flow-nexus/.claude/commands/verify/start.md | 128 ++ .../.claude/commands/workflows/README.md | 9 + .../.claude/commands/workflows/development.md | 78 ++ .../.claude/commands/workflows/research.md | 63 + .../.claude/commands/workflows/workflow-create.md | 25 + .../.claude/commands/workflows/workflow-execute.md | 25 + .../.claude/commands/workflows/workflow-export.md | 25 + .../.claude/helpers/checkpoint-manager.sh | 251 ++++ test-flow-nexus/.claude/helpers/github-safe.js | 106 ++ test-flow-nexus/.claude/helpers/github-setup.sh | 28 + test-flow-nexus/.claude/helpers/quick-start.sh | 19 + test-flow-nexus/.claude/helpers/setup-mcp.sh | 18 + .../.claude/helpers/standard-checkpoint-hooks.sh | 179 +++ test-flow-nexus/.claude/settings.json | 114 ++ test-flow-nexus/.gitignore | 25 + test-flow-nexus/CLAUDE.md | 352 +++++ test-flow-nexus/memory/agents/README.md | 31 + test-flow-nexus/memory/sessions/README.md | 32 + 239 files changed, 38826 insertions(+), 577 deletions(-) "}