Hold
Awake while the agent works
Every prompt, tool call, tool result, subagent, compaction and answer counts as work. The computer stays awake until 15 minutes after the last one, then your own sleep settings apply again.
And sleeps when the agent goes quiet. A Claude Code plugin, and an Agent Plugins package any client of the core loads as it is.
No more caffeinate in a spare terminal that you forget to stop.
Hold, wait, one process, status
Hold
Every prompt, tool call, tool result, subagent, compaction and answer counts as work. The computer stays awake until 15 minutes after the last one, then your own sleep settings apply again.
Wait
A model turn still running, a tool call that takes long, a build started with run_in_background, a background subagent or a monitor: while any of them lasts, the computer stays awake. Waiting for you on a prompt does not count.
One
Ten sessions in three clients start one background process, which holds the computer with caffeinate on macOS and systemd-inhibit on Linux. On a tool call the hook runs a short shell script that updates one file’s time.
Status
The status line shows the minutes left, or awake: not held when the system refused the hold. awake status in a shell says why.
Limits
A closed lid on battery puts a Mac to sleep whatever holds it; awake changes no system setting. Outside Claude Code only the hook’s events count. Windows is not supported yet.
v0.3.0
3 changes
v0.2.0
1 change
v0.1.0
4 changes
Free · MIT license
claude plugin marketplace add localixai/plugins in a terminal.
claude plugin install awake@localix-lab, then restart Claude Code.
The status line shows the hold. It needs node 20 or newer, on macOS or Linux.