afk-codex-review: Part of the afk pipeline. Independent read-only Codex review, the default outer role when eligible. Triggers include "/afk-codex-review", "run codex review", "codex gate".
Ships in afk-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read AFK environment before resolving
configuration, local state or bundled helper paths.
Before invoking this gate, read external review
and review convergence. They own role
selection, authorship declaration, admission, repair allowance and closure.
Before supplying context/receipts or reusing receipts, read
review evidence. Before --design, read
external design review.
Reuse only the same installed revision already read and still in context;
otherwise reread it. Apply these routes for standalone invocations too.
For standalone review, run only the requested gate and return its verdict. Follow external review for the distinction between standalone invocation and driver-managed AFK sequencing.
In driver-managed AFK, Codex is an independent review by a different model, the
default outer role before later configured roles (Kimi is the default final
when a final role is configured; the built-in default is a single Codex gate).
Run the ordered gates profile from .afk/config.md, never use a reviewer whose
model matches the implementer or another role, and run afk-internal-review
before outer. Codex reviews the diff read-only; you triage and fix.
The helper codex-gate.mjs ships with this skill and travels with the plugin.
Codex calls are metered — keep invocations to a minimum. Batch minimal admitted P1 fixes into one content pass, self-review, then re-run once. Record every other disposition together at the end without editing a clean revision. Never spend a round-trip on a small or doc-only observation.
Read review evidence before using
--review-context, --review-phase or --review-receipt.
Native diff review rejects custom context and re-review focus; it reports the
limitation without changing modes. Native diff review still supports --review-receipt.
Only --design delivers custom context on
stdin and supports --print-prompt. Keep native diff history triage in the driver.
The bundled helper codex-gate.mjs sits beside this SKILL.md. Read environment to resolve its sibling
helper directory and bootstrap when needed.
node "<helper-dir>/codex-gate.mjs"
Run it in the background with a generous timeout (the review traces code
paths and may run tests); redirect stdout to a file and read it when it
completes. Pass through any target flag (--base <branch> / --commit <sha> /
--uncommitted; default = current branch vs the default branch). Do not poll in
a sleep loop — wait for completion.
Read authorship declaration
before choosing --implementer; design mode names the design author.
Design mode (--design <path>) reviews a design document's reasoning instead
of a diff — the opt-in design-stage gate (read external design review). Codex runs it with exec -s read-only and the brief + doc piped
on stdin — never the review subcommand or the sandbox bypass, so it stays
read-only on every OS. A missing or unreadable --design path fails loudly
(ERROR, non-zero), never a skip.
The review is bounded by CODEX_REVIEW_TIMEOUT_MS (default 15 min), with
AFK_REVIEW_TIMEOUT_MS as the shared fallback. A timeout is a non-zero ERROR,
never a partial verdict; it follows the role's transient retry rule.
The reviewer's model defaults to gpt-6.1-sol, pinned independently of
~/.codex/config.toml: an
interactive session tuned for speed or cost would otherwise decide the gate's
model, and a downgraded reviewer reads exactly like a thorough one.
CODEX_REVIEW_MODEL=<id> pins an explicitly assigned model for the call,
including gpt-6-astra when requested;
CODEX_REVIEW_MODEL=inherit restores inheritance — the escape hatch when the
installed CLI is too old for the pinned id and rejects it outright. --print-args
reports the resolved model without spending a call.
Per-run --model <alias-or-id> and --effort <level> override their environment
values independently. Model aliases sol, terra, and astra resolve through
../../lib/gate/model-select.mjs; the default is Sol 6.1 at high effort.
Efforts are low, medium, high, xhigh, and max; legacy minimal is
rejected for GPT-5.6 and GPT-6. Explicit Codex -c model=... and
-c model_reasoning_effort=... retain last-wins precedence, with the effective
values shown by --print-args. Invalid selections fail before a paid call.
Read the verdict between the ===== CODEX REVIEW (final message) ===== markers. Treat only column-0 marker lines as markers; the last END marker wins.
SKIPPED: … (Codex absent, logged out, or disabled via CODEX_REVIEW_GATE=off)
is not a failure — report it and continue. ERROR: … means the review itself
failed — read the transcript it names; never report an errored run as clean.
Apply review convergence before triage,
repairs or re-review. Keep the issue's current finding record and allowance;
apply consuming .afk/config.md invariants as extra must-check lenses.
Use the canonical closure and stop rules to decide whether this revision earns the role stamp.
Report honestly: CLEAN, or OUTSTANDING with what remains. A clean pass is
not authority to merge — hand back to the operator.
Optional and self-skipping. npm i -g @openai/codex && codex login; needs Node +
git on PATH. Disable with CODEX_REVIEW_GATE=off.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/afk-skills:afk-codex-reviewfrom afk-skills
npx claudepluginhub alvinshenssw/afk --plugin afk-skills13 skills in this plugin
/afkafk: Part of the afk pipeline. Execute an operator-supplied, pre-reviewed issue/PR scope autonomously through the full pipeline. Requires explicit scope; never pick tracker work. Triggers include "/afk", "AFK mode", "go AFK on …"./afk-agent-relayafk-agent-relay: Part of the afk pipeline. Development-time context compression and raw-request scoping through external models. Triggers include "/afk-agent-relay", "compress context", "relay brief", "scope this"./afk-claude-reviewafk-claude-review: Part of the afk pipeline. Independent read-only Claude review, a fallback role when Claude did not implement the change. Triggers include "/afk-claude-review", "run claude review", "claude gate"./afk-deepseek-reviewafk-deepseek-review: Part of the afk pipeline. Independent read-only DeepSeek review, an optional external role. Triggers include "/afk-deepseek-review", "run deepseek review", and "DeepSeek external gate"./afk-gemini-reviewafk-gemini-review: Part of the afk pipeline. Independent read-only Gemini review, an optional external role. Triggers include "/afk-gemini-review", "run gemini review", and "Gemini external gate"./afk-glm-reviewafk-glm-review: Part of the afk pipeline. Independent read-only GLM review, a fallback external role. Triggers include "/afk-glm-review", "run glm review", "glm gate", and "GLM external gate".