Adrafinil is a Mac utility that keeps the system awake only during active AI coding sessions, preventing sleep during lid-closed work. It dynamically manages assertions to ensure normal sleep behavior when agents are idle, offering a targeted alternative to always-on wake tools.
Highlights
Agent-aware sleep management blocks sleep only when AI agents are active.
Supports clamshell mode to prevent lid-closed sleep during coding tasks.
Uses isolated privileged helpers for secure sleep control.
Includes thermal cutouts to prevent overheating with closed lids.
Integrates with nine major AI coding agents via one-click install.