š Stream-Chain
/docs/cloud--deployment/stream-chain
Stream-Chain enables sequential processing where the output of one agent becomes the input of the next.
Pipeline Concept
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā STREAM-CHAIN PIPELINE ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā⤠ā ā ā Input āāā¶ [Agent 1] āāā¶ [Agent 2] āāā¶ [Agent 3] āāā¶ Output ā ā (Research) (Implement) (Test) ā ā ā ā Each stage transforms and passes data to the next ā ā ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Creating Pipelines
bash# Via skill /stream-chain # Define pipeline npx ruflo@latest stream-chain create \ --name "feature-pipeline" \ --stages "researcher,architect,coder,tester,reviewer"
Pipeline Definition (YAML)
yamlname: feature-development description: End-to-end feature implementation stages: - name: research agent: researcher input: requirements output: analysis - name: design agent: architect input: analysis output: architecture - name: implement agent: coder input: architecture output: code - name: test agent: tester input: code output: test_results - name: review agent: reviewer input: [code, test_results] output: final_review
Running Pipelines
bash# Run the pipeline npx ruflo@latest stream-chain run feature-pipeline \ --input '{"requirements": "Add user dashboard with analytics"}' # Monitor progress npx ruflo@latest stream-chain status feature-pipeline
Use Cases
| Pipeline | Stages | Output |
|---|---|---|
| Feature Development | research ā design ā implement ā test ā review | Reviewed code |
| Security Audit | scan ā analyze ā remediate ā verify | Security report |
| Documentation | research ā outline ā write ā review | Documentation |
| Migration | analyze ā plan ā migrate ā validate | Migrated code |