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/test-mle-star-fix.sh

rUve74a597498b3
diff --git a/.claude/checkpoints/1754362224.json b/.claude/checkpoints/1754362224.json
new file mode 100644
index 0000000000..3c92925e59
--- /dev/null
+++ b/.claude/checkpoints/1754362224.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250805-025024", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation.js", "timestamp": "2025-08-05T02:50:24Z", "type": "pre-edit", "original_branch": "alpha-85"}
diff --git a/.claude/checkpoints/1754362226.json b/.claude/checkpoints/1754362226.json
new file mode 100644
index 0000000000..e706f10ff7
--- /dev/null
+++ b/.claude/checkpoints/1754362226.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250805-025026", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation.js", "timestamp": "2025-08-05T02:50:26Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 24 ++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/1754362213.json | 1 + .claude/checkpoints/1754362215.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/automation.js | 5 ++++- 7 files changed, 34 insertions(+), 5 deletions(-) "}
diff --git a/test-mle-star-fix.sh b/test-mle-star-fix.sh
new file mode 100644
index 0000000000..a7cac31329
--- /dev/null
+++ b/test-mle-star-fix.sh
@@ -0,0 +1,54 @@
+#!/bin/bash
+
+# Test script to verify MLE-STAR single spawn fix
+
+echo "🧪 Testing MLE-STAR automation fix for multiple Claude spawns"
+echo "================================================"
+echo
+
+# Create a minimal test dataset
+mkdir -p data
+cat > data/test.csv << EOF
+feature1,feature2,price
+1.0,2.0,100
+2.0,3.0,200
+3.0,4.0,300
+4.0,5.0,400
+5.0,6.0,500
+EOF
+
+echo "📊 Created test dataset: data/test.csv"
+echo
+
+# Test 1: Default behavior (should be non-interactive)
+echo "Test 1: Default MLE-STAR (should use non-interactive mode)"
+echo "./claude-flow automation mle-star --dataset data/test.csv --target price --claude"
+echo
+echo "Expected: Non-interactive mode with independent agent spawns"
+echo "Press Ctrl+C to stop if multiple interactive Claude sessions appear"
+echo
+
+# Test 2: Explicit non-interactive
+echo "Test 2: Explicit non-interactive mode"
+echo "./claude-flow automation mle-star --dataset data/test.csv --target price --claude --non-interactive"
+echo
+echo "Expected: Same as Test 1 - non-interactive mode"
+echo
+
+# Test 3: Interactive mode (should spawn single master coordinator)
+echo "Test 3: Interactive mode (single master coordinator)"
+echo "./claude-flow automation mle-star --dataset data/test.csv --target price --claude --interactive"
+echo
+echo "Expected: Single Claude interactive session as master coordinator"
+echo "⚠️ WARNING: This will spawn one interactive Claude session"
+echo
+
+# Test 4: Without Claude integration (simulation only)
+echo "Test 4: Simulation mode (no Claude integration)"
+echo "./claude-flow automation mle-star --dataset data/test.csv --target price"
+echo
+echo "Expected: Simulation only, no Claude instances spawned"
+echo
+
+echo "✅ Test commands prepared. Run them individually to verify the fix."
+echo " The default behavior should now prevent multiple interactive Claude spawns."
\ No newline at end of file