PR Watch Loop
Poll open PRs labeled codex-watch every 15 minutes, review activity, and flag regressions or stale threads.
Kickoff prompt
/loop 15m Start the "PR Watch Loop".
Goal: keep codex-watch PRs healthy and unblocked.
Between iterations run: gh pr list --label codex-watch --json number,title,state,statusCheckRollup
Exit when: status report is delivered for every watched PR.
Step 1: List codex-watch PRs, check CI and reviews, and report or fix trivial blockers.Basic information
Category
CI
Goal
keep codex-watch PRs healthy and unblocked.
Check command
gh pr list --label codex-watch --json number,title,state,statusCheckRollup
Exit when
status report is delivered for every watched PR.
Supported agents
Codex, Cursor
Steps
- 1
List watched PRs
List open PRs with the codex-watch label. Summarize CI status, review state, and last activity.
gh pr list --label codex-watch --json number,title,state,statusCheckRollup - 2
Check CI and reviews
For each watched PR, check failing checks, unresolved review comments, and merge conflicts.
- 3
Report or act
Post a brief status update. Fix trivial CI failures or ping the author for blockers.
More CI loops
CI Failure Watcher
Poll CI on an interval, investigate failures when checks go red, and push fixes until green.
PR Babysitter
Every 15 minutes, inspect open PRs with a watch label: nudge reviewers, fix CI, rebase if behind main.
Fix CI Until Green
Fetch the latest failed CI run, reproduce the failure locally, fix it, and repeat until checks pass.
Ship PR Until Green
Implement on a branch, run tests, push, open a PR, wait for CI, and loop until checks pass and the PR is ready to merge.