Skip to content

Starter kits

template — the canonical loop kit (clone-and-fill)

This is the skeleton every loop in the library is stamped from. Copy the folder, fill the <ANGLE-BRACKET> placeholders, clear the seven-item minimum,…

This is the skeleton every loop in the library is stamped from. Copy the folder, fill the <ANGLE-BRACKET> placeholders, clear the seven-item minimum, and run it at L1. Nothing here is magic — it's the design checklist, pre-poured into files.

What's in the kit

FileRoleFill it using
LOOP.mdthe loop's definition — six parts, prompt, limits, ownership, three stopsthe A–F method
loop-state.md.examplethe spine — what the loop remembers between beatsrename to <loop-name>-state.md, commit before beat 1
loop-budget.mdcaps: max runs/day, max tokens/day, the 80% tripwirecost management
loop-constraints.mdthe loop's constitution — what it may never dosafety
loop-run-log.mdthe append-only flight recorder — one line per beatobservability
.claude/skills/loop-task/SKILL.mdthe procedure (Claude Code)Step 9 · Skills
.claude/agents/loop-verifier.mdthe read-only checker (Claude Code)Step 11 · Maker–Checker
opencode.json.example · skills/loop-task.mdthe OpenCode variant of the same two artifactsthe same two steps

Codex and Grok kits follow the identical shape — a rules file, a skill, a read-only verifier, and a scheduler — and are a documented porting step, not a redesign.

Scaffold a loop in six moves

1. npx @loop-engineering/loop-kit new <loop-name>       # kits only — the course stays put
2. read the spine it named for you: <loop-name>-state.md
3. fill every <ANGLE-BRACKET> in LOOP.md                # the six parts + three stops
4. write the procedure into the SKILL.md                # intent in the prompt, steps in the skill
5. commit the spine BEFORE the first beat               # uncommitted state is pre-lost
6. run at L1, watched, for one real cycle               # prove before overnight

Move 1 needs Node 18+ and nothing else — no clone, no global install. Contributors working inside this repo copy the folder in place instead: cp -r starters/_template starters/<loop-name>.

The full walkthrough — with a worked example and the cross-tool plumbing — is Scaffold a Loop from the Template.

The seven-item minimum (clear this before beat 1)

  1. Provable success condition
  2. Run limit
  3. Spine written first, committed
  4. Report-only (L1) start
  5. Human gate placed
  6. One log line per beat
  7. Kill switch tested

Attribution: the kit shape is adapted from the cobusgreyling/loop-engineering reference repo (S7, MIT) and the loop anatomy of Panaversity's Loop Engineering: A Crash Course (S1). Full attribution: resources/sources.md.