LoopFlow
Tutorial Workshop Keywords ๐ŸŽฎ LoopFlow Lab
Keywords / plan from

plan from

Read the plan from a file you control. Augment

Syntax

plan from "docs/plan.md"

What it does

By default the loop's plan step has the agent write the plan. plan from "<file>" overrides that: the loop reads its plan from the quoted file (a hand-written .md, say) so it executes a plan you control instead of one the agent invents. Omit it and the agent writes the plan as usual. The path is relative to the .loop file. The source is extensible โ€” a URL or command could be added later โ€” but the file form is the one that exists today.

Reach for it when the sequence of work matters and you don't want the agent to reinvent it every cycle. Common cases: a plan you wrote by hand and reviewed, a plan produced by an earlier planning loop, or a spec generated by a method (BMAD, a design doc) that you want executed verbatim. Because the plan lives in a file, it is version-controlled, diffable, and editable between runs โ€” you tweak one step and re-run instead of re-prompting. It pairs naturally with plan, then act, then observe: the plan step still runs, but it loads your document rather than composing a fresh one, which keeps every cycle anchored to the same intent. This is the difference between directing the loop and merely launching it โ€” a boundary-tier capability line that narrows the agent's freedom to the ordering you already decided on, while leaving act and the done when check to do the real, verifiable work.

Example

loop "execute the billing plan":
  goal: implement the plan in docs/plan.md
  plan from "docs/plan.md"
  each cycle: plan, then act, then observe
  done when "pnpm test" passes
plan from a file you control

Common mistakes

Related