[01] LOOP
Reviewinterval

Babysit PR

Keep a PR merge-ready by triaging review comments, fixing CI, and updating the description until reviewers approve.

by Trooper

Kickoff prompt
/loop 10m Start the "Babysit PR" loop.

Goal: PR has approvals and all checks green
Max iterations: 15
Between iterations run: gh pr view --json reviewDecision,statusCheckRollup
Exit when: reviewDecision is APPROVED and all checks success

Step 1: Check PR status. Address review comments and CI failures until merge-ready.

Self-pace this loop. After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when the exit condition passes or max iterations is reached. Give a short status update each pass.

Paste the kickoff prompt into Cursor, Claude Code, or Codex. Deeplinks do not install hook files.

Steps

1. Check PR status

Read review decision and check rollup.

2. Address comments

Reply to or fix outstanding review threads.

3. Fix CI / update PR

Push fixes and refresh the PR summary if scope changed.

Flow diagram

Guardrails

Rules the agent must follow so it cannot cheat the exit condition.

  • Do not dismiss valid review feedback without addressing it
  • Do not force-merge or bypass required checks

More Review loops