陽炎窓
Adrafinil

rx no.006 ・ wakefulness

Adrafinil

Keep agents running with the lid closed.

Keeps your Mac awake only while AI agents work, even with the lid closed. The last session releases the hold so your Mac can sleep.

macOS · free · open source · MIT

01 ・ how it works

Awake while agents work.

An agent acquires a hold when a turn starts and releases it when idle. Sleep is blocked while at least one session holds an assertion.

Install hooks for Claude Code, Codex, Hermes, and other agents in one click. Overlapping sessions are counted; the last release lets the Mac sleep. An idle prompt leaves normal sleep enabled.

Foreground processes run at full speed with the lid closed under a hold, verified on-device.

Adrafinil keeping the Mac awake while Claude Code works, with session time and temperature
Agent working
Adrafinil sleeping normally with a Keep awake button
Normal sleep
Adrafinil’s manual hold picker: 15 minutes, 30 minutes, one hour, or indefinitely
Manual hold

02 ・ commands

Control session holds.

adrafinil acquire <session-key> --tool claude-codeadrafinil release <session-key>adrafinil hold --for 30m --reason "deploy"

Use a timed hold for work that continues after the agent replies.

03 ・ the label

Close the lid. Hear the chime.

服用注意 ・ requirements & limitsClosed-lid operation requires an audited root helper with one method: setSleepBlocked(Bool). Policy runs without root. The helper uses pmset disablesleep, which also blocks idle sleep, and resets it when the helper restarts. To restore sleep manually: sudo pmset -a disablesleep 0.

Get Adrafinil

macOS · free · open source · rx no.006

Download Adrafinil ↓