Executes one disciplined iteration of a designed loop from .loop/<name>/, reading LOOP.md charter, state.json, and journal.md. Useful for durable, file-based agent loops across Claude Code, Codex, or Gemini CLI.
Ships in claude-skills-library. 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.
You are one iteration of a durable loop. You start cold, you finish clean, and everything you learn goes into files — the next iteration (possibly a different agent, possibly you tomorrow) knows only what the loop directory says. Run exactly one unit; resist finishing "just one more".
Execute in order. Do not skip, reorder, or batch steps.
Read, in this order: .loop/<name>/LOOP.md (the whole charter), .loop/<name>/signs.md
(every line is a binding rule earned from a past failure — treat them like
Guardrails), .loop/<name>/state.json, the last 3 entries of
.loop/<name>/journal.md, and .loop/<name>/backlog.md if the archetype uses one.
Do not read the full journal — old entries are archive, not context.
Refuse to run (exit with one journal line explaining why) if ANY of:
.loop/STOP or .loop/<name>/STOP exists — the operator's kill switch. Never
delete a STOP file.status is paused, stalled, blocked, done, or retired — only an operator
or the orchestrator changes those.iteration >= budget.max_iterations.status: done, journal it, report, stop.status: blocked, escalate per charter (H4 debris — a prior iteration died; a human or the
orchestrator must adjudicate, not you).Then check .loop/<name>/STEER.md. If present, it is live operator steering:
incorporate it into this iteration's choices, quote it in the journal entry, then
delete the file. Steering outranks the journal's Next: hint but never overrides
Guardrails or promotion mode.
Select the single unit per the charter's Iteration contract (top eligible backlog
item; next failing test; the current blocker for a babysitter; …). If the last
journal entry's Next: names a unit, prefer it unless it's now ineligible. If the
same unit appears in the last 2 entries with ❌, you MUST take a different approach
or escalate — never re-run a failed approach verbatim.
Complete the unit within the charter's Guardrails and wall-clock budget. Touch only what the unit requires. If mid-unit you discover it's oversized, stop at a coherent boundary, split the remainder into new backlog items, and treat the completed part as your unit.
Run every command in the charter's Verification section and read the ratchet via its
"Read via" command. This step is not optional and not skippable under time pressure —
an unverified unit is a failed unit. Evidence, not assertions: the journal gets
the actual command output (exit code, counts, failing test names), never "tests
pass". You may not record a result you did not observe this iteration. An iteration
that produced no changes counts as no ratchet movement (stall_count+1), even if
nothing failed.
.loop/<name>/signs.md: a rule that
would have prevented it ("do not edit generated files under X — regenerate",
"run the schema migration before the type check"). Signs come only from observed
failures — never add speculative ones.Next:).In this order (order matters — a crash between steps must never leave done-looking state with no evidence):
.loop/<name>/journal.md (format in the loop's
state-schema reference — Unit / Did / Verify with actual command output /
Ratchet old→new / Next / Flags)..loop/<name>/state.json: iteration+1, ratchet.value (and
ratchet.best), ratchet.stall_count (0 if moved, +1 if not),
promotion.clean_cycles (+1 if clean; reset to 0 on any ❌, regression, or
guardrail near-miss), last_run, last_agent..loop/<name>/backlog.md.ratchet.stall_count >= ratchet.stall_threshold → before escalating to a human, take one
in-loop escalation if the charter allows it: hand the blocker (files + failed
approaches from the journal) to a stronger reasoner or a fresh different-vendor
model for a hypothesis. If that iteration also fails → set status: stalled and
escalate per the charter's Escalation channel — a real message to a human, not a
journal line. Recommend a backlog regeneration if the journal shows circling.status: done, escalate the good news the same way.LOOP_OK) and suppress any channel report — the
silence contract is what keeps the human reading the reports that matter.iteration N: <unit> ✅, ratchet X→Y, next: <unit>)
and stop. Never start iteration N+1 yourself — cadence belongs to the
scheduler (cron, /loop, while-loop, orchestrator), not to you..loop/<name>/
(journal/state/backlog/signs) before you exit.promotion.mode is propose-only, you do
not commit to protected branches, publish, send, deploy, or spend — no matter what
the unit seems to need. The gate is the point.The protocol is identical everywhere; only the scheduler differs.
| Harness | One iteration | Cadence |
|---|---|---|
| Claude Code | claude -p "run one iteration of .loop/<name> per loop-runner" --output-format json | native /loop 30m <same>, Stop-hook driver, or cron |
| Codex CLI | codex exec --sandbox workspace-write --output-last-message /tmp/out.md "run one iteration of .loop/<name> per the loop-runner skill" | while :; do codex exec "…"; sleep 1800; done or cron |
| Gemini / Grok / other | equivalent one-shot exec with the same instruction | cron / while-loop |
| Cloud (CCR routines, Actions) | schedule the one-iteration instruction | platform cron |
Driver-loop notes: agent progress streams to stderr, final message to stdout — keep stdout clean for the driver to parse. In CI, scope API keys to the single exec invocation (never job-level env — repo-controlled code inside the loop can read job env). Fresh context per iteration is a feature — do not "optimize" it away by running many iterations in one long session; that reintroduces the context rot the loop exists to prevent.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
116 skills in this plugin
/acos-metaACOS self-description and configuration skill. Documents how ACOS works, how to extend it, how to add new skills/commands/agents, and how to debug the hook system. Use when building new ACOS capabilities, understanding the system architecture, or onboarding to ACOS for the first time./acos-visual-genGenerate research-grounded visuals using the InfoGenius pipeline. Use when creating infographics, diagrams, educational visuals, or any image that benefits from factual accuracy. Supports 8 visual styles (3D, technical, minimalist, photorealistic, futuristic, vintage, cartoon, standard) and 4 audience levels./agent-hygieneThe quality bar for any agent working on agent definitions, skills, commands, hooks, AGENTS.md or CLAUDE.md, in any repo and any harness. Use at session start, before editing a file under .claude/agents, agents/, .claude/commands or any SKILL.md, before handing work back, and whenever choosing which model tier (Haiku, Sonnet, Opus, Fable) or effort level a task deserves. Carries the estate guardrails, the agent-file contract the linter enforces, the verification line every hand-back ends with, and the routing rule for spending the top tier./agentic-jujutsuQuantum-resistant, self-learning version control for AI agents, with ReasoningBank intelligence and multi-agent coordination. Use when designing agent memory/versioning, coordinating multiple agents over shared state, or building experience-replay and learning loops into an agentic system./agentic-orchestrationPatterns for multi-agent coordination, task decomposition, handoffs, and workflow orchestration. Best practices for building and managing agent systems. Use when designing how multiple agents coordinate — splitting up tasks, defining handoffs, or choosing an orchestration topology./ai-architect-newsletterGenerate high-quality AI Architect newsletters with latest AI news, research integration, and visual design. Use when creating newsletters, researching AI developments, synthesizing AI news for architects, or distributing intelligence reports. Covers AI model releases, research papers, tool launches, architecture patterns, production systems, and enterprise AI trends. Integrates with FrankX research hub and supports both daily briefs and weekly deep-dives./claude-skills-library:loop-runnerfrom claude-skills-library
npx claudepluginhub frankxai/claude-skills-library --plugin claude-skills-libraryOther plugins' skills for the same job