OvernightCoder: working through a task list overnight

My Claude Code and Codex subscriptions sit idle at night. OvernightCoder is a skill that works through a to-do list during that time and opens pull requests.
How it works
- Claude Code writes a to-do file based on what the project needs next.
- I run the overnight-coder skill on that file. It asks two questions: merge PRs automatically or leave them for review, and run tasks one at a time or in parallel.
- Each task gets its own branch in a separate git worktree.
- Claude writes tests first, then the code.
- Codex reviews and Claude fixes. Up to three outer cycles of three passes each.
- It opens a PR and moves to the next task.
In the morning there's a summary: what finished, what failed, and links to the PRs.
Worktrees
Each task has its own copy of the repo in its own directory. So tasks can't touch each other's files. This is what makes parallel mode work. A grouper checks which tasks touch overlapping files and only runs non-overlapping ones together.
Review
No one is watching at night, so the Codex review is the main check. I wrote about using the two models together in an earlier post.
What I've seen
- More tasks succeed than I expected. New endpoints, CRUD, and well-described bug fixes usually work.
- Failures are mostly vague tasks, or tasks that need context that isn't in the repo.
- Test coverage is decent, since tests come first.
- Clearer task descriptions get better results.
Downsides
- Architectural or cross-cutting changes still need me.
- Long runs hit rate limits on Claude Max. A wrapper script restarts after a cooldown, but some nights get through fewer tasks.
- I still review every PR. That's usually about an hour in the morning.