← Back to catalog
LoopOperations↓ 0

Overnight PR Routine

A nightly routine that works your open PRs: auto-fixes broken builds, answers review comments in an isolated worktree, and rebases stale branches while you sleep.

Loops are usage routines — there is no install command. See how to run it just below.

This is the “I don’t write code, I write loops, and they write the code while I sleep” routine.

Each night the cycle works the open-PR queue: it auto-fixes build failures, answers review comments in an isolated worktree, and rebases whatever is stale.

It pushes only when CI comes back green, and it never auto-merges.

Anything ambiguous or product-sensitive is flagged for you to decide in the morning, with a summary waiting in your inbox.

When to use

  • To land fixable PRs overnight.
  • When you want to wake up to a cleaner PR queue.
  • To isolate each fix in its own worktree.

How to use

Run the routine asking it to watch your open PRs, fix builds, answer comments in an isolated worktree, rebase stale branches, and post a morning summary, leaving ambiguous items to you.