Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
A context-aware solution to prevent MacBooks from sleeping during AI agent activity, differentiating from generic sleep-preventing apps by activating only when needed and addressing battery drain concerns.
View Origin Link
Product Positioning & Context
AI Executive Synthesis
A context-aware solution to prevent MacBooks from sleeping during AI agent activity, differentiating from generic sleep-preventing apps by activating only when needed and addressing battery drain concerns.
This product addresses a specific, emerging pain point for developers utilizing local AI agents on MacBooks. The market implication is a growing need for intelligent power management solutions that adapt to compute-intensive, background tasks, particularly those involving AI. Current solutions like `caffeinate` or generic keep-awake apps are insufficient due to battery drain and manual management overhead. Adrafinil's context-aware activation, tied to specific AI agent activity, highlights a trend towards more granular, automated system resource management. The open-source nature and focus on security (notarized, minimal privilege root helper) are critical for developer adoption. This product targets a niche but expanding segment of AI developers, indicating a market for specialized utility software that optimizes hardware utilization for AI workloads.
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 with “but I only need it sometimes, and forgetting to disable Amphetamine and finding my laptop discharged in my bag is worse.”This is a solution to this problem. Unlike caffeinate, it will prevent your MacBook from sleeping even with the lid closed, with no external power or display, using pmset disablesleep 1. Unlike other sleep-preventing apps, Adrafinil only activates when there’s an agent actively doing something. It detects agent activity through hooks it installs into Claude Code, Codex, and others. To reassure you it’s working, the app shows the active status in the menu bar, and it plays a chime when you close the lid.Once the agent is done, Adrafinil detects it and lets the laptop go to sleep by setting pmset disablesleep back to 0. It will also let it sleep in case of overheating. And if you want to manually toggle it, you can install an optional MCP and tell your agent to keep the MacBook awake for a specific time.It has four binaries, one of which is a root helper exposing a single setSleepBlocked call. All the logic and policy live in the unprivileged parts. They’re all notarized, and the app is fully open source (MIT).
pmset disablesleep 1
pmset disablesleep back to 0
Claude Code
Codex
root helper
setSleepBlocked call
unprivileged parts
notarized
Related Ecosystem & Alternatives
Discover adjacent products, open-source repositories, and developer tools sharing similar technical architecture.
Deep-Dive FAQs
What is Adrafinil – keep a lid-closed Mac awake only while agents work?
Adrafinil – keep a lid-closed Mac awake only while agents work is analyzed by our AI as: A context-aware solution to prevent MacBooks from sleeping during AI agent activity, differentiating from generic sleep-preventing apps by activating only when needed and addressing battery drain concerns.. It focuses on This product addresses a specific, emerging pain point for developers utilizing local AI agents on MacBooks. The market implication is a growing ne...
Where did Adrafinil – keep a lid-closed Mac awake only while agents work originate?
Data for Adrafinil – keep a lid-closed Mac awake only while agents work was aggregated directly from the Hacker News community ecosystem, representing raw developer and early-adopter sentiment.
When was Adrafinil – keep a lid-closed Mac awake only while agents work publicly launched?
The initial public indexing or launch date for Adrafinil – keep a lid-closed Mac awake only while agents work within our tracked developer communities was recorded on June 28, 2026.
How popular is Adrafinil – keep a lid-closed Mac awake only while agents work?
Adrafinil – keep a lid-closed Mac awake only while agents work has achieved measurable traction, logging over 100 traction score and facilitating 61 recorded discussions or engagements.
Which technical categories define Adrafinil – keep a lid-closed Mac awake only while agents work?
Based on metadata extraction, Adrafinil – keep a lid-closed Mac awake only while agents work is categorized under topics such as: pmset disablesleep 1, pmset disablesleep back to 0, Claude Code, Codex.
What are some commercial alternatives to Adrafinil – keep a lid-closed Mac awake only while agents work?
Our semantic intelligence engine identifies potential commercial alternatives in the SaaS space, such as Velo 3.0, which offers overlapping value propositions.
How does the creator describe Adrafinil – keep a lid-closed Mac awake only while agents work?
The original author or development team describes the product as follows: "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 agen..."
Community Voice & Feedback
Discovery Source

Hacker News
Aggregated via automated community intelligence tracking.
Tech Stack Dependencies
No direct open-source NPM package mentions detected in the product documentation.
Media Tractions & Mentions
No mainstream media stories specifically mentioning this product name have been intercepted yet.
Deep Research & Science
No direct peer-reviewed scientific literature matched with this product's architecture.