/loop:loopfrom loop
Runs an agent CLI (claude, codex, aider, etc.) in a loop from a LOOP.md file until a verifier confirms completion. Supports finish, optimize, maintain, and research loop kinds with configurable worker, verifier, memory, brakes, and rhythm.
Ships in loop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
loop runs an agent CLI (claude, codex, gemini, aider, ...) repeatedly from one markdown file until a verifier says the work is done. Install with npm i -g @raiyanyahya/loop. Check loop doctor first.
LOOP.md = YAML frontmatter (the loop) + markdown body (the goal). Keys, by the five parts of a loop:
- [ ] checkboxes become the checklist; context: [SPEC.md] inlines files.agent: claude or agent: [claude, codex] (relay); model:; command: for any CLI; sandbox: "docker run ... {cmd}"; permissions: bypass|edits|default.until: [done, "npm test"] (all must hold; checklist, never); metric: "cmd" + direction: min|max + keep: improve|no-regress|always + target:; protect: ["test/**"]; critic: codex | same | {agent, when: done|N}..loop/letter.md, automatic); memory: NOTES.md for durable notes.max, max_time, max_cost, timeout, stall, repeat.rituals: [{at: 1, prompt}, {every: 5, prompt}, {at: last, prompt}], sleep, git: true or git: {commit, branch, worktree}, notify: <webhook>.Pick the kind first: finish (until done + tests), optimize (metric, keep: improve, until: never), maintain (until: never, rituals, max_time), research (checklist + critic). loop init --kind <kind> --yes writes a starting file; loop init plan-build gives the full harness.
loop run (or loop run <name> for loops/<name>.md), loop run --dry to see the prompt and command without spending.loop status, loop log, loop stop, loop answer "..." when the loop is waiting on a question.If the prompt says you are an iteration of a loop run: read the letter and history first, do one thing, run the checks, never touch protected files or reword the checklist, write .loop/letter.md before finishing, and end with <loop:done/> only when every condition in "The loop finishes when" holds. Use <loop:stuck>why</loop:stuck> or <loop:ask>question</loop:ask> instead of guessing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
Generated from the plugin's indexed repository (raiyanyahya/loop) — no native marketplace selected
npx claudepluginhub p/raiyanyahya-loop