Skip to content

Tool skills isleep

Ilia edited this page Nov 11, 2026 · 2 revisions

/isleep [task] when you go to sleep and the session has to carry on. First it runs /fewer-permission-prompts for the project, into .claude/settings.local.json, so that a read-only command it asked about before does not hold the session at a permission prompt all night. Then Claude stops asking: each question it would have put to you it settles by the option it would have recommended, and wherever it would stop to ask whether to go on — another review round, the next item, a retry — it goes on. It does not end its turn while work is left, and waits for CI and the like in the background.

It still does not do what it would need your word for by day — push, merge, deploy, delete what is not its own, write to other people, spend money (one exception: sclaude's review step answers and resolves a minor thread its own review posted); such a step is left ready, with the command that does it. Every decision is logged as it is taken, with what it was instead of and how to undo it, in ~/.local/state/isleep/<date>.md — one log for every session of the night. Your first message in the morning gets the summary: the result, the decisions taken for you, what waits for you, what was set aside. /isleep report writes the summary without ending the night, /isleep off ends it.

In a project sclaude runs, its [g] "go on by itself" is on while a night over every session is (not an /isleep here one), under sleep_mode: auto (the default): step 4's review rounds go on without asking, and in the morning they ask again. on keeps [g] on all the time, off leaves it to the box alone; a box you set yourself wins either way. /isleep (alone, or with here or a length) typed into a step's session that has just reported its work done does not keep it open, as other words typed there do: sclaude closes it when the /isleep turn ends and prints the report from before it.

The night is kept in ~/.local/state/isleep/night.json, not only in the conversation, and covers every Claude session on the machine — already running or started during it, such as sclaude's next step; /isleep here keeps a night it starts to one. Hooks that install.sh adds to ~/.claude/settings.json bring the rules into a new, compacted or resumed session and into a running one at its next tool call, refuse AskUserQuestion with "decide and log", and ask a turn that ends whether work is left (once per turn, at most 40 times a night in each session). /isleep 8h sets how long the night lasts (12 hours by default).

The night ends when you type anything in any session: that session gives you the summary, and every other session the night reached is told at its next tool call that questions go to you again. A night that runs out its hours ends the same way, and your first message after it gets the summary; so does one ended outside any session — night.py off in a terminal, or your yes, in its terminal or on the phone, when sclaude offers to go through the review threads left at night, which ends the night so that the session asks you rather than deciding. The prompt sclaude starts a step's session with, a headless claude -p and a /loop wakeup do not count as you — nor does a /loop you type, which reads the same. A session closed during the night is told when you resume it. By day the hooks do nothing; sessions started before the hooks were installed do not run them.


Generated from docs/tools.md; edit it there, then rebuild with wiki/build.py.

Clone this wiki locally