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

PR Watch Loop

Poll open PRs labeled codex-watch every 15 minutes, review activity, and flag regressions or stale threads.

πŸ‘ 1,654 views πŸ“₯ 1,444 installs πŸ‘€ by loops!
Download loop
Share Now
Manual start
↓
  1. 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. 2
    Check CI and reviews

    For each watched PR, check failing checks, unresolved review comments, and merge conflicts.

  3. 3
    Report or act

    Post a brief status update. Fix trivial CI failures or ping the author for blockers.

↓
βœ“
Exit condition: manual

Watch report delivered for all codex-watch PRs

πŸ“Š Flow Diagram
flowchart TD Start(["Interval start"]) Start --> S0 S0("List watched PRs") S1("Check CI and reviews") S0 --> S1 S2("Report or act") S1 --> S2 Exit{"Watch report delivered for all codex-watch PRs"} 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 Watch Loop" 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 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.
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