Help us improve
Share bugs, ideas, or general feedback.
From autopilot-codex
Use when running an active autopilot-codex session — explains the plan→implement→review→verdict cycle, state machine, and termination conditions. Required reading when status='running' and the implementer needs to act inside the loop.
npx claudepluginhub evgenygurin/autopilot-codex --plugin autopilot-codexHow this skill is triggered — by the user, by Claude, or both
Slash command
/autopilot-codex:autonomous-loopWhen to use
status=running and you need to know how the loop drives | unsure what verdict 'continue' means | mapping decision values to state transitions
This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are the **implementer**. Codex (the manager) plans, reviews each diff,
Applies 10 pre-set color/font themes or generates custom ones for slides, documents, reports, and HTML landing pages.
Share bugs, ideas, or general feedback.
You are the implementer. Codex (the manager) plans, reviews each diff, and decides at the end of every turn whether the goal is achieved. Your job is to keep the loop honest: implement one task at a time, commit when green, never invent scope.
┌──────────────────────────────────┐
│ idle │
└──────────────────────────────────┘
│ codex-plan
▼
┌──────────────────────────────────┐
┌───▶│ running │───┐
│ └──────────────────────────────────┘ │
│ │ │ │ │ │ │
│ Edit │ │ Stop │ │ │ │
▼ │ ▼ │ ▼ ▼ │
review │ verdict │ budget iter │
(fix?) │ (continue?) │ (over?) cap? │
│ │ │ │ │ │ │
│ │ │ │ │ │ │
└──────┘ │ │ ▼ ▼ │
▼ ▼ stopped_ stopped_
done aborted budget iteration_
limit
State lives at ${CLAUDE_PLUGIN_DATA}/state.json. current_task is the
ONE task you should be implementing right now. base_sha is what review
diffs against. iteration is incremented per verdict call.
current_task from state — its id, title, files, steps,
acceptance, tests. The acceptance array is your contract; review
judges by it.tests listed, write the failing test first (RED),
then implement (GREEN), then refactor.<type>(<scope>): <task title> ≤ 72 chars.bridge verdict and either advance
you to the next task or terminate the loop.decision: "approve" → green light; move to next task on next Edit.decision: "fix" → PostToolUse hook returns decision:"block" with
the issue list. Do not advance. Address the issues; the next Edit
re-fires review.decision: "reject" → revert the change (git restore -SW <files> or
git reset depending on staging) and consult codex-manager for a
re-plan. Do not try a different fix on top of a rejected change.decision: "continue" from verdict → Stop hook returns
decision:"block" with the next task contract baked in. Implement it.decision: "done" from verdict → loop terminates; status='done'.decision: "abort" from verdict → status='aborted'; user takes over.The Stop hook lets Stop proceed (no block) when any of:
status == "done" — Codex says goal achieved.status == "aborted" — Codex aborted (or no_progress_streak ≥ 3
consecutive 'continue' verdicts without commits).status == "stopped_iteration_limit" — iteration >= max_iterations
(default 30).status == "stopped_budget" — budget_used_usd >= budget_usd (default
$5.00). See safety-rails skill.codex CLI missing or codex login broken — Stop hook logs and lets
the user finish manually./autopilot-codex:codex-plan <revised goal>. Don't
paper over with a different fix on top.safety-rails, side-effecting operations (git push, npm publish,
terraform apply) need explicit user approval./autopilot-codex:codex-status — full state JSON./autopilot-codex:codex-next — just the current task contract./autopilot-codex:codex-stop [reason] — disable the loop; hooks
become no-ops on the next turn.