acephalt-inc/orch-os/sleep
Claude Code and agent skill by acephalt-inc/orch-os
- community
Checking that the SKILL.md file is still in the repository.
Use when the human says the whole team should stop for the night ("going to sleep, stop everything", "we're done for today") or invokes /sleep. Persists work state to disk, tells every worker to stop at a safe point, stops workers and scheduled polling, and writes a snapshot that the next morning's lead session restores from. Not for leaving while work continues (/away, /caffeine).
Install
npx vskill@latest install acephalt-inc/orch-os/sleepSKILL.md
The same SKILL.md was published earlier as acephalt-inc/orch-os/sleep.
/sleep — persist, announce, stop, verify
Optional recipe. A person chooses to use it; it is not a product mode and nothing installs or schedules it. It grants no authority: every time, limit and permission in it is a value the operator sets.
The morning restart must come from a written snapshot, never from what a session remembers. A restart from recollection silently drops the one loop nobody wrote down.
Order matters: persist and announce before you stop anything. A worker that is stopped before it hears "stop at a safe point" can die mid-commit.
Steps
- List what is running, and keep the output. It becomes the snapshot.
orch worker listorch task list- scheduled loops in your agent sessions (for example
/loopjobs or session
cron entries): copy their ids and schedules verbatim
- OS-level jobs you started for the team (cron lines, timers, a keep-awake process)
- Persist work state.
- Open items, one line each, into your team's to-do file.
- A session note:
orch mem add session-<date> --description "state at sleep" -m "<open threads, in-flight PRs, next steps>". - Any half-written diagnosis or report goes into its own file, not the chat.
- Tell the workers first (a broadcast nobody has to answer, so the mailbox):
orch mailbox post lead -m "Team sleep at <time>: finish or park at the next safe point (never mid-commit), claim nothing new, leave open questions open. Resume only after the morning boot." Give them a few minutes. A worker that cannot park cleanly says so with orch msg send BLOCKED --to lead; check orch msg read before stopping anyone.
- Stop polling and workers.
- Stop the scheduled session loops from step 1.
orch worker stop <name>for each worker. A worktree with uncommitted changes is
kept; note which ones.
- Stop any keep-awake process (
/caffeine off).
- Write the snapshot to
$ORCH_HOME/sleep.json: the time, the lead lease epoch
(orch lease status --json), and every item from step 1 with how it was stopped. Then release the lead lease if a different session will boot in the morning: orch lease release --expected-epoch <epoch>.
- Verify before saying "stopped". Report stopped only if all of these hold:
orch worker listshows no running worker;- no scheduled session loop is left (list them again);
- no keep-awake process (
pgrep -fl caffeinate/systemd-inhibit --list); $ORCH_HOME/sleep.jsonexists with today's timestamp and a non-empty job list.
- Report in one table: snapshot time, workers stopped, loops stopped, worktrees
kept dirty, lease released or kept. Then stop.
Morning
Start the lead session from the handbook file orch init wrote (lead-boot.md, by default ~/.orch/handbook/lead-boot.md), read $ORCH_HOME/sleep.json, and compare its jobs with what is now running. Resume only work currently authorized. Never restart recurring polling or monitoring without current explicit approval; report any jobs left stopped.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sleep/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/acephalt-inc/orch-os/sleep)