run-codex-review-loop
Use if running Codex review loops across branches, lenses, comparisons, or convergence rounds.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use if running Codex review loops across branches, lenses, comparisons, or convergence rounds.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | run-codex-review-loop |
| description | Use if running Codex review loops across branches, lenses, comparisons, or convergence rounds. |
Run repeatable Codex review passes without relying on the retired run-codex-2 dispatcher. This skill owns the loop around native Codex review execution; run-review in the main pack owns one-off review routing, PR handoff, and feedback triage.
Two modes:
git branch --show-current reports — often main) through many independent review lenses, in rounds, until findings converge.Pick Mode B only when the user names two or more branches. Everything else — "review the whole project", "full audit", "multiple lenses", "review main", "review the current branch" — is Mode A.
Do not use this for:
run-review Mode D.run-review Mode B.run-review Mode C.Run these before any mode:
codex --version
git rev-parse --is-inside-work-tree
git branch --show-current
git rev-parse --verify HEAD
git status --short
Require codex-cli 0.130.0 or newer.
tree: clean|dirty in the manifest.For every branch named in Mode B:
git rev-parse --verify <branch>
If a branch does not resolve locally, fetch it explicitly or report that it is missing. Do not silently drop it.
Do not start with Codex prompts. First understand the project enough to choose the right review lenses.
Spawn 1–3 Sonnet-class explore agents — Claude Sonnet or an equivalent mid-tier model. The point is fast, broad project mapping, not top-tier deep reasoning. Use equivalent local/default agents if Sonnet is unavailable. Give each agent a bounded mission such as:
The explore outputs are steering inputs. They decide what Codex reviews to run. Do not use a generic checklist when the project tells you what matters. A fragile ERP integration needs concurrency/token/governor lenses; a public web API needs authz/rate-limit lenses; a data pipeline needs idempotency/freshness/data-loss lenses.
Highest priority targets are the project's own explicit invariants — especially AGENTS.md, CLAUDE.md, operational-safety docs, architecture docs, and schemas. A contradiction between a stated invariant and runtime code is usually a real finding.
From exploration, write a lens list for round 1.
Rules:
Good lens shapes:
Every lens prompt must demand:
clean explicitly.Create one run directory and one subdirectory per round:
mkdir -p "/tmp/codex-review-loop/$(date +%Y%m%dT%H%M%SZ)/round-1"
Record a manifest at the run root:
mode: multi-lens
branch: <current-branch>
head: <sha>
tree: clean|dirty
rounds-max: 10
round: 1
lenses:
- <lens-slug>: <one-line focus>
Launch all lenses for the round in parallel, preferably in background tasks, one Codex run per lens. Use whichever execution surface is available:
node "<codex-plugin>/scripts/codex-companion.mjs" task "<lens prompt>"
codex exec review --json -o "/tmp/codex-review-loop/<run-id>/round-N/<lens-slug>.md" "<lens prompt>"
After each run completes:
<run-dir>/round-N/<lens-slug>.md so the run is resumable.blocked with the exact command and stderr summary. Do not silently drop it.Read every lens output and produce a deduplicated table:
| # | Severity | Finding | Evidence | Lenses | Status |
|---|
Rules:
new, still-open, fixed-verified, or regressed.clean for that lens.Run up to 10 rounds. Between rounds, fixes may be applied outside this skill by the main agent or user; this skill itself remains review-only.
For each next round:
Stop early when the loop converges. Convergence means one of:
When stopping, state exactly which condition fired. Do not keep grinding after convergence; extra rounds at that point manufacture noise.
mode: branch-comparison
base: <base-ref>
branches:
- <branch-a>
- <branch-b>
codex exec review \
--base <base-ref> \
--json \
-o "/tmp/codex-review-loop/<run-id>/<branch-slug>-last.md" \
"Review only major correctness, security, data-loss, API-contract, and stability risks. Ignore style."
| Branch | Verdict | Major findings | Evidence | Next action |
|---|
Deduplicate shared findings across branches. Mark findings as branch-specific or shared. Mark clean branches as clean. Mark failures as blocked with exact command and stderr summary.
Locate the latest run directory under /tmp/codex-review-loop/ or use the user-provided path. Read the manifest and list completed outputs.
codex exec is the execution surface.Return:
Verification rungs:
Use skill if you are exhaustively testing or release-gating martool CLI commands in a source checkout or deployed Coolify container over SSH, without local Docker or provider spend.
Use if driving agent-browser for Chrome/CDP automation, @ref snapshots, tabs, or verification.
Use if testing or debugging an iOS app via agent-device CLI — simulator flows, evidence, bug triage.
Use if supervising Jean agents through MCP and Computer Use for monitoring, recovery, or closure.
Use if auditing or designing a CLI for agent/LLM use — JSON output, exit codes, non-interactive.
Use if auditing or designing an MCP server for agent-readiness — framework, security, context.