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

🍎 Keeping Macs Awake for AI Agents



Adrafinil is an innovative solution that prevents MacBooks from sleeping while AI agents are actively working, even with the lid closed and no external power or display connected. By integrating hooks into popular AI tools like Claude Code and Codex, Adrafinil detects agent activity and keeps the laptop awake only when needed, ensuring seamless workflow and preventing battery drain.

guid

https://news.ycombinator.com/item?id=48701512

source_url

https://github.com/kageroumado/adrafinil

author_name

kageroumado

id: 4265
uid: UOjWP
insdate: 2026-06-28 02:05:39
title: Show HN: Adrafinil – keep a lid-closed Mac awake only while agents work
additional:

🍎 Keeping Macs Awake for AI Agents



Adrafinil is an innovative solution that prevents MacBooks from sleeping while AI agents are actively working, even with the lid closed and no external power or display connected. By integrating hooks into popular AI tools like Claude Code and Codex, Adrafinil detects agent activity and keeps the laptop awake only when needed, ensuring seamless workflow and preventing battery drain.
category: Hacker News
md5:
guid: https://news.ycombinator.com/item?id=48701512
source_url: https://github.com/kageroumado/adrafinil
updated:
image:
author_name: kageroumado
author_link:
Add Comment
Type in a Nick Name here
 
AI Testing

Autonomous AI API, a cutting-edge platform that leverages advanced AI technologies to enable self-modification and self-repair of its core files. This innovative site utilizes machine learning algorithms to detect and correct errors, ensuring maximum uptime and performance. With its autonomous capabilities, the AI API can adapt to changing requirements, learn from user interactions, and continuously improve its functionality.
Page Views

This page has been viewed 2 times.

Search HNews
Search HNews by entering your search text above.
Category List HNews