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

rUv5f4e2adabc9d
diff --git a/.claude/checkpoints/1755027274.json b/.claude/checkpoints/1755027274.json
new file mode 100644
index 0000000000..7836e3cefd
--- /dev/null
+++ b/.claude/checkpoints/1755027274.json
@@ -0,0 +1 @@
+{"branch": "checkpoint/pre-edit-20250812-193434", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T19:34:34Z", "type": "pre-edit", "original_branch": "alpha-89"}
diff --git a/.claude/checkpoints/1755027276.json b/.claude/checkpoints/1755027276.json
new file mode 100644
index 0000000000..490e07e666
--- /dev/null
+++ b/.claude/checkpoints/1755027276.json
@@ -0,0 +1 @@
+{"tag": "checkpoint-20250812-193436", "file": "/workspaces/claude-code-flow/src/cli/simple-commands/stream-chain.js", "timestamp": "2025-08-12T19:34:36Z", "type": "post-edit", "branch": "alpha-89", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 7872 +++--------------------------- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1755027264.json | 1 + .claude/checkpoints/1755027266.json | 1 + claude-flow-wiki | 0 src/cli/simple-commands/stream-chain.js | 2 +- 7 files changed, 709 insertions(+), 7175 deletions(-) "}
diff --git a/src/cli/simple-commands/stream-chain.js b/src/cli/simple-commands/stream-chain.js
index 863e90e88f..9006aa8e27 100644
--- a/src/cli/simple-commands/stream-chain.js
+++ b/src/cli/simple-commands/stream-chain.js
@@ -290,7 +290,7 @@ function showHelp() {
help
Display this comprehensive help message
-OPTIONS
+βš™οΈ OPTIONS
--verbose
Show detailed execution information including:
- Full command lines being executed
@@ -305,7 +305,7 @@ OPTIONS
Enable debug mode with full stream-json output
Shows raw JSON messages between steps
-EXAMPLES
+πŸ’‘ EXAMPLES
# Run a custom 3-step code improvement chain
claude-flow stream-chain run "analyze this code" "suggest improvements" "implement the top 3"
@@ -324,32 +324,32 @@ EXAMPLES
# Debug mode to see raw stream-json messages
claude-flow stream-chain demo --debug --verbose
-HOW IT WORKS
+πŸ”§ HOW IT WORKS
1. Step 1 executes with --output-format stream-json to capture structured output
2. The assistant's response is extracted from the stream-json format
3. Step 2 receives the previous output as context in its prompt
4. This continues for all steps in the chain
5. Each step has full context of all previous outputs
-STREAM-JSON FORMAT
+πŸ“Š STREAM-JSON FORMAT
Each step outputs newline-delimited JSON with message types:
{"type":"system","subtype":"init",...} - Session initialization
{"type":"assistant","message":{...}} - Claude's response
{"type":"tool_use","name":"...",...} - Tool invocations
{"type":"result","status":"success",...} - Completion status
-PERFORMANCE
+⚑ PERFORMANCE
- Latency: ~10-30s per step depending on complexity
- Context: 100% preservation between steps
- Parallel: Steps run sequentially to maintain context
- Timeout: Default 30s per step, configurable
-REQUIREMENTS
+πŸ“‹ REQUIREMENTS
- Claude Code must be installed and available in PATH
- Valid Claude API configuration
- Sufficient API credits for multiple Claude calls
-TROUBLESHOOTING
+πŸ” TROUBLESHOOTING
"Command not found"
β†’ Ensure Claude Code is installed: npm install -g @anthropic-ai/claude-code
@@ -365,17 +365,17 @@ TROUBLESHOOTING
β†’ Use --debug to see raw output
β†’ Report issue if stream format has changed
-SEE ALSO
+πŸ”— SEE ALSO
claude-flow swarm - Multi-agent coordination
claude-flow hive-mind - Collective intelligence mode
claude-flow sparc - SPARC development methodology
-DOCUMENTATION
+πŸ“– DOCUMENTATION
Full docs: ./claude-flow-wiki/Stream-Chain-Command.md
Stream spec: ./docs/stream-chaining.md
GitHub: https://github.com/ruvnet/claude-flow
-VERSION
+🏷️ VERSION
Claude Flow Alpha 89 - Stream Chain v2.0.0
`);
}