codexloop
CodexLoop
Use codexloop when a task needs a durable execution harness rather than a single Codex turn.
The runtime implementation is co-located with this skill directory. After installation, the launcher ~/.codex/bin/codexloop imports the Python module from ~/.codex/skills/codexloop/.
Instructions
- Confirm the global launcher exists at
~/.codex/bin/codexloop. - In the target repository, initialize the scaffold yourself. Do not ask the user to pre-create plan or memory files.
initis responsible for generating them:
~/.codex/bin/codexloop init .
initgenerates these project-local files automatically:
.codexloop/config.json.codexloop/doctor.shdocs/plans/implementation-plan.mddocs/plans/CODEXLOOP_AGENT.mdMEMORY.md
- Fill in or refine the generated plan/doctor content as needed for the project, then generate or refresh the task backlog:
~/.codex/bin/codexloop plan --repo .
- Execute the plan:
~/.codex/bin/codexloop run --repo .
- Inspect or continue a run:
~/.codex/bin/codexloop status --repo .
~/.codex/bin/codexloop resume --repo .
What It Maintains
docs/plans/active/*.mdfor the live plan and progress logdocs/plans/completed/*.mdfor finished runsMEMORY.mdfor resolved failures and lessons.codexloop/for runtime state, task worktrees, event logs, and config
Quick Reference
| Task | Action |
|---|---|
| Initialize harness | ~/.codex/bin/codexloop init . |
| Generate backlog | ~/.codex/bin/codexloop plan --repo . |
| Execute plan | ~/.codex/bin/codexloop run --repo . |
| Check progress | ~/.codex/bin/codexloop status --repo . |
| Continue stopped run | ~/.codex/bin/codexloop resume --repo . |
Input Requirements
- A Git repository
- Codex CLI installed and authenticated
~/.codex/bin/codexloopinstalled viamake install- Permission to create project-local harness files with
~/.codex/bin/codexloop init . - A concrete implementation plan in
docs/plans/implementation-plan.mdafter initialization - A repo-specific verification command in
.codexloop/doctor.shafter initialization
Output
- Planned backlog in
.codexloop/tasks/ - Live progress in
docs/plans/active/ - Finished plan records in
docs/plans/completed/ - Reusable failure memory in
MEMORY.md - Runtime state, worktrees, and Codex event logs in
.codexloop/
Quality Gates
- The plan exists in
docs/plans/implementation-plan.md - The repo-specific doctor command is configured
-
runcompletes with all tasks merged, orstatusexplains what still needs intervention -
MEMORY.mdis updated when failures are solved after retries
Examples
Example 1: Start a New CodexLoop Run
~/.codex/bin/codexloop init .
# edit docs/plans/implementation-plan.md and .codexloop/doctor.sh
~/.codex/bin/codexloop plan --repo .
~/.codex/bin/codexloop run --repo .
Example 2: Resume a Stopped Run
~/.codex/bin/codexloop status --repo .
~/.codex/bin/codexloop resume --repo .
Troubleshooting
Issue: codexloop is not found
Solution: Run make install and either add ~/.codex/bin to PATH or call ~/.codex/bin/codexloop directly.
Issue: The run stops after retries
Solution: Inspect docs/plans/active/*.md, MEMORY.md, and .codexloop/runs/*/tasks/* to see the last failing verification or Codex event log, then run ~/.codex/bin/codexloop resume --repo ..
More from fmschulz/omics-skills
bio-logic
Evaluate scientific rigor, methods, biases, and evidence quality for claims, papers, and study designs.
16science-writing
Write publication-quality scientific manuscripts with DOI validation and structured reference management.
14crossref-lookup
Query the Crossref REST API for DOI validation, title search, citation metadata, and bibliography audits. Use when you need DOI lookup, title-to-DOI matching, or reference metadata cleanup.
1