Nightly routine reviewing the day’s pushes
Today’s pushes to main, reviewed while you sleep: a draft PR per bug with a test that fails first, in the cloud, laptop closed.
387 saves on X, as of Posted
Run every day at 1:07 AM on Opus 5.5 with no connectors attached. Save the instructions below as the prompt, word for word.
First install dependencies and run the full test suite. Note which tests were already failing. If the tests can't run, or there are none, write down what's missing and stop.
Then look at the commits pushed to the default branch in the last 24 hours. If there are none, end the run. Skip any bug that a claude/ branch is already fixing.
Only look for real bugs. Ignore style and naming. To call something a bug, you must be able to point to what a comment, the docs, a type, or an existing test says. If a change in behavior looks intentional, just note it. Don't fix it.
For each bug, write a failing test first. Make sure the failure message points to that bug, and rule out a broken test or an environment problem. Then change the code until the test passes, touching only what you must, and run the full suite again. Open one draft PR per bug with your evidence, three at most.
Never delete, change, or skip existing tests. Push only to claude/ branches. Don't merge anything.
Finish with a handoff note: the commits you checked, the PRs you opened, and anything that looked like a bug but couldn't be proven.Next In the repo you want checked, type /schedule in Claude Code and paste it.
Opus 5.5 is really good at automation, so before you go to bed, put it on the night shift too.
Set up a Claude Code routine and every night it goes back over the code you pushed to main that day. For each bug it finds, it opens a draft PR with a test that fails first and only passes after the fix. It runs in the cloud, so it keeps going with your laptop closed.
Once it’s saved, do a test run with /schedule run. In the morning, open that run on the Routines page on the web and read the handoff note. Green in the run list only means it finished.
