Claudex-loop docs

Claudex-loop documentation

Claudex-loop is a Claude Code plugin in which two rival AI models — Claude and OpenAI Codex — harden your plan before a line of code exists, then swap jobs to build it. It exists because the model that wrote a plan can't be trusted to grade it.


Documentation

Section What's inside
Key concepts Every term the docs and skills use, defined once
Quickstart Prerequisites, install (plugin or manual), first run
The four phases The mental model: recon → interrogate → review → build, and the two artifacts
Codex mechanics The verified CLI invocations, sandbox flags, and session handling
Codex invocation and the sandbox, in plain language The same machinery explained for non-specialists
Run a full loop End-to-end walkthrough of /claudex-loop
Review an existing plan Standalone /codex-review — the argument without the interview
Delegate a build to Codex Standalone /codex-build — Codex writes, Claude verifies
Skills and tunables Every skill, tunable, default, and file the loop touches
Common issues Symptom → cause → fix, ordered by frequency

New here? Start with the quickstart, then read the four phases.


Keeping these docs true

  • Same-change rule: a change to a skills/*/SKILL.md, a manifest, or the README updates the docs page that tracks it in the same commit. Each page names its tracked file(s) in a note at the top.
  • The three SKILL.md files are the source of truth; these docs explain them and must never contradict them. Commands (sandbox flags, redirects, timeouts) are copied verbatim — a paraphrased command is a wrong command.
  • After any doc edit, re-check cross-links, terminology (say "Phase", not "Act" — except the literal ## Act 3 — Build log heading), and the no-stubs rule.

Key concepts

Every term the docs use without re-explaining it. Definitions are grouped by domain.

This page tracks the three skills/*/SKILL.md files — update it when a term changes there.

The loop

Claudex-loop — The four-phase workflow (recon → interrogate → review → build) that hardens an implementation plan with a rival AI model before any code is written. Also the name of the main skill (/claudex-loop) and of the plugin that ships all three skills. Formerly named crucible, and before that grill-me-codex — old trigger phrases still work.

Phase — One of the four stages of the loop: Phase 0 (RECON), Phase 1 (INTERROGATE), Phase 2 (REVIEW), Phase 3 (BUILD, optional). "Phase" is the canonical term in all docs.

Act — Legacy name for a phase, preserved in one literal string: codex-build appends its build transcript under the heading ## Act 3 — Build in the log file. Docs say "Phase"; the log heading stays Act because the skill writes that exact string.

Round — One Codex review pass plus Claude's response to it. Phase 2 runs rounds until VERDICT: APPROVED or the MAX_ROUNDS cap.

Verdict — The mandatory last line of every Codex review reply: exactly VERDICT: APPROVED (plan is sound enough to implement) or VERDICT: REVISE (material problems remain).

Deadlock — The loop hit MAX_ROUNDS without an APPROVED verdict. This is a legitimate outcome: the skill lists each unresolved point plus Claude's counter-position and hands the tie to you. A flagged disagreement beats a fake "approved".

Convergence — The finding count dropping to zero across rounds, ending in VERDICT: APPROVED. The first real run converged 26 → 15 → 12 → 2 → 0 over five rounds.

The invariant — Whoever made the thing never checks the thing. Plan by Claude → attacked by Codex. Code by Codex → reviewed by Claude. Code by Claude → inspected by Codex. It holds in every path of the loop.

Phase 0 — RECON

Brownfield — The working directory holds real source code. Recon explores the codebase and living docs.

Greenfield — Empty directory, fresh scaffold, or a brand-new project with no repo. Research replaces codebase recon: prior art, default stack, known pitfalls.

