resume-loop

resume-loop is a command for Codex from jackofall1232/l00prite. It costs 0 tokens per session (1,094 once invoked), scanned A, original, MIT.

A supervised work cycle for resuming a l00prite-managed coding project. l00prite is a project record stored in files such as plans, notes, status, and locks.

In plain words
What is it for?
Use it to continue one small planned task, verify it, save the result, and then stop.
Why use it?
It gives the agent the shared project context and checks whether another process is writing before making changes.

Command for Codex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/jackofall1232/l00prite/resume-loop
Clone the repo
git clone --depth 1 https://github.com/jackofall1232/l00prite

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for resume-loop

README.md
[![agentmods](https://agentmods.dev/badge/commands/jackofall1232/l00prite/resume-loop.svg)](https://agentmods.dev/commands/jackofall1232/l00prite/resume-loop)
Your own site
<a href="https://agentmods.dev/commands/jackofall1232/l00prite/resume-loop"><img src="https://agentmods.dev/badge/commands/jackofall1232/l00prite/resume-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01094
Opus 5 $0.00000 $0.00547
Sonnet 5 $0.00000 $0.00219
Haiku 4.5 $0.00000 $0.00109

Measured 4d ago against content hash 08fe677200ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

resume-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/prompts/resume-loop.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Resume Loop Prompt

Path convention: every .l00prite/ path in this prompt is relative to the protocol root — the directory that contains the .l00prite/ folder. In a project scaffolded by build-loop that is the l00prite/ directory at the repo root (memory at l00prite/.l00prite/); in the l00prite source repo it is the repo root itself.

You are resuming a l00prite-managed project. Treat .l00prite/ as the shared source of truth across Claude, Codex, GPT, Gemini, and future agents.

This prompt performs one supervised loop iteration: one smallest useful step, verified, persisted, then stop. For an autonomous multi-iteration run that continues until a run boundary, use .l00prite/prompts/execute-loop.md instead — it requires its own pre-flight confirmation before starting.

Required context read

Before changing files, read:

  • .l00prite/blueprint.md
  • .l00prite/ledger.md
  • .l00prite/memory.md
  • .l00prite/constraints.md
  • .l00prite/failures.md
  • .l00prite/todos.md
  • .l00prite/state.json
  • .l00prite/heartbeat.json
  • .l00prite/lock.json

Lock check (required before any write)

  • Read .l00prite/lock.json before mutating any protected path (ledger.md, memory.md, state.json, heartbeat.json, failures.md, todos.md, events/, reviews/, sessions/).
  • If status is unlocked, released, or expired, acquire the lock: set status: "active", a new lock_id, owner_agent, owner_session, acquired_at, expires_at (acquired_at + ttl_seconds), and purpose.
  • If status is active, not expired, and owned by a different agent or session, do not write. Stop and report the lock as a blocker instead of proceeding.
  • If status is active, not expired, and already owned by you (matching owner_agent/owner_session), continue writing — you do not need to re-acquire before each write within the same run.
  • If status is active but expires_at has passed, or status is explicitly expired, treat it as stale: you may reclaim it (acquire as above), but record a ledger.md entry noting the reclaimed lock_id and why it was judged stale.
  • If a step is likely to run longer than ttl_seconds (e.g. a slow test suite), refresh expires_at partway through rather than letting a still-running step look stale.
  • Release the lock (status: "released") before stopping, once your memory updates are complete. See .l00prite/LOCKING.md for the full rules.

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 73 lines · 0 tokens per session scan A 08fe677200ca

Subscribe to this mod's changes

resume-loop is a command published in the GitHub repository jackofall1232/l00prite (9 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,094 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.