
Adrafinil: the macOS utility that prevents sleep only when your AI agents are working
Adrafinil is an open-source CLI tool for macOS that prevents the computer from sleeping only while agents such as Claude Code, Cursor or Aider are actively running. Unlike caffeinate or Amphetamine, it integrates directly with the agents' hooks and releases the system when it detects inactivity.
















