ToolsThe story, in brief

Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work

Engineers stopped closing their MacBooks to keep AI agents running. This open-source app fixes it.

Illustration of independent geometric mechanisms passing paper tasks along branching amber tracks.
AI agents and the coordination of work.AI illustration by KeyNews
The KeyNews take

Why it matters

Adrafinil addresses a real operational friction point in agent-native development workflows—keeping compute available for autonomous tasks without manual intervention or battery drain. It's a small but telling indicator of how developer tooling must adapt to agent-first work patterns.

The key facts

13 to know
  1. Detects activity in Claude Code, Codex, and other agent platforms

  2. Uses pmset disablesleep to prevent Mac sleep with lid closed

  3. Automatically re-enables sleep when agent task completes

  4. Includes optional MCP for agent-directed sleep control

  5. Open source (MIT license), fully notarized binaries

  6. Solves real friction: engineers leaving MacBooks half-open to avoid forced sleep during agent execution

  7. Published on Hacker News, early-stage adoption signal

  8. Adrafinil detects active agent work and prevents sleep via pmset disablesleep

  9. Integrates with Claude Code, Codex, and other agent platforms

  10. MIT open source, fully notarized binaries

  11. Solves real developer workflow friction: agents stopping on lid closure

  12. Features menu bar status indicator and optional MCP for manual control

  13. Includes thermal safety—allows sleep if overheating detected

Go to the source

Hacker Newsgithub.com

Publisher excerpt: A month ago there was a wave of posts and tweets about engineers walking around cafes and parks with their MacBooks propped half-open, as fully closing the lid forces sleep that stops their AI agents. Some people made snarky comments about using tmux or Amphetamine, and some defended their choice…
Read original report
Back to today's editionMore tools news

Keep reading

Related stories

More from Tools