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

loop

A self-correcting unit of work. Structure

Syntax

loop "<name>":

What it does

The core construct: a goal, a way to verify it (done when), the repeated steps, and what to do on failure. The smallest real loop is just a goal and a done-when.

Example

loop "fix the failing checkout tax test":
  goal: the tax line is correct at checkout
  done when "pnpm test checkout" passes
  each cycle: plan, then act, then observe
  when it fails: reflect, then plan again
examples/fix_test.loop

How it runs

โœ“ pass planeach cycle actmake the change observerun done-when stopgoal met โœ“ when it fails โ†’ reflect, then plan again
Every cycle runs plan โ†’ act โ†’ observe; the done when check decides โ€” pass โ†’ stop, fail โ†’ reflect into the next plan.

Related