Research gate — One question at kickoff, when external research would help: pick none (Claude's knowledge only), web (a few targeted searches), or deep (a multi-agent deep-research workflow). Pre-answerable with the research tunable.

Skill inventory scan — Part of recon on both terrains: enumerate installed skill packs on the Claude side (~/.claude/skills/) and the Codex side (~/.agents/skills/), and ledger any that match the task's domain as proposed toolchain entries. Nothing loads unless the plan's ## Toolchain section names it and survives review.

Assumptions Ledger — The output of Phase 0: everything Claude resolved on its own, each entry with its source (code path, doc, research finding, or convention). Presented once as a single batch; you confirm or correct in one reply. Anything unmarked is treated as confirmed.

Phase 1 — INTERROGATE

Decision Map — A visible checklist of the genuinely open decisions, split into load-bearing and cosmetic tiers. Updated as questions resolve so you can watch convergence.

Load-bearing decision — A decision where a wrong answer costs a migration, a rewrite, a security hole, or user trust (schema, auth, data model, concurrency, money, public API). Asked one at a time, each with why it matters, a committed recommendation, and what breaks if we guess wrong.

Cosmetic decision — Cheap to change later: renameable, refactorable, swappable. Presented as one batch of recommendations; you veto by exception, and silence means accepted.

Escape hatch — Saying "accept all remaining recommendations" at any point. Claude locks every open decision at its recommended answer, logs them as such in the plan, and proceeds.

Docs-aware mode — Interview behavior that turns on automatically when recon finds CONTEXT.md or ADRs: enforce the glossary, pin down loose terms, probe blurry boundaries with scenarios, and verify behavioral claims against the source.

Phase 2 — REVIEW

Adversarial review — Codex reviews the locked plan with instructions to be skeptical and specific: security holes, race conditions, missing edge cases, schema conflicts, wrong assumptions, observability gaps, simpler alternatives — each with a one-line fix.

Read-only sandbox — The Codex execution mode used for every review round: -s read-only on the first call, -c sandbox_mode="read-only" on every resume. Codex can read the repo and the plan but cannot write a file. See Codex mechanics for why the two flags differ.

Session resume / thread_id — Codex sessions persist. Round 1 emits a {"type":"thread.started","thread_id":"..."} line; later rounds resume that exact thread so the reviewer remembers its prior findings and attacks its own accepted fixes. Always resume by explicit thread_id, never --last.

Arbitration — Claude's job after each REVISE: accept the critiques worth acting on, reject the rest with a logged reason. Codex advises; Claude decides; the log records both.

Phase 3 — BUILD

Role flip — In Phases 0–2 Claude writes and Codex critiques read-only. In Phase 3 the jobs swap in one of two directions, and the rival model always grades the result.

codex-build — The skill for the Codex-builds direction: Codex implements the frozen spec with full write access, Claude reads the entire diff like a contributor PR and runs the proof itself.

Cross-inspection — The Claude-builds direction's check: a fresh read-only Codex session (a new thread, not the Phase 2 thread) reviews the finished diff against the plan. On by default; skipping requires an explicit, logged opt-out (inspect=off).

Spec — The frozen, already-reviewed plan that codex-build implements (SPEC_FILE, default PLAN.md). Codex starts with zero session context, so everything it needs must be in the spec and the prompt contract.

Proof command (PROOF_CMD) — The exact test or verify command whose passing output counts as proof the build works. Claude runs it itself; Codex's pasted output does not count.

Fix loop — Bounded iteration after a failed verification: Claude resumes the same Codex session with an exact fix list, up to MAX_FIX_ROUNDS (default 2), then takes over and finishes directly.

Clean-tree gate — git status -sb must be clean before codex-build launches. Codex writes with full access; a dirty tree means its diff cannot be isolated or cleanly reverted.

Human gate — A point where only you can move the loop forward. There are four: confirming the ledger, answering the interview, signing off the converged plan, and approving the final diff.

Artifacts

PLAN.md — The locked plan: goal, approach, key decisions, toolchain, assumptions, risks, out-of-scope bounds. The what. Configurable via PLAN_FILE.

PLAN-REVIEW-LOG.md — The append-only argument transcript: every round's critique verbatim, Claude's responses, rejections with reasons, build rounds, inspection findings. The why, and the loop's primary deliverable. Configurable via LOG_FILE.

CONTEXT.md — A project glossary and nothing else: one canonical term per concept, banned synonyms on a Not: line. Created lazily on the first settled term. Multi-domain repos use a root CONTEXT-MAP.md pointing to per-context glossaries. Format: skills/claudex-loop/CONTEXT-FORMAT.md.

ADR (Architecture Decision Record) — A short record in docs/adr/ of a decision that passes a three-part test: expensive to reverse, puzzling without context, and a genuine trade-off. A paragraph is a complete ADR. Format: skills/claudex-loop/ADR-FORMAT.md.

Tooling

Codex CLI — OpenAI's codex command-line agent, version ≥ 0.130, authenticated once via codex login with any ChatGPT account. The loop drives it headlessly through codex exec and codex exec resume.

Tunable — A named variable you can pass when invoking a skill (for example rounds=3) to override a default. The full list lives in Skills and tunables.

Plugin vs. manual install — Plugin install gives namespaced commands (/claudex-loop:claudex-loop) and automatic updates; manual copy into ~/.claude/skills/ gives bare names (/claudex-loop). Intent triggering ("claudex this plan") works either way.

Legacy skills — grill-me-codex and grill-with-docs-codex, the predecessors, preserved in legacy/. /claudex-loop does not need them; copy them only if you want them.

Quickstart

Install the plugin and run your first loop. Setup takes about 5 minutes; a real loop takes as long as your plan deserves.

This page tracks the README's Install and Prerequisites sections and skills/claudex-loop/SKILL.md — update both together.

Prerequisites

Claude Code

The skills run inside Claude Code (CLI, desktop app, or IDE extension).

Verify:

claude --version

Codex CLI ≥ 0.130

Older CLIs error on the default gpt-5.5 model.

Install or update:

npm install -g @openai/codex@latest

Verify:

codex --version

The printed version must be 0.130 or higher.

Codex authentication

One-time login with any ChatGPT account (Free, Plus, Pro, or Max):

codex login

Warning: Do not pin a model in ~/.codex/config.toml or via -m. ChatGPT-account auth rejects gpt-5.x-codex variants with a 400. The skills use your config default and echo the active model at kickoff so you can veto before a round burns.

Install

Option A — Plugin (recommended)

Inside Claude Code:

/plugin marketplace add chaseai-yt/claudex-loop
/plugin install claudex-loop@claudex-loop

Verify: the skills appear namespaced — /claudex-loop:claudex-loop, /claudex-loop:codex-review, /claudex-loop:codex-build. Enable auto-update for the marketplace in the /plugin menu and new versions pull in on their own.

Note: Installed back when this repo was crucible? The old marketplace source keeps working (GitHub redirects), but the plugin name changed — re-add with the commands above to pick up the new namespace.

Option B — Manual copy

# macOS / Linux
cp -r skills/* ~/.claude/skills/
# Windows (PowerShell)
Copy-Item -Recurse skills\* $env:USERPROFILE\.claude\skills\

Verify: the skills answer to bare names — /claudex-loop, /codex-review, /codex-build. Update by git pull + re-copy.

Intent triggering works with either install: say "claudex this plan" (or even the legacy "crucible this plan") and the right skill fires.

First run

  1. Open Claude Code in the project you want to plan for (a brand-new empty directory works too — the loop detects greenfield and researches instead of reading code).

  2. Invoke the loop with the task:

    /claudex-loop add magic-link auth to the API

  3. Claude echoes the resolved tunables and the active Codex model, then scouts alone (Phase 0). Your first job is one reply: confirm or correct the Assumptions Ledger it presents as a single batch.

  4. Answer the interview (Phase 1). Load-bearing questions arrive one at a time, each with a recommendation and a what-breaks-if-we-guess-wrong line; cosmetic decisions arrive as one batch you veto by exception. Say "accept all remaining recommendations" at any point to lock everything at the recommended answers.

  5. Watch the review (Phase 2). The locked plan goes to PLAN.md and Codex attacks it in a read-only sandbox, round after round, until its reply ends in VERDICT: APPROVED — or the round cap (default 5) trips and the disagreement is handed to you instead. No input needed from you during the rounds.

  6. Sign off. On approval you get the final plan, what the argument improved, and a choice: Codex builds it, Claude builds it, or stop here. No code is written until you answer.

What happened

Claude reconned your terrain and burned no interview questions on things the code or research already answered. You locked intent through a tiered interview. A rival model from a different provider then attacked the locked plan with session memory across rounds, Claude arbitrated each critique, and the whole argument was preserved. You now have two artifacts at the repo root: PLAN.md (the plan) and PLAN-REVIEW-LOG.md (every finding, every response, every rejection with its reason).

Next steps

The four phases

Claudex-loop is a workflow in which two rival AI models — Claude Code and OpenAI Codex — harden an implementation plan before any code exists, then swap jobs to build it. Each phase kills one specific failure mode of AI-assisted coding.

This page tracks skills/claudex-loop/SKILL.md — update both together.

The problem it solves

AI-assisted coding fails in two gaps. The first is between you and the model: do you agree on what to build? The second is between the model and its own output: is the plan actually correct — and how would you know? The model that wrote a plan cannot be trusted to grade it; that is an echo chamber.

The loop closes both gaps. Claude locks intent with you through a structured interview, then OpenAI Codex — a cross-provider rival with no stake in the plan — attacks the locked plan round after round until it finds nothing else wrong. If code gets written, the rival model grades the diff, whichever model wrote it.

The mental model

Think of it as a pipeline with four human gates:

Phase 0  RECON        Claude scouts alone         → you confirm the Assumptions Ledger
Phase 1  INTERROGATE  Claude questions you        → you answer; plan locks as PLAN.md
Phase 2  REVIEW       Codex attacks, read-only    → you sign off the converged plan
Phase 3  BUILD (opt)  one model writes,           → you approve the final diff
                      the other grades the diff

One invariant holds across all four: whoever made the thing never checks the thing. Plan by Claude → attacked by Codex. Code by Codex → reviewed by Claude. Code by Claude → inspected by Codex. No model grades its own work in any path.

Codex is read-only through Phases 0–2 and never touches a file. No code is written until you sign off the converged plan.

Phase 0 — RECON

Kills: interviewing blind. Claude scouts the terrain before asking you a single question, so the interview starts informed instead of generic.

Recon first detects the terrain:

  • Brownfield — the directory has real source code. Claude explores the architecture, relevant modules, existing patterns, and current schema/auth/infra, and loads living docs (CONTEXT.md, docs/adr/) if they exist.
  • Greenfield — nothing to read, so research carries the phase: prior art (how do existing tools solve this?), a reasonable default stack with one alternative, and the 3–5 known pitfalls of this class of project.

When external research would help, Claude opens the research gate: one question offering three tiers with a recommendation. none uses Claude's knowledge and the codebase only. web runs a handful of targeted searches — minutes, not a project, and the default recommendation for most greenfield work. deep launches a multi-agent deep-research workflow — heavy and token-expensive, reserved for high-stakes greenfield or unfamiliar tech, and the research prompt is shown for your sign-off before it launches. Passing research=none|web|deep at invocation skips the question.

Recon also runs a skill inventory scan on both benches — ~/.claude/skills/ for Claude, ~/.agents/skills/ for Codex — and records domain-matching skill packs in the ledger as proposed toolchain entries. Nothing loads unless the plan's ## Toolchain section names it and survives review.

Output: the Assumptions Ledger — one batch of everything Claude resolved on its own, each entry with its source. You confirm or correct in one reply; anything unmarked is treated as confirmed. This is the biggest time-save over a naive interview: no question is ever spent on something the repo or the research already answered.

Phase 1 — INTERROGATE

Kills: building the wrong thing. The interview locks intent — but only on decisions that are actually load-bearing. The governing principle: every question must justify its own existence.

The phase opens with a visible Decision Map splitting the open decisions into two tiers:

  • Load-bearing (asked one at a time) — wrong answer costs a migration, a rewrite, a security hole, or user trust. Every question ships in a fixed format: the question, why it matters, a committed recommendation (not a menu), and what breaks if we guess wrong. If that last line comes out weak, the question is cosmetic and gets demoted.
  • Cosmetic (one batch) — cheap to change later. Presented as recommendations with one-line rationales; you veto by exception, and silence means accepted.

The map updates as questions resolve, so you see convergence instead of wondering how many questions are left. At any point you can say "accept all remaining recommendations" — the escape hatch — and Claude locks everything at its recommended answer and logs it as such.

When Phase 0 found CONTEXT.md or ADRs, the interview runs docs-aware: it enforces the glossary, pins down loose terms before the conversation builds on them, probes blurry concept boundaries with concrete edge cases, and checks behavioral claims against the source rather than trusting either side.

Output: the plan is locked to PLAN.md and the log is initialized. Their shapes are below.

Phase 2 — REVIEW

Kills: a plan that sounds right but breaks. A different model attacks the locked plan — cross-model means no echo chamber.

Each round, Codex reviews PLAN.md in a read-only sandbox with instructions to find what breaks: security holes, race conditions, missing edge cases, schema conflicts, wrong assumptions, observability gaps, simpler alternatives — each with a one-line fix. Every reply ends with exactly one line: VERDICT: APPROVED or VERDICT: REVISE.

On REVISE, Claude arbitrates: it accepts the critiques worth acting on, rejects the bad ones with a logged reason, revises the plan, and resumes the same Codex session. Session continuity matters — the reviewer remembers its prior findings, won't re-litigate settled points, and attacks its own accepted fixes. Arbitration matters equally: caving to everything defeats the cross-model check, and ignoring everything defeats the point.

The loop always terminates at MAX_ROUNDS (default 5). Hitting the cap without approval is a deadlock, and the skill does not fake convergence — it lists each unresolved point with Claude's counter-position and hands you the tie. A flagged disagreement beats a false "approved".

On approval you get the final plan, a summary of what the argument improved, the round count, and the Phase 3 choice: Codex builds it, Claude builds it, or stop here.

The exact CLI invocations, sandbox flags, and their verified gotchas live in Codex mechanics.

Phase 3 — BUILD (optional)

Kills: grading your own work. You pick the builder, and the models swap jobs so the rival always grades the diff.

  • Codex builds — the codex-build skill runs with SPEC_FILE=PLAN.md and the same log. Codex gets full write access and implements the frozen spec end-to-end; Claude reads the entire diff like a contributor PR, runs the proof command itself (Codex's pasted output does not count), and iterates fixes through the same Codex session up to MAX_FIX_ROUNDS before taking over. Hard gates: clean git tree before launch, and commits are human-gated and Claude-authored — Codex never commits.
  • Claude builds — Claude implements directly, then a post-build cross-inspection runs by default: a fresh read-only Codex session (a new thread, so the reviewer sees the code cold rather than through its own plan critiques) reviews the diff against the plan, PR-style. Claude arbitrates each finding — accept and fix, or reject with a logged reason — capped at MAX_INSPECTION_ROUNDS (default 2). Skipping requires an explicit, logged opt-out (inspect=off); silent skipping is not allowed.

Either way, you approve the final diff before anything is committed.

The two artifacts

Every run leaves two files at the repo root.

PLAN.md — the what. Locked at the end of Phase 1 with this structure:

# Plan: <task>
_Locked via claudex-loop — by Claude + <user>_

## Goal
## Approach
## Key decisions & tradeoffs
## Toolchain          ← only when the skill inventory scan matched something
## Assumptions        ← the confirmed ledger, with sources
## Risks / open questions
## Out of scope

The ## Key decisions & tradeoffs section names the contestable choices explicitly so Codex has something to bite. The ## Toolchain section, when present, is reviewable like everything else — Codex should attack unused relevant skills and unjustified inclusions alike.

PLAN-REVIEW-LOG.md — the why. An append-only transcript of the whole argument: each round's critique verbatim under ## Round <n> — Codex, Claude's changes and rejections under ### Claude's response, the build transcript under ## Act 3 — Build (that heading is a literal string the codex-build skill writes — legacy naming), and inspection findings under ## Post-build inspection. With all phases run, one artifact tells the whole story: reconned → interrogated → reviewed → built → verified.

Two side artifacts can appear when the interview settles terms or big decisions: a CONTEXT.md glossary and docs/adr/ records. Both are created lazily and follow the formats in skills/claudex-loop/CONTEXT-FORMAT.md and skills/claudex-loop/ADR-FORMAT.md.

What this is not

  • Not a code reviewer. Reviewing already-written code that the loop did not build is the Codex plugin's /codex:review, not this.
  • Not for trivial changes. The loop is a deliberate, high-stakes tool — auth, schemas, concurrency, migrations, payments, greenfield architecture. For a ~20-line obvious edit, just make the edit.
  • Not autonomous. Four human gates are structural. The loop never writes code, commits, or skips an inspection without your explicit say-so.

Related pages

Codex mechanics

How the skills drive the Codex CLI headlessly: the exact invocations, the sandbox flags, session resumption, and the failure modes each detail exists to prevent. Every command here was verified end-to-end (review loop 2026-06-04; build-side resume behavior 2026-07-08) — the skills say "do not improve the invocations", and this page explains why each part is load-bearing.

This page tracks skills/codex-review/SKILL.md, skills/claudex-loop/SKILL.md (Phase 2), and skills/codex-build/SKILL.md — update both together. Commands here must stay byte-identical to the skills.

What it is

Claude Code talks to Codex through two subcommands: codex exec (fresh session) and codex exec resume <thread_id> (continue an existing session). Both run non-interactively, stream JSONL events on stdout, and write Codex's final message to a file via -o. The skills orchestrate these calls; you never run them by hand.

Why sessions persist

A fresh reviewer each round would re-litigate settled points and never notice its own accepted fixes going stale. Resuming the same thread gives the reviewer memory: it checks whether prior findings were addressed and flags anything new. The build fix loop resumes for the same reason — Codex keeps its implementation context, which is cheaper and better than a fresh run.

The exception is deliberate: the post-build cross-inspection uses a new thread, so the inspector sees the code cold instead of through its own plan critiques.

The review invocation (Phase 2, read-only)

Round 1 creates the session and captures the thread id:

codex exec -s read-only --json -o /tmp/codex-verdict.txt "$(cat REVIEW_PROMPT)" \
  < /dev/null 2>/dev/null | grep '"type":"thread.started"'

Rounds 2 and later resume the same session:

# resume REJECTS -s. Force read-only via -c sandbox_mode, or Codex inherits
# config.toml (possibly danger-full-access) and could WRITE files.
codex exec resume "$THREAD_ID" -c sandbox_mode="read-only" --json \
  -o /tmp/codex-verdict.txt \
  "I revised the plan. Re-review PLAN.md — check whether your prior findings are addressed and flag anything new. End with VERDICT: APPROVED or VERDICT: REVISE." \
  < /dev/null 2>/dev/null >/dev/null

(The quoted resume prompt above is the claudex-loop variant. codex-review uses a slightly shorter prompt — "I revised the plan. Re-review PLAN.md. Same rules. …" — with identical flags.)

Success is confirmed by two signals together: the verdict file exists, and a {"type":"thread.started","thread_id":"..."} line appeared (round 1). If neither appears, the run failed — usually auth or model — and the skill stops and tells you instead of retrying silently.

The build invocation (Phase 3, full access)

codex-build inverts the sandbox on purpose — Codex is the builder:

codex exec --yolo --json -o /tmp/codex-build.txt - <"$P" 2>/dev/null | grep '"type":"thread.started"'

The prompt is a contract written to a temp file $P (goal, spec pointer, key paths, constraints, non-goals, proof command, report format) and fed via stdin (- <"$P"), which avoids shell-quoting bugs and doubles as the stdin-EOF fix described below.

Fix rounds resume with the long flag:

# resume has no --yolo and no -C: run from the repo dir and spell the long flag,
# or Codex inherits config.toml's sandbox (possibly read-only) and can't write.
codex exec resume "$THREAD_ID" --dangerously-bypass-approvals-and-sandbox --json \
  -o /tmp/codex-build.txt - <"$P2" 2>/dev/null >/dev/null

The load-bearing details

Each of these looks removable and is not.

-s read-only vs. -c sandbox_mode="read-only"

codex exec accepts -s read-only. codex exec resume rejects -s ("unexpected argument"). Without -c sandbox_mode="read-only" on the resume, Codex inherits the sandbox default from ~/.codex/config.toml — which may be danger-full-access with approval_policy="never" — and a supposedly read-only reviewer could write files mid-loop. The skills call this the single most important safety line, verified 2026-06-04.

The mirror image applies on the build side: resume has no --yolo, so fix rounds must spell --dangerously-bypass-approvals-and-sandbox, or Codex inherits a possibly read-only sandbox and cannot write the fixes.

< /dev/null on every call

codex exec reads stdin in addition to the prompt argument. Under a non-interactive driver — Claude Code's Bash tool, CI, any non-TTY pipeline — it blocks forever waiting for stdin EOF: a silent hang at ~0% CPU. The redirect gives it immediate EOF. The build side achieves the same by feeding the prompt file through stdin.

The 10-minute timeout guard

Every codex exec and codex exec resume runs with a ceiling so a future stall fails loud instead of hanging silently. Via Claude Code's Bash tool that is timeout: 600000 on the tool call — the default 2-minute tool timeout is too short and would kill real reviews mid-run. In a plain shell, prefix with timeout 600 (Linux / Git Bash) or gtimeout 600 (macOS via coreutils — stock macOS has no timeout). A tripped ceiling is treated as a failed run: stop and surface it, never retry blind.

For builds that are clearly more than 10 minutes of work (multi-file features, migrations, image generation), the skill launches in the background instead and reads the -o file when the run exits — and never kills a quiet background run early, because Codex builds are legitimately slow.

--json and -o (and never parsing the stream for content)

--json streams JSONL events; the only thing parsed from it is the thread.started line, to capture THREAD_ID. The actual critique or build report is read from the -o file (/tmp/codex-verdict.txt, /tmp/codex-build.txt) — Codex's last message, clean. Parsing the JSONL stream for content is explicitly banned in the skills.

2>/dev/null

Stderr carries cosmetic MCP/auth noise on some setups. Suppressing it is intentional; success is judged by the verdict file plus the thread.started line, not by a quiet stderr.

Explicit thread_id, never --last

Parallel Codex sessions make --last grab the wrong thread. Worse, resume with a missing or garbage id can silently fall back to the most recent session instead of erroring (observed 2026-07-08) — a wrong-target resume looks exactly like a successful one. The skills capture the id from round 1 and echo it visibly into every resume command.

No model pinning

The skills never pass -m. ChatGPT-account auth returns 400 on pinned gpt-5.x-codex variants, and the user's ~/.codex/config.toml default is used instead. To keep that visible, every skill echoes the active model before the first round — the model line from config.toml, or "CLI default" if absent — so you can veto before a round burns.

Working directory

Build runs launch from the target repo's root so neither call needs -C — which is just as well, because resume does not support -C at all.

Interaction with the rest of the loop

The review invocation is shared by codex-review and claudex-loop Phase 2 — same prompt, same flags, same loop bookkeeping. codex-build reuses the session-resume and output-capture mechanics with the sandbox inverted. The post-build cross-inspection reuses the read-only invocation with a fresh thread. One set of verified mechanics, three skills.

Related pages

Codex invocation and the sandbox, in plain language

How Claude actually calls Codex, and where the "read-only" protection really comes from. This is the plain-language companion to Codex mechanics — that page carries the exact commands and their verification dates; this one explains the machinery so a non-specialist can follow it. Same facts, different depth.

This page tracks Codex mechanics (and through it the three skills/*/SKILL.md files) — update both together.

