Prompt file imported from lhpaul/ronda (
.cursor/commands/run-reviewer-loop.md). Copyright stays with the author.
description: Run the automated reviewer loop (and CI loop) for a PR until clean or escalate. Usage: /run-reviewer-loop [PR number or "current"]
Cursor Command: Run Reviewer Loop
Follow the standalone automated reviewer loop protocol:
docs/workflow/development-workflow/protocols/93-automated-reviewer-loop-protocol.md
- Scope: Run Step 7 (automated review) and Step 8 (CI) for the specified PR, dispatching fixer agents when the platform reports blocking issues, until the PR is ready for human review or escalated.
- Target: Use the PR number from the command if given; otherwise resolve the PR for the current branch (e.g.
gh pr view --json number --jq '.number'). - Pre-flight — check for existing unresolved findings before running the scripts: Run
gh pr view <number> --json reviewsand read all review comments (e.g.gh api repos/{owner}/{repo}/pulls/<number>/comments). If any configured review platform (see.ai-dev-workflow.yaml) has already posted a review with blocking findings that have not been addressed in a subsequent commit, dispatch a fixer agent to resolve them and push first — then proceed with the scripts. This handles the case where a platform posted its review after a previous run timed out. - Use the helper scripts
scripts/development-workflow/pr-review-loop.shandscripts/development-workflow/pr-ci-loop.sh. Do not pass--platformunless you intend to override the repo config: the script reads.ai-dev-workflow.yamland usesreview.on_draft.githubplusreview.on_ready.githubwhen no--platformis given. Run Step 7 to completion before Step 8. Both must run in the foreground — see91-orchestrate-work-protocol.mdStep 7/Step 8 for the mandatory "run in the foreground, never background-and-yield" rule; it applies here exactly as written there. - In
workflow_hub, pass selected product repository context through to the shared reviewer and CI scripts for product implementation PRs; keep this wrapper thin. - Apply labels per
docs/workflow/development-workflow/protocols/92-pr-readiness-signal-protocol.mdwhen the loops are clean or when CI/feedback requiresneeds-fixes.