Amphetamine, caffeinate, pmset
A wake tool is not a finished Claude Code run.
Amphetamine and caffeinate can help keep a Mac awake. For unattended Claude Code work, you still need a bounded task, host heartbeat, battery and heat checks, network proof, restore, and a receipt.
Good manual control
Use it when a human wants a menu-bar awake toggle. Pair it with a separate receipt if a local agent is changing files while you are away.
Good script primitive
Use it for open-lid idle sleep and short shell wrappers. Do not treat a running process as proof the closed-lid host stayed healthy.
Good Codex handoff
Use it when the agent should enable temporary awake mode, verify host state, stop cleanly, restore sleep behavior, and leave a run receipt.
Host heartbeat
Make the awake tool prove itself.
Run this beside Amphetamine, caffeinate, pmset, or a Codex-managed local run so you can see whether timestamps kept moving.
while true; do date >> ~/claude-code-awake-tool-host.log; sleep 30; done
Ask the agent to audit the host layer.
Paste this before leaving Claude Code with Amphetamine, caffeinate, pmset, or any awake wrapper.
Audit this Mac awake setup for a local Claude Code run. Identify whether it uses Amphetamine, caffeinate, pmset, or another wrapper. Then verify the missing host layer: bounded task, time cap, heartbeat timestamps outside Claude, battery, heat, Wi-Fi/SSH reachability, stop condition, and restored normal sleep behavior. If the task can run on a server, move it there. Stop for login, payment, destructive ambiguity, unsafe heat/battery, or unclear restore state.
Want Codex to handle the temporary host mode?
Take A Coffee gives Codex a temporary awake mode, host checks, restore step, and receipt for macOS and Windows notebook runs.