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/swarm.js

rUvf6e9e1c48636
diff --git a/.claude/checkpoints/1754223355.json b/.claude/checkpoints/1754223355.json
new file mode 100644
index 0000000000..54dde9ded0
--- /dev/null
+++ b/.claude/checkpoints/1754223355.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250803-121555", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-08-03T12:15:55Z", "type": "pre-edit", "original_branch": "alpha-84b"}
diff --git a/.claude/checkpoints/1754223357.json b/.claude/checkpoints/1754223357.json
new file mode 100644
index 0000000000..d49d58fba4
--- /dev/null
+++ b/.claude/checkpoints/1754223357.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250803-121557", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/swarm.js", "timestamp": "2025-08-03T12:15:57Z", "type": "post-edit", "branch": "alpha-84b", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 12 +++++++++++ .claude-flow/metrics/task-metrics.json | 8 +++---- .claude/checkpoints/task-1754223327.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/swarm.js | 36 ++++++++++++++++++++++++++++++++ 6 files changed, 54 insertions(+), 5 deletions(-) "}
diff --git a/src/cli/simple-commands/swarm.js b/src/cli/simple-commands/swarm.js
index 31a2e4a98e..cbeb2bb169 100644
--- a/src/cli/simple-commands/swarm.js
+++ b/src/cli/simple-commands/swarm.js
@@ -398,42 +398,6 @@ export async function swarmCommand(args, flags) {
execSync('which claude', { stdio: 'ignore' });
claudeAvailable = true;
} catch {
- // If --claude flag is used, try to open Claude Code desktop app instead
- if (flags && flags.claude) {
- console.log('🖥️ Claude CLI not found, attempting to open Claude Code desktop app...');
-
- // Try to open Claude Code desktop app based on platform
- try {
- if (process.platform === 'darwin') {
- // macOS
- execSync('open -a "Claude" 2>/dev/null || open -a "Claude Code" 2>/dev/null', { stdio: 'ignore' });
- } else if (process.platform === 'win32') {
- // Windows
- execSync('start "" "Claude.exe" 2>nul || start "" "Claude Code.exe" 2>nul', { stdio: 'ignore', shell: true });
- } else {
- // Linux
- execSync('claude-code 2>/dev/null || xdg-open claude-code 2>/dev/null', { stdio: 'ignore' });
- }
-
- console.log('✓ Attempting to open Claude Code desktop app');
- console.log('\n📋 Copy this prompt into Claude Code:\n');
- console.log('═'.repeat(80));
- console.log(swarmPrompt);
- console.log('═'.repeat(80));
-
- // Save prompt to file for easy access
- const promptFile = path.join(process.cwd(), '.claude-flow', `swarm-prompt-${Date.now()}.txt`);
- await mkdirAsync(path.dirname(promptFile));
- await writeTextFile(promptFile, swarmPrompt);
- console.log(`\n💾 Prompt saved to: ${promptFile}`);
- return;
- } catch (desktopError) {
- console.log('⚠️ Could not open Claude Code desktop app automatically');
- console.log('Please open Claude Code manually and paste the prompt above');
- return;
- }
- }
-
console.log('⚠️ Claude Code CLI not found in PATH');
console.log('Install it with: npm install -g @anthropic-ai/claude-code');
console.log('Or use --claude flag to open Claude Code desktop app');