š Stream-Chain
/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
/stream-chain
npx ruflo@latest stream-chain create \
--name "feature-pipeline" \
--stages "researcher,architect,coder,tester,reviewer"Pipeline Definition (YAML)
yaml
name: 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_reviewRunning Pipelines
bash
npx ruflo@latest stream-chain run feature-pipeline \
--input '{"requirements": "Add user dashboard with analytics"}'
npx ruflo@latest stream-chain status feature-pipelineUse 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 |