Loop/loopCode Reviewlow riskadvancedsafety B · 85Forward Futurepre-dates current gate · under review

Claude ships, Codex reviews

Open a PR, run an independent Codex review, fix every blocking finding, and repeat until it's clean.

prompt
→ Claude
Run /clodex [task] think hard --max-iter 5 --threshold medium. Claude plans the task, implements it, opens a pull request, asks Codex for an adversarial review, fixes findings above the accepted severity, and repeats. Keep the branch, PR, findings, verdict, and iteration state resumable. Stop when Codex approves, only accepted findings remain, progress stalls, or the iteration cap is reached. Never describe an errored or exhausted run as approved. Finish with the PR, checks, verdict, and remaining findings.
claude-code · codex

Use this when

Use Clodex when Claude is building a meaningful code change and Codex should independently review each repair round.

How it runs

  1. Choose the task, thinking level, maximum iterations, and highest acceptable finding severity.
  2. Have Claude plan, implement, verify, and open the pull request through Clodex.
  3. Run the Codex adversarial review, fix blocking findings, push, and review again.
  4. Persist state across rounds and finish with the verdict, remaining findings, checks, and pull-request link.

Done when

The pull request reaches the configured review bar. Codex approves it or only explicitly accepted findings remain; errors, stalls, and exhausted limits are reported as such.

Why it works

Clodex separates the Claude builder from the Codex reviewer and turns review feedback into a bounded repair loop. Persisted state keeps the work resumable without treating an interruption as approval.

Implementation note

The source implementation uses Clodex with Codex as the adversarial reviewer. Treat the severity threshold as a ceiling for acceptable findings, not a minimum severity to inspect.

Source: Forward Future

More review loops

Map codebase with review prompt

Loop/ralphnew

Run a review prompt against your codebase repeatedly until the completion promise resolves, with no iteration cap.

prompt
→ Claude
/ralph-loop "<review prompt>" --completion-promise "CODEBASE MAP COMPLETE" . One ralph loop per discovered codebase (loops until the promise; no iteration cap per v3.8.0 unbounded solving
reviewmedium riskclaude-code

Address review comments, fix CI

Loop/loop

Check your PR for new comments and CI failures, address them, then loop every 5 minutes until all pass.

prompt
→ Claude
/loop 5m check my PR, address review comments, and fix failing CI
reviewmedium riskclaude-code

The nested perfect loop

Loop/loop

A loop wrapping a goal wrapping a review: every 30 minutes, drive all PR review comments to resolved via /review, 10 turns max per pass.

prompt
→ Claude
/loop 30m /goal all PR review comments resolved via /review, stop after 10 turns
reviewhigh riskclaude-code