codex-dev-loop

Codex Dev Loop User Manual

Version: 0.2.0

1. Purpose

Codex Dev Loop gives development work a durable home. Instead of restarting context every thread, a project gets a .codex-loop/ vault with goals, loop specs, run logs, decisions, open loops, approvals, runbooks, and review surfaces.

2. Install

Run the installer from the repository root.

PowerShell:

powershell -ExecutionPolicy Bypass -File .\installers\install.ps1

Bash:

bash installers/install.sh

By default, the skill installs to:

You can override the destination:

powershell -ExecutionPolicy Bypass -File .\installers\install.ps1 -Destination C:\path\to\skills\codex-dev-loop
bash installers/install.sh --destination /path/to/skills/codex-dev-loop

3. Start A Project Loop

Open a repo in Codex desktop and say:

Use $codex-dev-loop for this repo. Initialize the dev loop vault.

Or run:

python <skill-dir>\scripts\bootstrap_vault.py --target .

4. Work With Goals

For substantial work, create a goal card:

python <skill-dir>\scripts\create_goal.py --target . --name "fix auth timeout" --objective "Users stay signed in across refreshes" --verification "Run auth tests and manual browser check"

A good goal includes:

5. Memory Files

Use the vault as reviewable memory:

6. Loop Engineering

Create a loop spec for repeated work that has a measurable verifier:

python <skill-dir>\scripts\create_loop.py --target . --name "pr babysitter" --trigger "Every 15 minutes" --action "Inspect PRs labeled agent-watch" --verifier "CI green and no blocking comments" --stop-condition "CI green or budget exhausted"

Record each pass:

python <skill-dir>\scripts\record_loop_run.py --target . --loop pr-babysitter --observed "CI red" --action "Prepared one deterministic fix" --verifier-result failed --next-step "Ask user before push"

Check loop health:

python <skill-dir>\scripts\run_loop_check.py --target .

Every loop should define trigger, scope, action, verifier, budget, stop condition, escalation, and status. Skip loops for one-shot edits, vague exploratory work, and tasks without a cheap verifier.

7. Approval Queue

Queue any action that changes external state:

python <skill-dir>\scripts\queue_approval.py --target . --title "push branch" --action "Push local branch" --target-action "origin/feature-x"

Codex should not perform queued actions until the user approves the exact action and target.

8. Finalization Check

Before wrapping substantial work, run:

python <skill-dir>\scripts\finalize_check.py --target .

This reports:

9. Dashboard

Generate a local HTML dashboard:

python <skill-dir>\scripts\loop_status.py --target . --html

Open .codex-loop/dashboard.html to review current state.

10. Automations

Codex desktop supports real recurring automations. Use this system to define the target, cadence, stop condition, and approval boundary.

Example request:

Use $codex-dev-loop. Watch PR 42 every 30 minutes until CI passes. Prepare fixes locally, but do not push or comment without approval.

Codex should record the automation in automation-registry.md.

11. Voice And Transcripts

Save rough notes:

python <skill-dir>\scripts\ingest_transcript.py --target . --source notes.txt --title "release feedback"

Then distill the note into decisions, preferences, actions, and open loops.

  1. Use a pinned Codex thread per important project.
  2. Initialize .codex-loop/.
  3. Create a goal card for substantial work.
  4. Create a loop spec when the work repeats and has a verifier.
  5. Let Codex implement and verify.
  6. Record decisions, runs, and open loops.
  7. Queue external actions for approval.
  8. Run finalization check before closing.