AI UNDERDOGSDAILY PICK
AI UNDERDOGS
AI 写代码时,Mac 才不睡
Mac stays awake only when AI codes
kageroumado/adrafinil
让 Claude 跑个长任务
回来一看——屏幕黑了
Agent 早就断了
adrafinil 就是专门治这个的
You leave Claude running a long task, come
back to a dead screen and a killed
agent. adrafinil fixes exactly that
只在 AI Agent 跑着时防休眠
Caffeine, but AI-aware
它不是 Caffeine 那种一开就全局防睡眠的东西
adrafinil 会监测你的 AI 编码终端——Claude Code
Cursor
Copilot 这些——只有它们在跑的时候才保持唤醒
任务结束自动恢复正常睡眠
It's not like Caffeine that just disables sleep
globally. adrafinil monitors your AI coding terminals —
Claude Code, Cursor, Copilot — keeps your Mac
awake only while they're running, then lets it
sleep normally again
★ SIGNAL 1
它知道谁是 AI Agent
It knows which processes are AI
有意思的地方是它怎么判断「AI 正在干活」
它不是检测某个窗口有没有在前台
而是用 macOS 底层命令去查进程——只要 Claude Code 或者 Cursor 的后端进程还在活跃
就算你切到别的窗口了
Mac 也不会睡
The clever part is how it detects 'AI
is working.' It doesn't just check if a
window is in the foreground — it uses
macOS process APIs to watch the backend processes
Even if you switch to another app, as
long as the agent is running, your Mac
stays awake
★ SIGNAL 2
开源、零依赖、轻到不行
Open source, zero deps, featherweight
整个工具就是一个 Shell 脚本加一个 LaunchAgent plist
没有任何第三方依赖
装起来就两行命令,卸载也是两行
这种「能用脚本解决就别装 App」的思路
是真 indie hacker 的味道
The whole thing is a shell script plus
a LaunchAgent plist — zero third-party dependencies. Install
with two commands, uninstall with two commands. The
'if a script can do it, don't ship
an app' philosophy is pure indie hacker energy
作者用 adrafinil 命名——这是一种促进清醒的药物前体
代谢后变成 modafinil
给 Mac 吃「聪明药」让它不睡觉
这个命名品味是真的好
目前项目还在早期阶段
只支持几种主流 Agent
但这个方向太刚需了
The name adrafinil is a wakefulness-promoting drug that
metabolizes into modafinil — literally giving your Mac
a smart pill to stay awake. The naming
is chef's kiss. Still early days with only
a few agents supported, but the pain point
is dead real
AI UNDERDOGS
专治跑任务跑到一半屏幕黑了
No more dead screens mid-agent run
kageroumado/adrafinil
关注 · 每天发现更多 AI 神作
github.com/kageroumado/adrafinil