Tools

Run Claude Code Overnight and Wake Up to a Report

Leave Claude Code working all night on one task: it keeps your computer awake, checks its own work, switches AIs when a limit hits, and leaves a morning report.
View on GitHubgithub.com/vadimchernets/nightcall
At 11 p.m. a laptop with the task "8 hours" is kept awake until 7:00; a phone card shows "Working until 07:00, step 6 of 12, 2 waiting for you" with STOP and CONTINUE buttons. At 7 a.m. MORNING.md lists Not done, Needs your decision, Done and Check first, and a timeline of the night repeats plan, step, check, with one mark where a limit was reached and the next AI took over.
Swipe to see the whole diagram, or tap to open it

You have a big job and not enough evenings. Sort three years of notes into a book outline. Go through two hundred customer emails and draft the replies. Clean up a messy website. Claude Code can do this kind of work, but it needs hours, and hours at a desk are the one thing you do not have. So you would like to say "do this" at ten in the evening, go to bed, and read the result at breakfast. Nightcall is a free, open-source plugin for Claude Code, Anthropic's AI assistant that works with the files on your computer. It sets up exactly that: a night shift with a morning report, and a card on your phone that shows what the night is doing.

Why leaving it running usually fails

The idea is simple, but a night alone is hard on a computer and on an AI. The laptop goes to sleep and the work stops. The usage limit of your subscription runs out at 3 a.m. and the session sits there, or ends. The AI stalls on step four and spends six hours politely stuck. Or it keeps going and does something you never asked for in a folder you did not mean it to touch. And while it runs, you have no idea what it is doing: Google's suggestions for "claude code check progress" and "control claude code from phone" show how many people want to know. In the morning you find a half-done mess and no idea what happened. People look for ways around each of these separately: how to keep a Mac awake, how to continue after a limit, how to run Claude Code overnight at all. Nightcall puts the answers in one place.

What it does

You write one line in Claude Code, for example:

/nightcall:start Go through all my notes in the "Ideas" folder, build a 12-chapter book outline from them, and draft the first chapter. 8 hours.

Then Nightcall spends about five minutes with you before you leave and takes care of the rest.

Things that cannot be undone are never decided at night: sending, publishing, paying, deleting with no way back, signing in with a password.

See the night, stop it, approve what it wanted

Ask "what is it doing?" or type /nightcall:status, and you get one card built from the night's own files, not from the AI's memory: the state ("working until 07:00", stopped, done), the last thing it did, how many plan steps are done, how many checks are closed with proof, and what is waiting for you.

From the same place you can say "stop the night": it finishes the step it is in and stops, and the morning report is written from what is there. "Continue" takes the stop away and the night goes on.

Everything the night wanted to do that is yours to decide (a message to send, money, a publication, a choice the AIs made together) goes into a ledger, a running list of "what the AI wanted, and what you decided". In the morning Nightcall reads the waiting lines out one by one, and you answer each with one word: approve or decline. Nothing in that list is ever rewritten, so you can always see who chose what and when.

A locked room for the night

If you would rather the night could not see anything but the task folder, start it in a box, a sandbox (a closed space for programs) that reads and writes only that folder. The rest of your home folder, including your other projects, passwords and Claude Code history, is not even readable from inside, and the internet is open only to the sites on a short allowed list.

On a Mac nothing extra has to be installed: Nightcall uses Anthropic's own sandbox runtime and fetches it on the first run. If Docker is on the computer, the box is a real container instead. Your subscription sign-in is kept in the Mac's Keychain, set up once with one command, and handed to the box only for that night. One command stops a boxed night at once, and the phone card still works from outside the box.

A concrete example

Marta is a writer with a folder of 300 loose notes. At 10:30 p.m. she types the line above, answers a few questions, checks the lid, charger and updates, and goes to sleep. In the night Claude reads the notes, writes the plan, groups the notes into themes, builds the outline and drafts chapter one. Around 2 a.m. her Claude limit runs out and her own Codex takes the next steps from the same files. At 7 a.m. she opens MORNING.md: the outline is done, chapter one is drafted, one folder of unreadable scans was marked and skipped after three failed tries, and two choices about the book's order are waiting for her, each with the way to undo it. She answers "approve" to one and "decline" to the other.

How to start

You need Claude Code. In it, add the catalogue and install the plugin:

/plugin marketplace add https://raw.githubusercontent.com/vadimchernets/poly-a1-plugins/main/.claude-plugin/marketplace.json
/plugin install nightcall@poly-a1

The first line adds the Poly catalogue by its link, with no git or GitHub account (Claude Code 2.1.224 or later). Then run /nightcall:ready for the checklist before leaving, and /nightcall:start with your task and the number of hours. During the night, /nightcall:status shows the card. In the morning, /nightcall:morning writes the report and switches everything off. The other commands are /nightcall:awake, /nightcall:team, /nightcall:mine (your own subscriptions in turn) and /nightcall:family (the family relay).

The "coffee for the computer" also works on its own, without Claude: bash scripts/awake.sh 8 on a Mac or Linux. The boxed night is bash scripts/night-loop.sh --box "<task folder>" 8. Nightcall needs no paid service and buys nothing; it speaks English, Spanish, Portuguese, Russian and Ukrainian.

If you also install its sibling plugin Pocketcall, the night appears as one card on your phone ("Working, round 7", "Resting on a limit until 03:10", "Done") with the steps, the checks and the number of things waiting for you. The phone rings, by Telegram or your own ntfy topic, when the night rests on a limit or ends, and the message comes with Stop and Continue buttons.

Before the night, Safecall can add a copy of anything Claude is about to change, and both are part of the Poly plugins catalogue.

Where it comes from

Nightcall is written by Vadym Chernets, comes with 120 automated tests and a Zenodo archive (DOI 10.5281/zenodo.23107725), and is open under the Apache-2.0 licence: https://github.com/vadimchernets/nightcall.

View nightcall on GitHub

Vadym Chernets also builds Poly, an app in which AIs from different companies check each other's work.

All tools · All papers and notes