Deterministic backlog loop for Codex CLI
A Codex-first autonomous runner that pulls exactly one task per iteration from a JSON backlog with fresh context each run and a JSONL audit log for full traceability.
Implementation note
When to use: you want Ralph-style backlog grinding with Codex CLI as the engine, in contexts where traceability matters — you need to answer what the loop did on iteration 14 after the fact. How it works: an autonomous runner that pulls exactly one task per iteration from a JSON backlog, runs it with fresh context, and appends a JSONL audit log entry per iteration, giving the whole run a machine-readable paper trail. The one-task-per-iteration discipline keeps each run bounded and attributable, and the JSON backlog is the shared state between iterations. It can optionally interleave Claude Code runs alongside Codex. Safety: the JSONL audit log is the distinguishing rail — full traceability of what ran, when, and against which task, which most homemade Ralph loops lack entirely. Keep backlog items small and independently shippable, and bound total iterations yourself, since the runner's determinism governs task selection, not spend.
More automation loops
Run workflows with dynamic sub-agents
Split a task into packets, run sub-agents in parallel, synthesize results, and verify completion.
Run agent turns until goal met
Agent executes repeated turns toward a condition, with a lightweight evaluator checking progress after each turn until the goal is reached.
Run agent until goal met
Queue agent turns with goal context until your objective is achieved, treating the goal as untrusted data.