원클릭으로
ralphex
Claude implements, Codex reviews, repeat until clean
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Claude implements, Codex reviews, repeat until clean
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | ralphex |
| description | Claude implements, Codex reviews, repeat until clean |
| argument-hint | Describe the coding task to implement |
| disable-model-invocation | true |
| allowed-tools | Bash(*) |
Execute an iterative development loop where you (Claude Code) plan and implement code, then Codex reviews your work. Loop until there is no relevant corrections to implement in Codex's review.
User's task: $ARGUMENTS
head -c 4 /dev/urandom | od -An -tx1 | tr -d ' \n' via Bash. Store the output as session_id..claude/ralphex.local.md exists in the project root.base_branch: The branch to diff against (default: main)codex_model: The Codex model to use (REQUIRED - if missing, ask the user)codex_reasoning_effort: Reasoning effort for Codex reviews (default: high)command -v codex via Bash. If the command exits with a non-zero status (codex not found), inform the user: "Codex CLI is not installed. Install it from https://github.com/openai/codex and try again." and stop. Otherwise, ask the user:
main)gpt-5.4, gpt-5.4-mini, gpt-5.5)high; valid values: low, medium, high, xhigh)
Then create .claude/ralphex.local.md with their answers.\git rev-parse --abbrev-ref HEAD to get the current branch. Compute a review_target value:
base_branch, set review_target = base_branch.base_branch, check if origin/{base_branch} exists by running git rev-parse --verify origin/{base_branch}. If it exists, set review_target = origin/{base_branch}. If it does not exist, inform the user that there is no remote to compare against and stop.git diff --stat {review_target}...HEAD. If the diff is empty, inform the user there are no changes to review and stop.Store session_id, review_target, codex_model, and codex_reasoning_effort for use throughout the workflow. Use review_target (not base_branch) in all subsequent git and Codex commands.
This step has two modes depending on whether this is the first iteration or a subsequent one.
On the first iteration, use Claude Code's native plan mode to explore, design, and get user approval before implementing.
EnterPlanMode to transition into read-only plan mode.ExitPlanMode to present the plan to the user for approval.ExitPlanMode again. Do not proceed until approved.On subsequent iterations (after a Codex review with accepted corrections):
Execute the implementation plan:
Create a clean git state for Codex to review:
git add (be specific about which files. Do NOT use git add . or git add -A)git statusRun this exact command via Bash:
codex exec --sandbox read-only -m {codex_model} -c model_reasoning_effort="{codex_reasoning_effort}" -o /tmp/ralphex-review-{session_id}.txt "Review the committed changes of this branch against {review_target}." 2>/dev/null
Replace {review_target}, {codex_model}, and {codex_reasoning_effort} with the resolved values from Step 1.
Check the exit code. If the command exits with a non-zero status, inform the user that Codex failed (include the exit code), then stop.
Read the contents of /tmp/ralphex-review-{session_id}.txt.
Do NOT blindly accept all suggestions. Codex can be wrong, pedantic, or suggest changes outside the task scope. For each suggestion in the review, independently evaluate and classify it:
Display your verdicts to the user in this format:
**Iteration {N} - Codex Review Evaluation:**
- ✅ Accept: {summary of accepted suggestion}
- ❌ Reject: {summary and reason for rejection}
- ⏭️ Defer: {summary and reason for deferral}
Then decide:
ExitPlanMode.EnterPlanMode on subsequent iterations. The lightweight re-plan runs inline without plan mode.