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

rUv9a45dfd8d78a
diff --git a/.claude/checkpoints/1754362721.json b/.claude/checkpoints/1754362721.json
new file mode 100644
index 0000000000..570ad6587e
--- /dev/null
+++ b/.claude/checkpoints/1754362721.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250805-025841", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-05T02:58:41Z", "type": "pre-edit", "original_branch": "alpha-85"}
diff --git a/.claude/checkpoints/1754362723.json b/.claude/checkpoints/1754362723.json
new file mode 100644
index 0000000000..20f63f2371
--- /dev/null
+++ b/.claude/checkpoints/1754362723.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250805-025843", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/automation-executor.js", "timestamp": "2025-08-05T02:58:43Z", "type": "post-edit", "branch": "alpha-85", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 36 ++++++++++++++++++++++++++ .claude-flow/metrics/task-metrics.json | 6 ++--- .claude/checkpoints/1754362701.json | 1 + .claude/checkpoints/1754362702.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/automation-executor.js | 19 +++++++++++++- 7 files changed, 60 insertions(+), 5 deletions(-) "}
diff --git a/src/cli/simple-commands/automation-executor.js b/src/cli/simple-commands/automation-executor.js
index 7dfe74121c..bab8d6f93d 100644
--- a/src/cli/simple-commands/automation-executor.js
+++ b/src/cli/simple-commands/automation-executor.js
@@ -1221,8 +1221,25 @@ COORDINATION KEY POINTS:
const agent = claudeInstance.agent;
const taskPrompt = this.createTaskPrompt(task, agent, workflow);
+ // Check if we should chain from a previous task
+ let chainOptions = {};
+ if (this.enableChaining && this.options.outputFormat === 'stream-json' && task.depends?.length > 0) {
+ // Get the output stream from the last dependency
+ const lastDependency = task.depends[task.depends.length - 1];
+ const dependencyStream = this.taskOutputStreams.get(lastDependency);
+ if (dependencyStream) {
+ console.log(` 🔗 Enabling stream chaining from ${lastDependency} to ${task.id}`);
+ chainOptions.inputStream = dependencyStream;
+ }
+ }
+
// For now, spawn a new instance for each task
- const taskClaudeProcess = await this.spawnClaudeInstance(agent, taskPrompt);
+ const taskClaudeProcess = await this.spawnClaudeInstance(agent, taskPrompt, chainOptions);
+
+ // Store the output stream for potential chaining
+ if (this.enableChaining && this.options.outputFormat === 'stream-json' && taskClaudeProcess.stdout) {
+ this.taskOutputStreams.set(task.id, taskClaudeProcess.stdout);
+ }
// Wait for completion
// Use longer timeout for ML tasks