Install Stageflow
Use the install script on macOS or Linux. Node.js 20 or newer is required.
$ curl -fsSL https://raw.githubusercontent.com/tejasghutukade/stageflow/main/install.sh | bash
A workflow you can see thinking
Scroll through one live run. Every decision, handoff, and verification becomes part of the product story.
Scroll to start ↓01 / One focused job
The researcher gathers evidence. The analyst finds the signal. The writer shapes the brief. Smaller contexts create work you can inspect.
02 / Typed handoffs
Every stage passes a schema-checked artifact forward—not an ambiguous transcript that the next agent has to reinterpret.
03 / Verification
Structure, citations, policy, tests, or your own acceptance rules decide whether the workflow advances, retries, or asks for help.
04 / Dynamic routing
Verified outputs choose the next stage. Every possible branch is still declared, visible, and safe to reason about.
05 / Human checkpoint
The run pauses with its state intact. You review the decision—not the entire history—then approve, revise, or choose another route.
06 / Simple YAML
The whole route stays readable, reviewable, and versioned beside your code. No proprietary canvas required.
Open source · MIT licensed · Node 20+
Stageflow gives every stage a focused agent session, every handoff a contract, and every run an inspectable history. Start locally, then take the exact same workflow to CI or MCP.
Use the install script on macOS or Linux. Node.js 20 or newer is required.
$ curl -fsSL https://raw.githubusercontent.com/tejasghutukade/stageflow/main/install.sh | bash
Initialize Stageflow inside a project. It creates a manifest, example pipeline, and task file you can edit.
$ sf init
Connect a model provider in the console, then run the generated task against the generated pipeline.
$ sf ui
$ sf run --pipeline pipelines/hello.pipeline.yaml --task tasks/hello.task.yaml
Install, connect a provider, initialize a project, and complete a first run.
→ 02Author workflowsDefine pipelines, stages, tasks, routing, fan-out, joins, and Clone Chains in YAML.
→ 03Design handoffsMove typed envelopes and artifacts between fresh agent sessions without transcript sprawl.
→ 04Verify outputsAdd after-phase checks, durable evidence, repair routes, and manual recovery.
→ 05Add human gatesPause with state intact, ask the right question, and resume from the operator console or MCP.
→ 06Operate StageflowUse the CLI, inspect graphs, validate definitions, manage providers, and export runs.
→ 07Connect agentsExpose tools over MCP or invoke standalone stages with envelope references.
→ 08Ship in CIValidate strictly, run headlessly, interpret exit codes, and extract typed results.
→03 / Working examples
Conditional fork, skill binding, typed envelopes, and GitHub Actions delivery.
inspect route ↗ HITLPlan → review → decisionA multi-stage workflow that stops at a human gate without losing run state.
inspect route ↗ RoutingConditional forkOne verified result, two declared branches, and an explicit operator choice.
inspect route ↗ MCPLibrary research briefResolve a library, fetch current documentation, and hand a typed brief forward.
inspect route ↗Use the operator console to triage runs, connect providers, inspect artifacts, and answer human gates.
sf uiValidate and execute the exact workflow in CI with predictable JSON output and exit codes.
sf validate --strict --jsonExpose trusted workflow tools or run a single stage directly and chain its typed envelope into the next call.
http://127.0.0.1:3847/mcp04 / Built in the open
Stageflow is MIT licensed. Read every line, open an issue, contribute a fix, or keep every run on your own machine. The YAML lives beside your code—reviewable, versioned, and portable.