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/automation-executor.js

rUvc6bd68863828
diff --git a/.claude/checkpoints/1754335317.json b/.claude/checkpoints/1754335317.json
new file mode 100644
index 0000000000..fb01d3c1b7
--- /dev/null
+++ b/.claude/checkpoints/1754335317.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250804-192157", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation.js", "timestamp": "2025-08-04T19:21:57Z", "type": "pre-edit", "original_branch": "alpha-85"}
diff --git a/.claude/checkpoints/1754335319.json b/.claude/checkpoints/1754335319.json
new file mode 100644
index 0000000000..e7d7a702ce
--- /dev/null
+++ b/.claude/checkpoints/1754335319.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250804-192159", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation.js", "timestamp": "2025-08-04T19:21:59Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 84 ++++++++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +-- .claude/checkpoints/1754335295.json | 1 + .claude/checkpoints/1754335296.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/automation.js | 2 +- 7 files changed, 91 insertions(+), 5 deletions(-) "}
diff --git a/src/cli/simple-commands/automation-executor.js b/src/cli/simple-commands/automation-executor.js
index afb326fd63..c2bd84a943 100644
--- a/src/cli/simple-commands/automation-executor.js
+++ b/src/cli/simple-commands/automation-executor.js
@@ -190,17 +190,18 @@ export class WorkflowExecutor {
// Add non-interactive flags if needed
if (this.options.nonInteractive) {
- // Use non-interactive mode with stream-json output
- claudeArgs.push(prompt);
- claudeArgs.push('--non-interactive');
+ // Use print mode with stream-json output for non-interactive execution
+ claudeArgs.push('--print');
claudeArgs.push('--output-format', 'stream-json');
+ claudeArgs.push(prompt);
} else {
// Interactive mode
claudeArgs.push(prompt);
}
- // Log the command being executed
- console.log(` 🤖 Spawning Claude for ${agent.name}:`, `claude ${claudeArgs.join(' ')}`);
+ // Log the command being executed (truncate long prompts)
+ const displayPrompt = prompt.length > 100 ? prompt.substring(0, 100) + '...' : prompt;
+ console.log(` 🤖 Spawning Claude for ${agent.name}: claude ${this.options.nonInteractive ? '--print --output-format stream-json' : ''} "${displayPrompt}"`);
// Spawn Claude process
const claudeProcess = spawn('claude', claudeArgs, {