How Codex is invoked

Codex is not called through an API. It is a command-line program (codex) installed on your machine, and Claude runs it like any other shell command. The mode is codex exec — Codex's headless mode: no interactive UI, one prompt in, one answer out, then the process exits.

The first review round looks like this:

codex exec -s read-only --json -o /tmp/codex-verdict.txt "$(cat REVIEW_PROMPT)" \
  < /dev/null 2>/dev/null | grep '"type":"thread.started"'

Each part has one job:

  • The prompt — the review instructions — goes in as an argument.
  • --json streams status events. Claude wants exactly one of them: the line {"type":"thread.started","thread_id":"..."}. That thread_id is the session's name tag.
  • -o /tmp/codex-verdict.txt tells Codex to write its final answer — the critique — to a file. Claude reads the file; it never parses the event stream for content.
  • < /dev/null prevents a hang. codex exec also reads stdin, and under a non-interactive driver (Claude Code's Bash tool, CI) it would wait forever for input at ~0% CPU. The redirect gives it an instant "end of input."
  • Every call runs with a 10-minute timeout, so a stall fails loudly instead of hanging silently.

How later rounds keep the same "mind"

Codex stores each conversation on disk under its thread_id. For round 2 and on, Claude does not start fresh — it resumes that exact conversation:

codex exec resume "$THREAD_ID" -c sandbox_mode="read-only" --json \
  -o /tmp/codex-verdict.txt \
  "I revised the plan. Re-review PLAN.md — check whether your prior findings are addressed and flag anything new. End with VERDICT: APPROVED or VERDICT: REVISE." \
  < /dev/null 2>/dev/null >/dev/null

Because it is the same thread, Codex remembers its earlier complaints and can check whether the fixes are real instead of re-litigating settled points.

The id is always passed explicitly — never --last. With parallel sessions, --last can grab the wrong thread, and a resume with a missing or garbage id can silently fall back to the most recent session instead of erroring (observed 2026-07-08). A wrong-target resume looks exactly like a successful one.

One deliberate exception: the post-build cross-inspection starts a new thread on purpose, so the inspector sees the finished code cold, with no bias from its own plan critiques.

How the sandbox is created

The skills do not build the sandbox — the Codex CLI has one built in, enforced at the operating-system level (Seatbelt on macOS, Landlock/seccomp on Linux). The skills' job is only to pass the right flag so the sandbox is in the right mode:

  • Review rounds: -s read-only. Codex can read any file in the repo, but the OS blocks every write. That is why the reviewer "can read your code but cannot touch it."
  • Build phase (codex-build): --yolo, which disables the sandbox and approval prompts. Codex gets full write access on purpose — it is the builder now. The safety moves to gates instead: a clean git tree before launch, Claude reading the whole diff after, and a human approving before any commit.

The trap the skills defend against

codex exec resume rejects the -s flag. If you resume without saying anything about the sandbox, Codex falls back to whatever ~/.codex/config.toml says — and many setups have that set to danger-full-access with approval_policy="never". Then your "read-only reviewer" could quietly write files mid-loop. So every resume forces the mode a different way:

codex exec resume "$THREAD_ID" -c sandbox_mode="read-only" ...

The skills call this the single most important safety line, verified 2026-06-04.

The same trap mirrors on the build side: resume has no --yolo, so fix rounds must spell the long flag --dangerously-bypass-approvals-and-sandbox, or Codex inherits the config sandbox — possibly read-only — and silently fails to write its fixes.

Related pages

  • Codex mechanics — the exact invocations, byte-identical to the skills, with every load-bearing detail
  • Common issues — the same traps, organized by symptom
  • The four phases — where each invocation sits in the workflow

Run a full loop

Take a task from idea to a cross-model-hardened plan — and optionally to reviewed, proof-tested code — with /claudex-loop. Use this when the task is high-stakes: auth, schema, concurrency, migrations, payments, or greenfield architecture.

This page tracks skills/claudex-loop/SKILL.md — update both together.

Prerequisites

  • The quickstart setup: Codex CLI ≥ 0.130, codex login done, skills installed.
  • A task worth the ceremony. For a trivial change, skip the loop and just make the edit.
  • If you already have a locked plan and only want the Codex argument, use Review an existing plan instead.

Steps

  1. Invoke the skill with the task. Add tunables inline if you want non-defaults:

    /claudex-loop rounds=3 research=web build a webhook delivery system with retries

    Claude echoes the resolved tunables and the active Codex model (read from ~/.codex/config.toml, or "CLI default"). Object now if the model is wrong — before any round burns.

  2. Answer the research gate if Claude asks it (it does when external research would help and you didn't pass research=). Pick none, web, or deep; Claude recommends one based on stakes. If you pick deep, Claude drafts the research prompt — the topic framing plus the 3–5 questions the ledger needs answered — and waits for your sign-off before launching the multi-agent workflow.

  3. Confirm the Assumptions Ledger in one reply. Every entry cites its source (code path, doc, research finding, or convention). Correct what's wrong; anything unmarked is treated as confirmed. Corrections that open real questions get promoted into the Decision Map.

  4. Answer the load-bearing questions, one at a time. Each arrives with why it matters, a committed recommendation, and the concrete failure if you guess wrong. The Decision Map updates as you go.

  5. Veto the cosmetic batch by exception. All cheap-to-change decisions arrive at once as recommendations; silence accepts them. At any point, "accept all remaining recommendations" locks everything open at the recommended answer.

  6. Wait out the review rounds. Claude writes PLAN.md, initializes PLAN-REVIEW-LOG.md, and sends the plan to Codex in a read-only sandbox. On each VERDICT: REVISE, Claude arbitrates the findings, revises, and resumes the same Codex session. You do nothing here — the log captures everything.

  7. Sign off at Resolution. On VERDICT: APPROVED you get the final plan, a 3-bullet summary of what the loop improved, and the round count. On deadlock (round cap hit) you get each unresolved point plus Claude's counter-position, and you break the tie. Then choose: Codex builds it, Claude builds it, or stop here.

  8. If you chose a builder, the models swap jobs:

    • Codex builds — the codex-build skill takes over with SPEC_FILE=PLAN.md and the same log; see Delegate a build to Codex for its gates and flow.
    • Claude builds — Claude implements directly, then a fresh read-only Codex session cross-inspects the finished diff against the plan (on by default; skipping requires the explicit inspect=off opt-out, which gets logged).
  9. Approve the final diff. Whichever model built, you see the summary, the files changed, and the proof-test output before anything is committed. Claude writes the commit — never Codex — and only on your yes.

Verification

A completed run leaves, at the repo root:

  • PLAN.md — goal, approach, key decisions, assumptions with sources, risks, out-of-scope bounds (plus a ## Toolchain section when the skill inventory scan matched something).
  • PLAN-REVIEW-LOG.md — every round's critique verbatim, Claude's responses and rejections with reasons, and (if you built) the build transcript under ## Act 3 — Build and any ## Post-build inspection findings.

If you built: the proof command passed under Claude's own run, and the diff you approved matches git diff against the pre-build commit.

Troubleshooting

  • Codex round fails immediately (no verdict file, no thread.started line) — auth or model problem. See Common issues; usually codex login expired or a pinned model 400s.
  • The interview feels endless — say "accept all remaining recommendations". The skill also offers the escape hatch itself when the load-bearing tier exceeds ~8 questions.
  • Round cap hit without approval — not a failure. Read the unresolved points in the log, break the tie yourself, and either accept the plan as-is or re-run the review after your edit.

Review an existing plan

Put a plan you already have through the adversarial Codex argument with /codex-review — no requirements interview first. Use this when intent is already clear and you only want the cross-model stress-test before implementation.

This page tracks skills/codex-review/SKILL.md — update both together.

Prerequisites

  • The quickstart setup: Codex CLI ≥ 0.130, codex login done, skills installed.
  • A plan, or at least a clear idea Claude can draft into one. If you still need the interview, use Run a full loop instead.
  • High enough stakes to justify the rounds: auth, data models, concurrency, migrations, payments. Skip it for obvious or cheap work.

Steps

  1. Invoke the skill, with tunables if you want non-defaults:

    /codex-review rounds=3 migrate sessions from Redis to Postgres

    Claude confirms the scope in one line, echoes the resolved tunables and the active Codex model, and proceeds — there are no round-by-round approvals.

  2. Claude plans. It reads the relevant code, thinks through the approach, and writes PLAN.md with the fixed structure: Goal, Approach, Key decisions & tradeoffs (named explicitly so Codex has something to bite), Risks / open questions, Out of scope. It shows you the plan inline and initializes PLAN-REVIEW-LOG.md. If you brought a written plan, it is loaded into PLAN.md instead.

  3. The loop runs. Round 1 launches a fresh read-only Codex session and captures its thread_id; each later round resumes that same session so the reviewer remembers its earlier critiques. On each VERDICT: REVISE, Claude arbitrates — revises what's worth acting on, rejects the rest with logged reasons — and re-submits. The loop always terminates: VERDICT: APPROVED or the MAX_ROUNDS cap (default 5).

  4. Sign off. On approval you get the final plan, a 3-bullet summary of what the argument improved, and the round count, plus the question: implement now with Codex (/codex-build), implement with Claude, or stop here. On deadlock you get each point Codex still flags and Claude's counter-position, and you break the tie. No code is written during the loop.

Verification

  • PLAN.md at the repo root reflects the final revised plan.
  • PLAN-REVIEW-LOG.md holds every round: ## Round <n> — Codex with the critique verbatim, followed by ### Claude's response with what changed, what was rejected, and why. The log is the deliverable — if it's thin, something was skipped.

Troubleshooting

  • Run fails with no verdict file and no thread.started line — auth or model error; the skill surfaces it rather than retrying. See Common issues.
  • Codex approves suspiciously fast — check that ## Key decisions & tradeoffs actually names contestable choices. A vague plan gives the reviewer nothing to bite.
  • You wanted code review, not plan review — reviewing already-written code is the Codex plugin's /codex:review, not this skill.

Delegate a build to Codex

Hand a frozen spec to Codex to implement with full write access, while Claude stays the spec-writer and reviewer — /codex-build. Use it right after a plan survives the loop, or standalone for anything that reads as a work order: refactors, mechanical migrations, bug fixes with a known repro, test writing.

This page tracks skills/codex-build/SKILL.md — update both together.

Prerequisites

  • The quickstart setup: Codex CLI ≥ 0.130, codex login done, skills installed.
  • A frozen spec. A plan that survived /claudex-loop or /codex-review is the ideal input. Codex starts with zero session context — everything it needs must be in the spec and the prompt.
  • A clean git tree. Non-negotiable; the skill stops on a dirty tree.
  • Not for: tiny edits (~<20 lines — delegation overhead loses), design work (writing the spec forces decisions → run the loop first), reviewing existing code (/codex:review), or anything needing Claude-session tools (MCP, secrets, browser).

Steps

  1. Invoke the skill:

    /codex-build

    Or let the loop chain into it by picking "Codex builds it" at Resolution — then SPEC_FILE=PLAN.md and the shared log carry over automatically.

  2. Pass the gates. Claude verifies the spec exists and reads as a work order (goal, concrete steps, bounds), checks git status -sb for a clean tree, echoes the resolved tunables and active Codex model, and confirms scope in one line. If the spec has no proof command, Claude asks one question to get PROOF_CMD before launching.

  3. Codex builds. Claude writes the prompt contract to a temp file — goal, spec pointer, key paths, constraints, non-goals, the proof command, and the required report format — and launches Codex with full write access (--yolo), capturing the thread_id. Long builds run in the background; when a background run finishes, Claude's next message opens with a loud 🔔 CODEX FINISHED banner before any verification output.

    Note: Codex has a native image-generation tool in codex exec sessions (ChatGPT-account backed, verified 2026-07-08), so a spec may include "generate these image assets yourself" steps with exact paths, dimensions, and style.

  4. Claude verifies — always, never delegated. Claude reads the full git diff like a contributor PR (correctness, spec fidelity, style match, nothing touched outside scope) and runs PROOF_CMD itself. Codex's pasted output does not count as proof. The round is logged under ## Act 3 — Build in the log file.

  5. Fix loop if needed. Problems found → Claude resumes the same Codex session with an exact fix list (exact problem, exact file, proof expected), up to MAX_FIX_ROUNDS (default 2). After that, Claude stops delegating, takes over, finishes the fixes directly, and logs the takeover.

  6. Approve the diff. Claude presents a 3-bullet summary, the files-changed list, the proof output verbatim, rounds used, and any spec deviations, then asks: "Codex built it, proof passes, diff reviewed. Commit?" Commit only on your yes — and Claude writes the commit, never Codex.

Verification

  • git diff shows only in-scope changes, and git status -sb shows nothing unexpected.
  • PROOF_CMD passes when you (or Claude) run it — not just in Codex's report.
  • The log file carries ## Act 3 — Build with each round's Codex report summary and Claude's verdict. Chained after the loop, one log now tells the whole story: reconned → interrogated → reviewed → built → verified.

Troubleshooting

  • Skill refuses to launch: dirty tree — commit or stash first. Codex writes with full access; a dirty tree means its diff can't be isolated or cleanly reverted.
  • Fix rounds can't write files — the resume call must use --dangerously-bypass-approvals-and-sandbox (resume has no --yolo); without it Codex inherits config.toml's sandbox, possibly read-only. The skill handles this — see Codex mechanics if you're debugging a modified setup.
  • Build seems hung — foreground calls carry a 10-minute ceiling; genuinely long builds belong in the background. Don't kill a quiet background run early — Codex builds are legitimately slow. More in Common issues.

Skills and tunables

The complete lookup: every skill, its invocation names, when to use it, and every tunable with its default.

This page tracks the frontmatter and tunables tables of the three skills/*/SKILL.md files — update both together.

The three skills

Skill Plugin name Bare name What it does
claudex-loop /claudex-loop:claudex-loop /claudex-loop The full four-phase loop: recon → interrogate → adversarial review → optional cross-model build
codex-review /claudex-loop:codex-review /codex-review Standalone Phase-2-style argument: Claude drafts/loads a plan, Codex attacks it read-only until approved or capped
codex-build /claudex-loop:codex-build /codex-build Standalone Phase-3-style delegation: Codex implements a frozen spec with write access, Claude verifies the diff and the proof

Plugin names apply after a plugin install; bare names after a manual copy. Intent triggering works with both ("claudex this plan", "have codex build this", legacy "crucible this plan").

Choosing between them

Situation Use
High-stakes task, intent not yet locked claudex-loop
Plan (or clear idea) already in hand, want the cross-model stress-test only codex-review
Frozen spec in hand, want it implemented and verified codex-build
Reviewing already-written code the loop did not build the Codex plugin's /codex:review — none of these
Trivial change, ~<20 lines none — just make the edit

Tunables

Pass tunables as key=value arguments at invocation, for example:

/claudex-loop rounds=3 research=web

Every skill echoes its resolved values (and the active Codex model) before starting, so you can veto before a round burns. rounds=3 sets MAX_ROUNDS.

claudex-loop

Var Default Meaning
MAX_ROUNDS 5 Hard cap on Phase 2 review rounds. The loop always terminates here.
PLAN_FILE PLAN.md Where the locked plan lives (repo root).
LOG_FILE PLAN-REVIEW-LOG.md The append-only argument transcript — the deliverable.
research ask none / web / deep — pre-answers the Phase 0 research gate. deep launches the multi-agent deep-research workflow (its prompt is still shown for sign-off first).
inspect on Post-build cross-inspection of Claude-built code by a fresh read-only Codex session. off skips it — logged as an explicit opt-out, never silently.
MAX_INSPECTION_ROUNDS 2 Cross-inspection cap: initial post-build review plus one reinspection after accepted fixes.

codex-review

Var Default Meaning
MAX_ROUNDS 5 Hard cap on review rounds. The loop always terminates here.
PLAN_FILE PLAN.md Where the evolving plan lives (repo root).
LOG_FILE PLAN-REVIEW-LOG.md Append-only transcript of the argument — the artifact.

codex-build

Var Default Meaning
SPEC_FILE PLAN.md The frozen spec Codex implements.
MAX_FIX_ROUNDS 2 Fix iterations via session resume before Claude takes over and finishes directly.
LOG_FILE PLAN-REVIEW-LOG.md Append-only build transcript. If it exists (earlier phases ran), the skill appends ## Act 3 — Build; else it creates the file.
PROOF_CMD from spec Exact test/verify command Codex must run as proof. If the spec lacks one, the skill asks you one question before launching.

Requirements (all skills)

Requirement Check Notes
Codex CLI ≥ 0.130 codex --version Older CLIs error on the default gpt-5.5 model
Codex authenticated prior codex login Any ChatGPT account (Free/Plus/Pro/Max). Auth errors are surfaced, never silently retried
No pinned model no -m, no pin in ~/.codex/config.toml Pinned gpt-5.x-codex variants 400 on ChatGPT-account auth. The active model is echoed at kickoff

Files the skills read and write

File Written by Role
PLAN.md (or PLAN_FILE/SPEC_FILE) Claude The plan / frozen spec
PLAN-REVIEW-LOG.md (or LOG_FILE) Claude The full argument + build transcript
/tmp/codex-verdict.txt Codex (via -o) Last review message per round
/tmp/codex-build.txt Codex (via -o) Build report per round
CONTEXT.md / CONTEXT-MAP.md Claude (lazily) Project glossary — format in skills/claudex-loop/CONTEXT-FORMAT.md
docs/adr/NNNN-slug.md Claude (lazily) Decision records — format in skills/claudex-loop/ADR-FORMAT.md
docs/research/YYYY-MM-DD-<slug>-claudex-research.md Claude (deep tier only) The synthesized research brief, linked from the ledger and PLAN.md

Codex writes project files only inside codex-build (and its fix rounds). In every review and inspection it is read-only and writes nothing but its -o output file.

Legacy skills

legacy/ preserves the predecessors — grill-me-codex and grill-with-docs-codex. They are not installed by the plugin and /claudex-loop does not need them; copy them manually only if you want the old two-act flow. Their Act 1 is © Matt Pocock (MIT) — see the THIRD-PARTY-NOTICES.md beside each.

Common issues

The failures people actually hit, ordered by frequency. Most trace back to the Codex CLI's sharp edges — the skills already defend against all of them, so a hit usually means a stale CLI, broken auth, or a hand-modified invocation.

This page tracks the gotchas documented in the three skills/*/SKILL.md files — update both together.

A Codex round fails immediately — no verdict file, no thread.started line

Cause: Auth or model error. The three usual suspects: codex login never ran or expired; the CLI is older than 0.130 (errors on the default gpt-5.5 model); or a model is pinned that ChatGPT-account auth rejects.

Fix:

codex --version          # must be ≥ 0.130
npm install -g @openai/codex@latest
codex login

Then remove any gpt-5.x-codex pin from ~/.codex/config.toml (or any -m flag in a modified invocation).

If that doesn't work: run a minimal probe outside the skill — codex exec -s read-only "say ok" < /dev/null — and read the actual error without the 2>/dev/null suppression.

codex exec hangs forever at ~0% CPU

Cause: codex exec reads stdin in addition to the prompt argument. Under any non-TTY driver (Claude Code's Bash tool, CI, a pipeline) it blocks waiting for stdin EOF. The skills prevent this with < /dev/null (or by feeding the prompt file via stdin on the build side); a hand-rolled invocation without the redirect hangs silently.

Fix: add < /dev/null to the call (both exec and exec resume), or feed the prompt via stdin: codex exec ... - <prompt.txt.

If that doesn't work: the 10-minute timeout guard should have tripped; if you removed it, restore timeout: 600000 on the Bash tool call (or timeout 600 in a plain shell, gtimeout 600 on macOS).

A review round gets killed after 2 minutes

Cause: Claude Code's Bash tool defaults to a 2-minute timeout — too short for real reviews. The skills pass timeout: 600000 on every Codex call; a modified invocation that dropped it gets killed mid-run.

Fix: restore timeout: 600000 on the tool call. For builds clearly longer than 10 minutes, launch with run_in_background: true and read the -o file when the run exits.

Pinned model returns 400

Cause: ChatGPT-account auth rejects pinned gpt-5.x-codex variants.

Fix: don't pin. Remove -m and any model pin in ~/.codex/config.toml; the skills use the config default and echo the active model at kickoff precisely so you can veto it there instead of pinning.

Codex wrote files during a review round

Cause: A resume call missing -c sandbox_mode="read-only". codex exec resume rejects -s, and without the -c override it inherits config.toml's sandbox default — possibly danger-full-access with approval_policy="never". This is the single most important safety line in the skills (verified 2026-06-04); only a hand-modified resume loses it.

Fix: restore the flag on every resume:

codex exec resume "$THREAD_ID" -c sandbox_mode="read-only" ...

Then check git status -sb and revert anything Codex touched.

Fix rounds in codex-build can't write files

Cause: The mirror image of the previous issue. resume has no --yolo, so a fix round without the long flag inherits the config sandbox — possibly read-only — and Codex silently can't apply fixes.

Fix: the resume must spell --dangerously-bypass-approvals-and-sandbox, run from the repo root (resume has no -C either).

A resume answered the wrong conversation

Cause: Resuming with --last (parallel sessions make it grab the wrong thread), or a missing/garbage thread_id — resume can silently fall back to the most recent session instead of erroring (observed 2026-07-08). A wrong-target resume looks exactly like a successful one.

Fix: always capture the thread_id from round 1's {"type":"thread.started","thread_id":"..."} line and pass it explicitly, echoing it visibly into the command. Never --last.

The critique/report is empty or garbled

Cause: Reading the JSONL stream for content instead of the -o file. The stream is only for parsing the thread.started line; Codex's actual last message lands in /tmp/codex-verdict.txt or /tmp/codex-build.txt.

Fix: read the -o file.

codex-build refuses to launch: dirty tree

Cause: Working as designed. Codex writes with full access; a dirty tree means its diff can't be isolated or cleanly reverted, so the clean-tree gate stops.

Fix:

git status -sb
git stash        # or commit

Then re-invoke.

The loop hit MAX_ROUNDS without APPROVED

Cause: Not a bug — a deadlock is a designed outcome. The reviewer and the arbiter genuinely disagree.

Fix: read the unresolved points and Claude's counter-positions (presented at Resolution and preserved in PLAN-REVIEW-LOG.md), break the tie yourself, and either accept the plan or edit it and re-run /codex-review. A flagged disagreement beats a false "approved".

Old /crucible or /grill-me-codex invocations after updating

Cause: The repo was renamed twice (grill-me-codex → crucible → claudex-loop). GitHub redirects the old URLs, so git pull in an existing clone works — but plugin installs from the crucible era carry the old plugin name.

Fix: re-add the marketplace and reinstall to pick up the new namespace:

/plugin marketplace add chaseai-yt/claudex-loop
/plugin install claudex-loop@claudex-loop

Old trigger phrases ("crucible this plan") still fire the new skill. The old grill skills live in legacy/ if you want them.

Still stuck?

The full explanation of every invocation detail is in Codex mechanics. The skills' own ## Hard rules and ## What NOT to do sections in skills/ are the source of truth.