Your computer stays awake while the agent works

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.

How it works

Hold, wait, one process, status

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.

The status line once the command finished and the agent answered: awake: 15m

Wait

Background work counts

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.

Claude Code after the agent started a command in the background and answered: the status line under the prompt reads awake: waiting: 1 task, beside Claude Code’s own 1 shell

One

One hold for every agent

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

It tells you when it can’t

The status line shows the minutes left, or awake: not held when the system refused the hold. awake status in a shell says why.

The status line when the system refused to keep the computer awake: awake: not held

Limits

What it doesn’t do

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.

Documentation

3 pages →

Releases

Full changelog →
  1. v0.3.0

    3 changes

  2. v0.2.0

    1 change

  3. v0.1.0

    4 changes

Leave the long task running

Free · MIT license

  1. Add the marketplace

    claude plugin marketplace add localixai/plugins in a terminal.

  2. Install the plugin

    claude plugin install awake@localix-lab, then restart Claude Code.

  3. Walk away

    The status line shows the hold. It needs node 20 or newer, on macOS or Linux.