Flows · The automation language

Write it once, run it deterministically forever

Flows are not prompt chains. They're real programs with a deterministic spine — triggering, routing, sequencing, guardrails — where AI judgment only fires for the steps that truly need it.

A deterministic spine, agent judgment at the leaves

Every Flow is a small text program, validated by a deterministic parser — not interpreted by an LLM reading YAML. The model is never the source of truth; the parser is.

↳

Compose — flows call flows with gosub, pass arguments, and return values. Flows are functions.

⇉

Parallelize — spawn / join run work concurrently. Three lookups that took 9s in series finish in 3.

⚑

Recover — on error handlers and inline status branches. No silent half-failures.

⌘

Control mid-flight — /flow status, pause, stop from any channel, or buttons in the run log. A tool: jev step gives a flow calibrated judgments.

Competitor Watch.flow

flow "Competitor Watch"

trigger cron "0 9 * * 1"

step fetch:

spawn pricing, features, news

join -> results

step diff:

agent

prompt: "Flag changes vs {{memory.last}}"

step report:

gosub "Build Report" with {{steps.diff.output}}

on error -> notify

output -> email, slack

Write the DSL, build it visually, or describe it in plain English — all round-trip losslessly.

The same flow, two views — drag it together in the visual builder or edit the DSL directly. They round-trip losslessly through one parser.

Visual Flow builder — basics, triggers, and steps
Visual builder — triggers, match rules, and typed steps.
Flow Code tab — the DSL with live validation and AI-assisted edits
Code tab — the DSL with live validation, or describe a change in English.
Self-authoring

Agents write their own Flows

The synthesize_flow tool turns a repeated task into a validated, call-only flow stored in a curated scratch space. A synthesized flow earns its way to permanence — three clean runs make it a ⭐ candidate, three failures quarantine it. Promote the good ones into your permanent flows. Agent-written automations can never borrow your vetted authority until you approve them.

Keep reading

Try it on real work.

Join the waitlist for Cohort 001, our first early-access group, and you'll get an email when you're in. Or run Captain on your own machine today.