TESIGN
SAVED

EN · KO

  1. TESIGN / RADAR
  2. Adrafinil

Adrafinil

Mac wake-lock for agent users

WHO USES ITMac users who leave agents working overnight · People who carry a laptop in a bag · Developers running long builds or deploys

Install to use

Keeps a Mac awake only while a coding agent works, lid closed or not; normal sleep after.

★ 475▲ 124 HN

475 stars · checked on GitHub GitHub check 30 h late · no 7-day star increase observed (GH Archive) (as of ) · 124 Show HN points observed

CROSS-SIGNAL Show HN + GitHub BACK CATALOG

TESIGN TAKE

A small utility that reframes the problem from 'always awake' to 'awake only while there is work', notable for isolating the root-level sleep control in a separate helper that exposes a single setSleepBlocked call. It needs macOS 26.4 or later.

INSTALL

AT A GLANCE

LICENSE
MIT
USAGE
Use, change and redistribute, commercially too. Keep the notice.
LANGUAGE
Swift
PLATFORM
macos
ACTIVITY
last commit 24 days ago () · latest release v1.7.0 () · 14 releases
COMMUNITY
4 contributors · 2 open issues (incl. PRs) · made by: an individual
SOURCES
Show HN + GitHub
OPEN SOURCE
YES
FIRST SEEN
CATEGORY
AI · PRODUCTIVITY

A summary, not legal advice.

WHY IT MATTERS

Leave caffeinate or Amphetamine on for an overnight agent and the Mac stays awake long after the work ends; Adrafinil has agent hooks call acquire when a turn starts and release when it stops, blocking sleep (including lid-closed clamshell sleep) only while work is actually running, and returning to normal sleep the moment the last session lets go. One click installs hooks for nine agents (Claude Code, Codex, Cursor, Gemini CLI, Aider, Hermes, OpenCode, Cline, Pi), the CLI round-trips in under 50 ms so it never stalls an agent, and a thermal cutout releases every hold if temperature crosses a threshold with the lid closed.

BUILD FROM THIS

  • Wrap any tool that has hooks with `adrafinil acquire` / `release`, bracket hookless commands in the shell, or place a timed hold with `adrafinil hold --for 2h`. Through the bundled MCP tool (`adrafinil mcp`) an agent can ask to stay awake for a long build or deploy that outlives its reply.

WHO IT'S FOR

Mac users who leave agents working overnight
awake only while the agent works, even with the lid closed, then normal sleep
People who carry a laptop in a bag
a thermal cutout, a lid-close chime and a summary when you reopen
Developers running long builds or deploys
the agent requests a timed hold over MCP or the CLI

START IN 5 MINUTES

# brew install --cask adrafinil
# Or open the signed, notarized DMG from https://github.com/kageroumado/adrafinil/releases/latest and drag Adrafinil to Applications (the first launch asks for admin rights once)
# Wire agent hooks from the in-app installer with one click, or via the CLI: adrafinil install-hooks

CAVEATS

  • MIT licence.
  • Requires macOS Tahoe 26.4 or later (the author tests only on 26.4; a backport fork for macOS 15 Sequoia is maintained by someone else). The standard install needs admin rights — lid-closed sleep is overridden by a root helper using `pmset disablesleep`.
  • Custom agents without hooks are not auto-detected, so pair every acquire with a release; the idle-release timeout and per-hold time limits are the safety net.

RECEIPT

FIRST SEEN
AT SOURCE
KEPT
CREATED → FIRST SEEN
77d
SOURCES
Show HN + GitHub
◌ BACK CATALOG
Reconstructed from archive data, not a live discovery.

The same facts in machine-readable form — View as Markdown · JSON

SIMILAR TOOLS

Up to five from AI by ★ total: edited entries first, then repository cards; this entry is highlighted. Drawn from the same stored snapshot as the rankings — a comparison, not a recommendation.

IMAGENAME★ TOTAL▲ 7dLICENSEPLATFORMLAST PUSH
ECC README banner: headline 'The operating system for AI agent harnesses', harness chips, and skill, agent and command lists.
eccSkills, memory and security for agents★ 259k▲ +832MITpermissivewindows · macos · linux · cli
Hermes Agent landing: blue background, the headline 'The agent that grows with you' and an engraving-style winged figure.
Hermes AgentSelf-improving personal agent★ 246k▲ +375MITpermissivelinux · macos · windows · android · cli
DeepSeek Harness landing: blue background, the headline 'Everything is a plugin' and a quick-start box with the npx command.
DeepSeek HarnessPlugin agent harness for developers★ 225k▲ +1,356MITpermissiveweb · cli
Three states of the Adrafinil menu bar popover: awake while an agent works (Keep awake / Let it sleep controls), idle with normal sleep, and a hold duration picker from 15 minutes to indefinite
AdrafinilMac wake-lock for agent usersTHIS ENTRY★ 475MITpermissivemacos
mattpocock/skillsCARD★ 261k▲ +872MITpermissive

TIMELINE

  1. Repository created
  2. Show HN post ↗
  3. FIRST SEEN BY TESIGN ◌ BACK CATALOG