AAWEA.ORG
AAWEA.ORG
AAWEA.ORG
CI Interval trigger πŸ‘‘ Official πŸ›‘ Hardened

PR Babysitter

Every 15 minutes, inspect open PRs with a watch label: nudge reviewers, fix CI, rebase if behind main.

πŸ‘ 1,215 views πŸ“₯ 1,779 installs πŸ‘€ by loops!
Download loop
Share Now
Manual start
↓
  1. 1
    List watched PRs

    List open PRs with the watch label. Skip merged, draft, or conflict-only PRs that need human product input.

    > gh pr list --label "codex-watch" --json number,title,mergeable,statusCheckRollup
  2. 2
    Triage each PR

    For each PR: if CI failed, fix once; if behind main, rebase; if stale review, leave a short status comment.

  3. 3
    Escalate blockers

    Stop on merge conflicts needing product decisions or the same failure twice. Report blockers clearly.

↓
βœ“
Exit condition: manual

All watched PRs are green, rebased, or escalated with a clear blocker note

πŸ“Š Flow Diagram
flowchart TD Start(["Interval start"]) Start --> S0 S0("List watched PRs") S1("Triage each PR") S0 --> S1 S2("Escalate blockers") S1 --> S2 Exit{"All watched PRs are green, rebased, or escalated with a clear blocker note"} S2 --> Exit Exit -- "No" --> S0 Exit -- "Yes" --> Done(["Success"]) style Exit fill:#fffbeb,stroke:#f59e0b,stroke-width:2px,color:#92400e style Done fill:#ecfdf5,stroke:#10b981,stroke-width:2px,color:#065f46
Run "PR Babysitter" in your agent
Prompt only
Deeplinks and "Open in Cursor" only paste the kickoff prompt. They do not install hook files β€” your agent cannot tell whether files are on disk until you add them yourself.
Two separate pieces
  • Kickoff prompt β€” tells the agent the goal, check command, exit condition, and how to self-pace.
Kickoff prompt
/loop 15m Start the "PR Babysitter" loop.

Goal: open PRs labeled codex-watch are healthy (CI green, rebased, not stale).
Max iterations: 20.
Between iterations run: gh pr list --label "codex-watch"
Exit when: each watched PR is green and current, or escalated.

Step 1: List watched PRs. Fix CI once, rebase if behind, comment if stale. Escalate repeated failures.
Anti-gaming rules
Rules the agent must follow so it cannot cheat the exit condition.
  • Do not modify the check command or exit criteria to force success
  • Do not skip, disable, or bypass checks to pass the exit condition
  • If stuck after several iterations, stop and report blockers instead of gaming metrics