| name | review-pr |
| description | Use when asked to review a PR, run a code review loop, or invoke the ralph reviewer against a pull request number or GitHub URL |
| metadata | {"internal":true} |
Review PR
Run the ralph.reviewer.yml orchestration loop against a pull request. The loop checks out the PR in an isolated worktree, runs tests, reviews the diff, and produces a structured report.
Usage
/review-pr <PR number or URL>
Accepts: 207, #207, or https://github.com/.../pull/207
Execution
1. Parse the PR argument
Extract the PR number from the argument. Strip # prefix or extract from URL path.
2. Run the reviewer loop
ralph run -H ralph.reviewer.yml -p "Review PR #<N>"
Bash tool settings:
timeout: 600000 (10 minutes)
run_in_background: true
Use TaskOutput with block: true to wait for completion.
3. Display the report
Read and print .ralph/REVIEW-REPORT.md to the conversation.
If the report file doesn't exist (loop failed before the synthesizer hat), check for and display whatever intermediate files exist:
.ralph/review-scope.md — what was scoped
.ralph/review-verification.md — test results