Dont Sleep — AI skill for Claude Code
Keep your Mac awake while your AI agents are working — even on battery with the lid closed.
How to install Dont Sleep
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open HartreeWorks/dont-sleep and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Dont Sleep does
Keep your Mac awake while your AI agents are working — even on battery with the lid closed.
Alternatives in AI
- 小红书文案:aris 介绍 — 标题: 睡一觉起来论文从5分变7.5分 3.1k ★
- Openclaw Auto Dream — Automatic memory consolidation for OpenClaw agents — like sleep for your AI 545 ★
- PaperFarm — Let AI agents run experiments in any repo while you sleep 353 ★
README
dont-sleep
Keep your MacBook awake while Claude Code or Codex is working—even on battery with the lid closed—and let it sleep when the agent stops.
[!WARNING] **Beta software. Use at your own risk.** `dont-sleep` changes system sleep behaviour and has been physically tested on just one Apple Silicon MacBook M4 running macOS Sequoia 15.7.
Quickstart
Install `dont-sleep` as a root LaunchDaemon so it starts automatically after every reboot:
mkdir -p "$HOME/code"
git clone https://github.com/HartreeWorks/dont-sleep.git "$HOME/code/dont-sleep"
cd "$HOME/code/dont-sleep"
sudo mkdir -p /usr/local/libexec
sudo install -o root -g wheel -m 755 dont-sleep.sh /usr/local/libexec/dont-sleep.sh
sed \
-e 's|/ABSOLUTE/PATH/TO/dont-sleep.sh|/usr/local/libexec/dont-sleep.sh|' \
-e "s|YOUR_USERNAME|$USER|g" \
dont-sleep.plist > /tmp/com.example.dont-sleep.plist
sudo install -o root -g wheel -m 644 \
/tmp/com.example.dont-sleep.plist \
/Library/LaunchDaemons/com.example.dont-sleep.plist
sudo launchctl bootstrap system /Library/LaunchDaemons/com.example.dont-sleep.plist
Check that it is running:
sudo launchctl print system/com.example.dont-sleep
tail -f "$HOME/Library/Logs/dont-sleep.log"
The default battery threshold is 50%. To change it, edit the `50` in `ProgramArguments` in the installed plist, then reload the daemon.
What it does
Every 15 seconds, `dont-sleep` checks agent activity, battery level, lid state and thermal pressure:
- It enables
pmset disablesleepwhile a Claude Code or Codex agent is active and the battery is at least 50%. - It recognises long, quiet shell commands and subagents as active work for up to one hour. Normally fast tools such as reads and edits expire after 10 minutes. Tools waiting for human input do not count after the 10-minute activity grace.
- When the agent stops or the battery falls below 50%, it releases the override. If the lid is shut on battery, it forces sleep because macOS does not r
Related Skills
Macvibe
Keep your MacBook awake with the lid closed while Claude Code, Codex, Gemini CLI & other AI coding agents work
Lucid
Looks asleep. Isn't. — keeps your Mac awake with the lid shut while an AI coding agent is working, and lets it
Dsh Screensaver
macOS screen saver that keeps AI coding agents (Claude Code, Codex, DeepSeek Harness) running while you step a
Crema
Keep your Mac awake while your AI coding agents work, and let it sleep when they are done. A caffeinate you ca
Dream Code
Termux-first AI Coding Agent. Even while you sleep, your dreams keep building.
AwakeLock
Keep your Mac awake behind the native Lock Screen so long-running AI agents, coding tasks, terminals, download
Related Agents
Conjecture Scout
Read-only exploration scout. Before we invest in a Lean proof, checks whether a conjecture is even TRUE and fi
macOS System Operator
Mac housekeeping and CLI operations — installing tools (brew/npm/curl installers), logins that open a browser,
Habit Coach
Reads how the learner has actually been working (hours, sessions, reviews against new material, accuracy by ti