LEARN
Turn one-off chats into loops.
You already drive Claude Code or Codex one chat at a time. These seven short guides show how to turn that work into a repeatable loop you can trust to run again — with a goal, checks, state, a trigger, and a stop condition.
The progression
From a chat to a loop that improves itself.
Each step keeps the same parts and adds one thing. A loop is repeated work with a stated reason to stop — not just "AI doing stuff" on repeat.
- 01Chat loopThe one-off session you already run in Claude Code or Codex.
- 02Task loopOne bounded job with a check that decides when it stops.
- 03Scheduled loopThe same task, run on a trigger or cadence you set.
- 04Self-improving loopA loop that watches its own runs and tunes the next one.
What you produce
A five-line loop plan.
Five lines are enough to make a loop finishable — and auditable after the fact.
- Job
- Check
- Stop when
- Budget
- Log
Seven guides
7 guides · 37 min total
01What is a loop?For engineers already using Claude Code or Codex: a plain definition of an agent loop, how to turn a one-off chat into a repeatable loop in your own repo, and how loops differ from prompts and workflows.6 min02Vocabulary for loopsAction, turn, pass, and run: the execution units Loopmaster uses, plus the nesting law for stacked loops.6 min03State and memorySeparate context, durable working state, and cross-run memory so loops can survive more than one pass without repeating work or losing lessons.5 min04Checks, budgets, and stopsUse checks, budgets, and exactly four terminal stops so every loop run ends with evidence, a clear reason, and no open-ended drift.5 min05The three layersTask, goal, and steering loops are named by what varies; the hold rule and induction rule say how each layer earns its name.6 min06How loops endLearn natural stops, safety limits, checks, and human gates so an agent loop can finish useful work without spinning forever.4 min07Loops all the way upA verified loop can become one pass inside a bigger loop: task loops vary actions, goal loops vary tasks, steering loops vary goals, and every layer needs its own five parts and its own verified pass.5 min