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

rUv902abff3c7af
diff --git a/.claude/checkpoints/task-1754342131.json b/.claude/checkpoints/task-1754342131.json
new file mode 100644
index 0000000000..a40d830b30
--- /dev/null
+++ b/.claude/checkpoints/task-1754342131.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250804-211530", "task": "{{user_prompt}} ", "timestamp": "2025-08-04T21:15:31Z", "commit": "5da1bbe08ec376c6c4054716bf49fccef7b9d42b", "github_release": "true"}
diff --git a/src/cli/simple-commands/automation-executor.js b/src/cli/simple-commands/automation-executor.js
index 86d971b74f..58351b9807 100644
--- a/src/cli/simple-commands/automation-executor.js
+++ b/src/cli/simple-commands/automation-executor.js
@@ -206,9 +206,9 @@ export class WorkflowExecutor {
async spawnClaudeInstance(agent, prompt) {
const claudeArgs = [];
- // Add non-interactive flags if needed
+ // Add flags based on mode
if (this.options.nonInteractive) {
- // Use print mode with stream-json output for non-interactive execution
+ // Non-interactive mode: use --print with stream-json output
claudeArgs.push('--print');
if (this.options.outputFormat === 'stream-json') {
claudeArgs.push('--output-format', 'stream-json');
@@ -216,12 +216,11 @@ export class WorkflowExecutor {
}
// Skip permissions for automated workflows
claudeArgs.push('--dangerously-skip-permissions');
- claudeArgs.push(prompt);
- } else {
- // Interactive mode - pass prompt as argument to Claude
- claudeArgs.push(prompt);
}
+ // Always add the prompt as the final argument
+ claudeArgs.push(prompt);
+
// Log the command being executed (truncate long prompts)
const displayPrompt = prompt.length > 100 ? prompt.substring(0, 100) + '...' : prompt;
const flagsDisplay = this.options.nonInteractive ?