LoopFlow
Tutorial Workshop Keywords ๐ŸŽฎ LoopFlow Lab
Keywords / flow

flow

Chain whole .loop files in order. Compose

Syntax

flow "<name>":
  run "a.loop"
  then run "b.loop"

What it does

A pipeline lives in one file; a flow chains separate .loop files, run in order โ€” so a big effort becomes many small, reusable files instead of one monolith. Each step runs the whole file (its full planโ†’actโ†’observe cycle), and its short text summary carries forward as context for the next step. The chain is fail-fast: a step that ends unsatisfied halts the rest.

Reach for a flow when the stages are genuinely independent deliverables you'd want to run, resume, or reuse on their own โ€” build.loop, test.loop, deploy.loop โ€” rather than tightly-coupled stories that only make sense together (that's a pipeline). The unit of reuse is the file: the same test.loop can appear in several flows. Use then run for a step that should receive the previous step's summary automatically, or with the result of <name> to pull a specific named step's output instead of the auto-carried one. Attach a human approves first to any step that must not run unattended โ€” a deploy, a migration โ€” and the flow blocks there until approved. Because a flow is just an ordering of files, it stays flat and readable even as the overall effort grows.

Example

flow "ship":
  run "build.loop"
  then run "test.loop"
  then run "deploy.loop":
    a human approves first
examples/ship_flow.loop

How it runs

summary โ†’summary โ†’ ๐Ÿ“„ build.loopall loops inside ๐Ÿ“„ test.loopall loops inside ๐Ÿ‘ค approves first๐Ÿ“„ deploy.loopall loops inside runs in order ยท โœ— a file that isn't satisfied halts the rest
A flow chains separate .loop files; after each, a short text summary carries into the next as context.

Common mistakes

Related