← Open Source
kageroumado

adrafinil

Keep your Mac awake only while AI coding agents are working.

ApplicationsPersonalProductivitySwift
Open on GitHub
Momentum
+2stars in 24 hours+0.4%
512
Stars
24
Forks
7
Contributors
Created 2026-06-05 · Updated 2026-10-16 · #4312 today
Top developers
kageroumadotylerolsonartginzburg
README

Adrafinil

Adrafinil keeps a Mac awake through a closed lid while a coding agent works, then releases the hold when the turn ends. Hooks track active work across agents; a thermal cutout and automatic release of abandoned holds limit unattended runs.

Highlights

  • Keep a closed-lid Mac running for the duration of agent work.
  • Track overlapping agents independently; sleep resumes after the last hold ends.
  • Limit unattended holds with a thermal cutout and abandoned-session cleanup.

Full feature list

  • Hooks for Claude Code, Codex, Cursor, Gemini CLI, Devin, Aider, Hermes, OpenCode, Cline, and Pi.
  • Per-session acquire/release, timed holds, and manual Let it sleep control.
  • Closed-lid sleep control through a privileged helper.
  • CLI and MCP access; custom integrations through hooks or command wrappers.
  • Thermal cutout and automatic release of abandoned holds.
  • Optional detection of running agent processes, lid-close audio confirmation, and a lid-open activity/temperature summary.
  • Hook removal during uninstall.

Notes

Nearby in the ranking
Similar items