anti-sleep
Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.
npx skills add sickn33/agentic-awesome-skills --skill anti-sleep --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Anti-Sleep (macOS caffeinate) ## When to Use - Use when the user wants the Mac to stay awake during a long supervised task. - Use when a build, download, or automation run should not be interrupted by sleep. Keep the Mac awake using the built-in `caffeinate` command. No install needed. ## Quick start — the standard command ```bash caffeinate -d -i -t 7200 # full power: screen stays on + no idle sleep, for 2 hours ``` Duration is `-t <seconds>`: 2h = 7200, 7h = 25200, overnight (9h) = 32400. ## Aggressiveness levels | Flags | Effect | |---|---| | `-i` | prevents idle **system** sleep only (screen may still dim/lock) | | `-d` | prevents **display** sleep (screen stays on) | | `-d -i` | **default choice** — screen on + system awake | | `-d -i -s` | adds `-s`: prevents sleep even on AC power semantics; `-s` only works when plugged in | | `-u -t 1` | simulates user activity — wakes the display right now | Default to `-d -i -t <seconds>` unless the user says otherwise. ## Tie to a process instead of a timer ```bash caffeinate -d -i -w <PID> # stays awake until that process exits (great for builds) caffeinate -i npm run build # wraps a command; exits when the command finishes ``` ## Run
- When to Use
- Quick start — the standard command
- Aggressiveness levels
- Tie to a process instead of a timer
- Run it in a visible terminal (cmux pane)
- Verify and monitor
- Keyboard backlight
- Stop early
- Limitations
caffeinate -d -i -t 7200 # full power: screen stays on + no idle sleep, for 2 hours caffeinate -d -i -w <PID> # stays awake until that process exits (great for builds) caffeinate -i npm run build # wraps a command; exits when the command finishes cmux send --surface surface:<N> "caffeinate -d -i -t 25200\n" pgrep -fl caffeinate # is it running? shows exact flags ps -o etime= -p <PID> # how long it's been running pmset -g assertions | grep -i deny # confirm sleep assertions are active pkill -f "caffeinate -d -i" # or Ctrl+C in the pane running it
What does the anti-sleep skill do?
Keep a Mac awake with caffeinate during long builds, downloads, or supervised automation runs.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill anti-sleep --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.