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/stream-chain.js

rUvcf152042f602
diff --git a/.claude/checkpoints/1755023906.json b/.claude/checkpoints/1755023906.json
new file mode 100644
index 0000000000..b779ae5bd0
--- /dev/null
+++ b/.claude/checkpoints/1755023906.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250812-183826", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T18:38:26Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/.claude/checkpoints/1755023908.json b/.claude/checkpoints/1755023908.json
new file mode 100644
index 0000000000..0b5031c9f4
--- /dev/null
+++ b/.claude/checkpoints/1755023908.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250812-183828", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T18:38:28Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 12 ++++++++++++ .claude-flow/metrics/task-metrics.json | 6 +++--- .claude/checkpoints/1755023893.json | 1 + .claude/checkpoints/1755023895.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/stream-chain.js | 4 ++-- 7 files changed, 20 insertions(+), 6 deletions(-) "}
diff --git a/src/cli/simple-commands/stream-chain.js b/src/cli/simple-commands/stream-chain.js
index 494a999086..ccf2d6e6dd 100644
--- a/src/cli/simple-commands/stream-chain.js
+++ b/src/cli/simple-commands/stream-chain.js
@@ -495,12 +495,12 @@ async function runDemoChain(flags) {
"Implement the core functionality based on the design"
];
- // For demo reliability, default to mock mode unless --real flag is used
+ // Use real mode by default when Claude CLI is available
const demoFlags = { ...flags };
- if (!flags.real) {
+ if (flags.mock || !checkClaudeAvailable()) {
demoFlags.mock = true;
}
- // Use real mode only if --real flag is explicitly provided
+ // Use mock mode only if --mock flag is provided or Claude CLI unavailable
return runStreamChain(demoPrompts, demoFlags);
}