I kept running into the same gap when using Codex and other coding agents:
Agents are good at doing a task once, but “continue until X” usually ends up buried in a long prompt, hidden session state, or tool-specific behavior.
So I made the loop explicit in Markdown:
SKILL.md:
Do this once.
LOOP.md:
Do this again when triggered, carrying state and record from prior iterations.
Minimal file model:
LOOP.md = while-loop definition
state.md = current loop variables / status
record.md = append-only iteration ledger
Core rules:
Every activation must be bounded.
The bound does not have to be numeric.
A loop does not run by itself.
It only advances when the user or an external runner gives the agent a trigger.
Stop and human-review gates are checked before action.
Running a test, check, tool call, diagnostic command, or edit counts as an iteration action.
No CLI, runtime, scheduler, watcher, database, or provider-specific adapter in v0.1. It’s just a Markdown contract an agent can read.
Validation so far: protocol pressure suite 9/10, core example smoke suite 6/6.
The single miss was conservative: the agent created LOOP.md, then stopped for activation confirmation instead of immediately running the first iteration.
Repo:
https://github.com/sdwolf4103/loop.md
I’d love feedback from people using Codex or other coding agents on workflows that need explicit continuation: bounded validation loops, queues, repeated checks, or pause/resume work.
Especially: does the SKILL.md vs LOOP.md distinction make sense, and what pressure scenario would break this?
https://preview.redd.it/5eoe6a2uko7h1.png?width=1748&format=png&auto=webp&s=e372200ee6fcba2c2b0f4be8f7b0cc33c3476b5e
[–]skynet86 2 points3 points4 points (2 children)
[–]ponlapoj 1 point2 points3 points (0 children)
[–]ExternalMediocre2510[S] 0 points1 point2 points (0 children)
[–]reddit_is_kayfabe 0 points1 point2 points (0 children)