What It Does — A Personal AI Coding Supervisor
Overnight is a free, open-source CLI tool that acts as a supervisor layer for Claude Code. Its core innovation is personalization through your chat history. Instead of using generic prompts or agent frameworks, it scrapes your Claude Code conversation history from a project, analyzes your communication style, coding patterns, technical preferences, and current focus, and builds a unique profile of you as a developer. This profile is then used to predict the exact message you would type next to continue the work.
How It Works — Predict, Execute, Observe, Adapt
The tool operates in a tight feedback loop:
- Predict: Combines your profile, the current workspace state (files, branches, tests), and the direction of recent work to generate the next message in your voice.
- Execute: Runs the predicted message via
claude -pwith auto-permissions. - Observe: Reads the output, diffs, test status, and build results.
- Adapt: Feeds results back into the loop. If tests fail, it tries to fix them. If the build breaks, it course-corrects. It stops when goals are met.
All work is automatically committed to new Git branches (overnight/{run-id}), letting you review and merge—or discard—its progress in the morning.
Setup — Install and Run with Your API Key
Installation is straightforward via the GitHub repo. You must bring your own Anthropic (or OpenAI-compatible) API key.
git clone https://github.com/yail259/overnight
cd overnight
# Follow setup instructions, configure your API key
On first run in a project directory, it scans your local Claude Code history (typically in ~/.claude/projects/) to build your profile.
Four Modes to Match Your Risk Tolerance
You control the ambition level by shifting through four modes:
tidy: Zero-risk cleanup only. Dead code removal, formatting, linting.refine: Structural improvements. Focus on design patterns, coupling, test architecture—same features, better code.build: Product engineering. Reads the README, understands the value proposition, and derives the next feature from the business case.radical: "Unhinged product visionary." Makes bold, ambitious bets. The creator notes you might "wake up delighted or terrified."
You can run it in an interactive TUI with $ overnight, kick off a specific task with $ overnight start "finish auth and add tests", and review logs in the morning with $ overnight log.
Why It's Different — It Learns You
The key differentiator from other "code while you sleep" agents is the personal profile. The predictor never sees your raw conversations. It receives three distilled inputs: who you are (the profile), where you're headed (direction), and what exists (workspace). The output aims to be the message you'd have typed, maintaining your unique style and priorities throughout the autonomous execution.






