# How to use Claude to run overnight coding tasks

Ralph Loops coordinates Claude and Gemini CLI workers on four old laptops. Git carries task assignments and results, a manager creates fix tasks, and the author checks an overnight summary in the morning.

Agent: Claude (via Claude CLI through Ralph Loops)
Tools: Ralph Loops, Claude CLI, Gemini CLI, Git, Tailscale
Category: Software & DevOps
Date: 2026-02-12

Outcome: The author reports 95% overnight execution success, automatic detection of about 70% of mistakes, and approximately $15 per month in electricity costs for the four-laptop setup.

## Steps

1. Write coding tasks in Markdown and commit them to Git.
2. Run start-night.sh to begin the overnight worker run.
3. Let workers claim tasks, run Claude or Gemini CLI and push results.
4. Have the manager review results and create fix tasks for failures.
5. Run morning-review.sh to inspect the overnight activity.

Human oversight: The author writes task specifications and uses a morning review script; the post acknowledges missed mistakes and repeated iterations.

Source: [HappyVaxman on Hacker News](https://news.ycombinator.com/item?id=46991243)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-run-overnight-coding-tasks/
