# OvernightCoder: working through a task list overnight

- Author: Eishan Lawrence
- Published: 2026-04-05 (updated 2026-11-14)
- URL: https://www.eishanlawrence.com/blog/overnight-coder

> OvernightCoder is a Claude Code skill that works through a to-do file overnight: one git worktree per task, tests first, Codex review loops, then a pull request per task.

My Claude Code and Codex subscriptions sit idle at night. [OvernightCoder](https://github.com/eishan05/OvernightCoder) is a skill that works through a to-do list during that time and opens pull requests.

## How it works

1. Claude Code writes a to-do file based on what the project needs next.
2. 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.
3. Each task gets its own branch in a separate git worktree.
4. Claude writes tests first, then the code.
5. Codex reviews and Claude fixes. Up to three outer cycles of three passes each.
6. 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](https://www.eishanlawrence.com/blog/claude-and-codex-together).

## 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.
