Skip to content

Anti-Sleep (Mac Keep-Awake)

Keeps a Mac awake during long builds, downloads, or supervised tasks using caffeinate.

Stars
49,023
Licence
MIT
Files
1 file

What it does

When installed, the agent knows how to use macOS's built-in caffeinate command to stop the Mac from going to sleep while a long job runs, such as a build, a large download, or an automation run you are watching. It picks sensible flags, sets a time limit, and checks that the sleep block is active. It also explains that the block ends silently when its timer runs out.

Great for

  • Developers running long builds or test suites on a Mac
  • People downloading large files or running overnight jobs they are supervising
  • Users who want an agent to keep a Mac awake without installing extra software

Skip it if

  • Non-Mac systems, because caffeinate is macOS-only and the skill will not work on Windows or Linux
  • Unattended jobs left running without oversight, since the skill itself says long runs need explicit user approval and it cannot protect against lid closure, shutdown or power loss

Try asking

  • “Keep my Mac awake for the next 2 hours while this build runs”
  • “Stop the Mac sleeping until process 4821 finishes”
  • “Check whether caffeinate is still running and when it will expire”
  • “Run a caffeinate session in my terminal pane so I can Ctrl+C it later”
Step-by-step guide: how to use Anti-Sleep (Mac Keep-Awake)Install, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the MIT licence and an attribution note.

    anti-sleep.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip anti-sleep.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip anti-sleep.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Ask the agent to record the PID and expiry time so you can check or stop the session later
  • Use -d only when you truly need the screen on, since it uses more power
  • Verify with pgrep rather than the terminal, because caffeinate prints nothing while running

What's inside

  • SKILL.md

Redistributed unmodified from sickn33/agentic-awesome-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.