From rtl-agent-team
Cross-reviews work with Codex CLI as an independent second reviewer, exchanging findings and iterating toward consensus. Useful at phase boundaries as a quality gate.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rtl-agent-team:codex-cross-review [phase number | 'auto'][phase number | 'auto']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
<Purpose>
<Use_When>
<Do_Not_Use_When>
codex --version)codex --version must succeedThe skill reads ~/.codex/config.toml for model and effort settings.
Users configure their preferred model and reasoning effort there — the skill never overrides these.
Display the current config to the user at the start of every invocation:
Codex Config: model={model}, reasoning_effort={effort}
If no phase number is provided, detect the current phase from:
docs/phase-N-*/ directoryTask(subagent_type="rtl-agent-team:codex-cross-reviewer",
prompt="Run cross-review for Phase {N}.
Phase intent: {brief description from phase docs}.
Target artifacts: {list of docs/code paths}.
Changed files: {from git diff}.")
Phase orchestrators (P1-P6) should invoke cross-review as their penultimate step (before declaring phase complete):
# In orchestrator agent prompt, before final step:
Step N-1: Cross-Review Gate
Task(subagent_type="rtl-agent-team:codex-cross-reviewer",
prompt="Cross-review Phase {N}. Artifacts: {paths}.")
# MANDATORY explicit verdict check:
Read(".rat/cross-review/phase-{N}/cross-review-report.md")
# Parse verdict field — must be CONSENSUS or USER_DECIDED
# If verdict != CONSENSUS and user did not approve → do NOT proceed to completion
Orchestrators that integrate cross-review:
p1-research-orchestrator — review spec analysis qualityp2-arch-orchestrator — review architecture decisions + ref modelp3-uarch-orchestrator — review uArch design + BFMp4-implement-orchestrator — review RTL implementationp4-rtl-sanity-orchestrator — review rapid implementationp5-verify-orchestrator — review verification completenessp6-review-orchestrator — review design note qualityRound 1: Claude → phase summary → Codex reviews → findings JSON
Round 2+: Claude → fixes + rebuttals + agreement ledger → Codex re-reviews → updated findings
Stability: 2+ consecutive rounds with verdict==APPROVE + no new critical/major + no still_disagree + no oscillation = CONSENSUS
Max 5 rounds → AskUserQuestion escalation to user
Cross-review artifacts are phase-scoped for traceability:
.rat/cross-review/review-schema.json — shared JSON schema.rat/cross-review/phase-{N}/phase-summary.md — phase context sent to Codex.rat/cross-review/phase-{N}/prompt-round-R.txt — exact prompt sent each round.rat/cross-review/phase-{N}/round-R.json — Codex's structured response each round.rat/cross-review/phase-{N}/resolution-state.json — running resolution tracker.rat/cross-review/phase-{N}/cross-review-report.md — final summary report.rat/cross-review/phase-{N}/escalation-summary.md — generated if user escalation neededCompletion marker: .rat/state/cross-review-phase-${N}-done (e.g., cross-review-phase-2-done)
npx claudepluginhub babyworm/rtl-agent-team --plugin rtl-agent-teamGuides codex-review plugin workflows including plan review, implementation review, status checks, and finding resolution.
Runs cross-LLM iterative code reviews with Codex or Gemini CLI peers, applying accepted fixes until consensus on improved code and report.
Cross-model review using OpenAI Codex to independently verify plans or code diffs, iterating up to 5 rounds. Useful for architecture decisions, non-trivial refactors, and critical config changes.