π 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
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
π 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.jsonnew file mode 100644index 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.jsonnew file mode 100644index 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.jsindex 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() {helpDisplay this comprehensive help message-OPTIONS+βοΈ OPTIONS--verboseShow detailed execution information including:- Full command lines being executed@@ -305,7 +305,7 @@ OPTIONSEnable debug mode with full stream-json outputShows raw JSON messages between steps-EXAMPLES+π‘ EXAMPLES# Run a custom 3-step code improvement chainclaude-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 messagesclaude-flow stream-chain demo --debug --verbose-HOW IT WORKS+π§ HOW IT WORKS1. Step 1 executes with --output-format stream-json to capture structured output2. The assistant's response is extracted from the stream-json format3. Step 2 receives the previous output as context in its prompt4. This continues for all steps in the chain5. Each step has full context of all previous outputs-STREAM-JSON FORMAT+π STREAM-JSON FORMATEach 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 ALSOclaude-flow swarm - Multi-agent coordinationclaude-flow hive-mind - Collective intelligence modeclaude-flow sparc - SPARC development methodology-DOCUMENTATION+π DOCUMENTATIONFull docs: ./claude-flow-wiki/Stream-Chain-Command.mdStream spec: ./docs/stream-chaining.mdGitHub: https://github.com/ruvnet/claude-flow-VERSION+π·οΈ VERSIONClaude Flow Alpha 89 - Stream Chain v2.0.0`);}