PRODUCT.ENGINEER
ManifestoThe RolePlaybookLoops
All loops
CIIntervalHardened

PR Babysitter

Every 15 minutes, check open PRs, fix CI, rebase, nudge reviewers.

Compatible tools:Claude CodeCodexCursor
/loop 15m Start the "PR Babysitter" loop.

- Goal: All open PRs labeled "watch" are healthy — CI green, rebased on main, not stale, reviewers engaged.
- Max iterations: 20
- Between iterations run: `gh pr list --label "watch" --json number,title,statusCheckRollup,mergeable`
- Exit when: each watched PR is either green and current, or has been escalated after 3 failed fix attempts.

Steps:
1. List all open PRs with the "watch" label
2. For each PR, check:
   - CI status: are all checks passing?
   - Merge state: is it behind main? Does it have conflicts?
   - Staleness: has it been idle for 24+ hours with no reviewer activity?
3. For failing CI: attempt one fix per iteration (read logs, apply fix, push)
4. For merge conflicts: rebase on main and force-push the branch
5. For stale PRs: post a comment tagging reviewers
6. If a PR has failed 3+ fix attempts: escalate (add "needs-attention" label, post summary comment)
7. Wait 15 minutes before next check

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

How it works

PR Babysitter

CI redbehindstalehealthyList watched PRsCheck each PR stateWhat's wrong?Fix CI failureRebase on mainPing reviewersAll PRs healthy
product.engineer

Owning the whole loop, from idea to impact.

Learn

  • Blog
  • Manifesto
  • Authors
  • RSS Feed

Tools

  • Loops
  • Playbook
  • Discovery
  • Cloud Maturity
  • 5 Whys

Opportunities

  • Jobs
  • Hot Jobs
  • Companies
  • The Role
© 2026 product.engineer
||