跳到正文

Adrafinil 版本记录

@kageroumado · 在 AI 智能体工作时,即使合上 Mac 屏幕也能保持唤醒,并在会话结束后恢复睡眠。

Cask系统工具自带更新 536
主页
安装命令
brew install --cask adrafinil
近 30 天安装
63
App榜第 1295
近一年安装
279
365 天累计
最新版本
1.15.0
下载大小
5.0MB
dmg
更新节奏
每周
近 30 天 4 个版本
  1. 1.15.0

    最新

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 26 起

    Adrafinil 1.15.0 新增默认关闭的选项,让插着电源的 MacBook 合盖后仍保持唤醒,支持 Google Antigravity 应用与 agy 命令行,并修复后台保持过早结束的问题。(GitHub Release v1.15.0,2026-12-01)https://github.com/kageroumado/adrafinil/releases/tag/v1.15.0

    唤醒
    新增默认关闭的选项,插电时合盖也保持 MacBook 唤醒
    Antigravity
    支持 Antigravity 应用与 agy 命令行,工作时保持唤醒
    保持
    后台保持现在用完整个 TTL,不再 90 秒后就释放
    温度
    温度保护只在持续降温十分钟后才解除
    睡眠
    合盖触发保护后,直接让 Mac 睡眠而不是等空闲
  2. 1.14.4

    补丁

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 26 起

    Adrafinil 1.14.4 于 2026 年 11 月 19 日发布,阻止其他 Mac 应用开关其睡眠拦截,并让代理钩子在特殊文件夹名下继续工作。

    安全
    其他应用不能再通过助手开关睡眠拦截。
    钩子
    文件夹名含引号、$ 或反引号时,代理钩子仍可用。

    Adrafinil 1.14.4 在 AI 编程代理工作时让 Mac 保持唤醒。2026 年 11 月 19 日发布。它阻止其他应用通过助手开关睡眠拦截,并在应用所在文件夹名含引号、$ 或反引号时,仍让 Aider、Cline 和 Hermes 钩子正常工作。

    来源:https://github.com/kageroumado/adrafinil/releases/tag/v1.14.4

  3. 1.14.2

    展开

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 26 起

    Adrafinil 1.14.2 会在使用自定义配置目录的 Claude Code 会话期间保持 Mac 唤醒,并去掉一条 Codex 钩子误报。

    Adrafinil 1.14.2 于 2026 年 11 月 12 日发布。使用自定义配置文件夹运行 Claude Code 的人,可以在这些会话期间让 Mac 保持唤醒;同时去掉一条关于 Codex 钩子的误报。

    • Adrafinil 能看到使用自定义 CLAUDE_CONFIG_DIR 的配置文件夹里的 Claude Code 会话:install-hooks --config-dir <dir>。感谢 @zerosrat。
    • 当 ~/.codex/config.toml 给键加了引号时,不再误报 “Codex hooks untrusted”。

    来源:https://github.com/kageroumado/adrafinil/releases/tag/v1.14.2

  4. 1.14.1

    展开

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 26 起

    现在更新后应用会自动重启。

    Adrafinil 1.14.1 于 2026-11-03 发布,更新后应用会自行重启。

    • 自动更新后,Adrafinil 不会再一直运行旧版本直到你退出,也不会反复提示安装已经装好的更新;它会退出并以新版本重新打开。
    • 从 1.14.0 更新时,安装由旧版本执行,因此之后可能需要退出并重新打开 Adrafinil 一次;之后的更新会自动重启。

    Source: https://github.com/kageroumado/adrafinil/releases/tag/v1.14.1

  5. 1.14.0

    展开

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 26 起

    Adrafinil 1.14.0 于 2026-10-31 发布,仅在 OpenCode 工作时保持 Mac 唤醒,并支持 OpenCode 2.x。

    Adrafinil 1.14.0 于 2026-10-31 发布,仅在 OpenCode 工作时保持 Mac 唤醒,并支持 OpenCode 2.x。

    变更

    • OpenCode 现在仅在其工作时保持你的 Mac 唤醒:在所有模式(终端应用、opencode serve、web 和 acp)下,保持仅持续一个回合,因此 Mac 可在回合之间休眠,长时间运行的 OpenCode 服务器也不会再让它托管过的每个聊天都保持唤醒(#34、#35)。
    • 支持 OpenCode 2.x:插件现在同时支持 1.x 和 2.x,Adrafinil 会在你首次打开此版本时重写插件。
  6. 1.13.1

    展开

    OpenNavo 编辑 Homebrew 收录

    兼容性macOS 26 起

    “立即更新”现在始终安装最新版本,不再误用此前缓存的下载。每四小时检查更新;打开菜单或唤醒 Mac 时,若距上次检查超过一小时,也会重新检查。

    “立即更新”现在始终安装最新版本,不再误用此前缓存的下载。每四小时检查更新;打开菜单或唤醒 Mac 时,若距上次检查超过一小时,也会重新检查。

  7. 1.13.0

    展开

    OpenNavo 编辑 Homebrew 收录

    兼容性arm64: macOS 26.4 起 · x86_64: macOS 26.4 起

    新增自愿参与的匿名每日统计,设置中列明采集字段,关闭后删除该 Mac 已发送的数据。应用及 README 新增日语支持。

    新增自愿参与的匿名每日统计,设置中列明采集字段,关闭后删除该 Mac 已发送的数据。应用及 README 新增日语支持。

    Source

  8. 1.12.0

    展开

    OpenNavo 编辑 Homebrew 收录

    新增 Devin CLI 和 Devin Desktop 的 Devin Local 钩子及 MCP 支持,在任务执行期间保持 Mac 唤醒。启用“Keep the Mac awake for them too”时,同类包装进程和子进程只建立一个唤醒保持,避免任务结束后保持仍持续。

    本地化摘要

    新增 Devin CLI 和 Devin Desktop 的 Devin Local 钩子及 MCP 支持,在任务执行期间保持 Mac 唤醒。启用“Keep the Mac awake for them too”时,同类包装进程和子进程只建立一个唤醒保持,避免任务结束后保持仍持续。

    完整官方英文原文(未删节)

    Download: Adrafinil-1.12.0.dmg

    • Devin support. Adrafinil installs hooks for the Devin CLI and Devin Desktop's Devin Local agent, so a Devin turn keeps the Mac awake until it finishes, and offers its MCP server to Devin the same way it does to Claude Code. Contributed by @tylerolson.
    • With "Keep the Mac awake for them too" on, an agent that runs as a wrapper plus a child process of the same kind gets one hold instead of two, so a sniffed hold no longer outlives the turn that ended it.

    官方来源

  9. 1.11.0

    展开

    OpenNavo 编辑 Homebrew 收录

    Claude Code 的 Monitor 和后台命令在整个 TTL 内阻止 Mac 休眠。过热保护需连续低温十分钟才会解除;合盖且无外部显示器时,安全保护会直接请求休眠。

    Adrafinil-1.11.0.dmg

    • Claude Code 的 Monitor 现在会阻止 Mac 休眠。启用“后台 shell 命令运行时保持 Mac 唤醒”后,每个 Monitor 的防休眠保持时间为其自身截止时间再加一分钟,因此监控任务超过当前轮次后也不会让 Mac 提前休眠。由 @elboletaire 贡献。
    • 后台防休眠保持会持续整个 TTL。此前后台命令或 Monitor 的保持会在智能体停止活动 90 秒后释放,因为空闲检查测量的是智能体自身的 CPU 使用率,而非后台任务。现在只有 TTL 到期或智能体退出才会结束保持。
    • 过热保护触发后,必须持续保持低温十分钟才能解除。此前间歇性负载在批次之间短暂降温可能解除保护,重新接管 Mac 后又使其升温。
    • 合盖且未连接外部显示器时,安全保护触发后会直接请求 Mac 休眠,不再依赖可能被其他防休眠断言延迟的空闲休眠。

    官方来源

  10. 1.10.0

    展开

    OpenNavo 编辑 Homebrew 收录

    此版本修复了因先前版本名称不匹配导致的更新推送问题,并明确说明更新失败原因。

    更新
    从此版本起,“立即更新”和自动更新均可使用。失败提示会区分版本没有下载文件与下载本身失败。

    Adrafinil 1.10.0 解决了更新推送问题:Adrafinil 1.9 发布时使用了更新程序无法识别的名称,因此更早版本未能提供该更新。从此版本起,“立即更新”和自动更新均可使用。

    更新失败时,提示会说明是该版本没有下载文件,还是下载过程本身失败。

    此版本提供 Adrafinil-1.10.0.dmg。

    来源:Adrafinil v1.10.0 发布说明

  11. 1.9

    展开

    OpenNavo 编辑 Homebrew 收录

    新增简体中文本地化;长时间运行的代理计时器改为显示小时;并在 README 中记录终端安装的解决方法。

    本地化
    应用界面和安全警告新增简体中文翻译。
    计时器
    运行时间较长的代理计时器现在会显示小时。
    安装
    README 记录了终端安装问题的解决方法。

    Adrafinil 现已支持简体中文。菜单、设置、初始设置流程、Codex 信任引导、What's New、“离开期间”通知以及守护进程安全警告均已翻译。应用会遵循 macOS 语言设置,时长也会以英语和中文各自自然的形式显示。

    工作时间超过一小时的代理计时器会显示小时,例如将 75m 3s 改为 1h 15m。

    README 现已记录一行命令即可应用的终端安装问题解决方法:通过 curl 和 cp 复制的文件会保留 com.apple.provenance 属性,这可能导致后台服务注册失败且不显示错误。

    来源:Adrafinil 1.9 发布说明

  12. 1.8

    展开

    OpenNavo 编辑 Homebrew 收录

    面向 macOS 27 的细节打磨版本,调整弹出面板的玻璃风格并将操作按钮改为圆形。

    弹出面板
    调整弹出面板,使其适配 macOS 27 的玻璃风格。将“设置”和“退出”按钮改为圆形,以匹配底栏。统一按钮高度,并调整其与底部及侧边的间距。退出确认界面改用圆形“取消”按钮和红色 ✕。

    Adrafinil 1.8 是面向 macOS 27 的细节打磨版本。此版本调整弹出面板,使其适配系统的玻璃风格。由于 macOS 27 会将玻璃按钮绘制成宽胶囊形,“设置”和“退出”按钮此前显得像药丸;现在它们改为圆形,高度与底栏一致,与侧边和底边的间距也保持一致。退出确认界面也采用了更新后的样式,使用圆形“取消”按钮和红色 ✕。

    来源:Adrafinil v1.8 发布说明

  13. 1.7.0

    展开

    GitHub Release Homebrew 收录

    Before the changelog, a word from the family: Adrafinil has siblings. Refrax is a maximalist browser — what a browser becomes when one person builds it for themselves and nobody tells them to stop. Phosphene puts live video wallpapers on your Mac, on the desktop and the lock screen both. And Dantrolene keeps the lock chain from ever starting on the WiFi you call home, so an agent's question is one keypress away instead of a password. All free and open source — go poke around.

    As for this release: follow-through. Both fixes close gaps that careful bug reports exposed, and the updater those reports arrived through now runs lighter.

    Fixed

    • Pi holds can no longer outlive Pi by a day. Pi runs as a Node-hosted process, so the process-tree walk that binds a hold to its owning agent never found it — and a hold whose release event went missing had no owner to die with and no CPU to go idle, leaving it standing until the 24-hour backstop. Pi extensions run inside the host process, so the extension now hands over its own PID outright, valid under every wrapper npm, Homebrew, or Nix can produce, which puts the dead-process and CPU-idle nets back in business; a 4-hour TTL, refreshed every turn, backstops the case where everything else is missed. Already-installed extensions migrate on the next launch. Diagnosed down to the exact resolver line by @iluvshiwoon. (#26)

    • adrafinil release now takes the keys status --json prints — and says so when nothing matched. Feeding a displayed key like opencode:ses_xyz back without --tool used to mint unknown:opencode:ses_xyz, a key that could never match, and exit 0 anyway — a cleanup script could "release" two dozen assertions and touch nothing. A displayed key now releases as-is, and a release that matched nothing exits 1 for scripts, not only at a terminal. Agent hooks are unaffected: they name their tool, and their routine safety-net double releases stay quiet no-ops. Reported, retested on 1.6.0, and pinned down to the exact asymmetry by @t-choudhury. (#25)

    Changed

    • One update check a day, not two. The self-updater and the "a new version is out" notice used to each ask GitHub separately — the same question, twice, with the answer to one thrown away. Tiptoe 1.1.0 added a notify-only mode for exactly this shape of app, so the single daily check now serves both: with auto-install on it downloads and waits for a quiet moment as before, and with it off the same check powers the Settings row, the menu-bar card, and Update Now — which now downloads on demand instead of needing a second updater standing by. Mode and release shipped by @artginzburg, who built the updater in the first place. (#21)

    Still on macOS 15 Sequoia? @valentine maintains a backport fork.

  14. 1.6.0

    展开

    GitHub Release Homebrew 收录

    Half of this release is about what happens when Claude Code stops to ask you something — and when you walk back to answer, there's a second tax waiting: the lock screen, asking for the password it asked an hour ago. Dantrolene exists for exactly that reflex. On the WiFi you call home, the lock chain never starts — the screen still dims and darkens on schedule, but coming back is one keypress, no password — and everywhere else your Mac locks like it should. It auto-holds an Adrafinil assertion while it works, so the pair keeps a home Mac awake and answerable.

    As for this release: two features, and both began as community contributions — one arrived as a pull request, the other as a fully-designed issue.

    New

    • Adrafinil updates itself — downloaded from GitHub Releases, verified against the running app's code signature, and installed at a quiet moment: the Mac idle, and the daemon reporting no agents being kept awake — so an update can never restart the app out from under a working agent. It's on by default with a Settings toggle; turn it off and Adrafinil still tells you when a version is out, with an Update Now button that installs on your word. Either way, a What's New window shows the changelog before an update and announces one after ("Updated to 1.6.0" in the menu). The waiting-for-a-quiet-moment machinery is Tiptoe over mxcl/AppUpdater, contributed — gate design and all — by @artginzburg. (#21)

    • Claude Code's questions no longer pin your Mac awake — a question, a plan approval, or a permission prompt stops the work without firing any hook, so the hold used to stand until the CPU-idle sweep noticed (~48 minutes in the report). Adrafinil now reads the session's own status file — the same signal claude ps uses, flipped by every way a dialog can resolve: answered at the keyboard, answered from your phone over Remote Control, or auto-continued by a question timeout. While a session waits, a new Settings → Safety policy decides the hold's fate: keep the Mac awake, sleep after a grace period (the default, 10 minutes — long enough to answer from your phone, bounded so an unanswered question can't hold the Mac for hours), or sleep right away. Answer late, after the Mac already slept and woke, and the resumed session gets its protection back automatically. The menu says what's happening the whole time: "Waiting for you — approve Bash", with the countdown. Reported with a full trace, and the policy — including why an unconditional release would break answering from your phone — designed by @Conte777. (#20)

    Still on macOS 15 Sequoia? @valentine maintains a backport fork.

  15. 1.5.4

    展开

    GitHub Release Homebrew 收录

    Six fixes — most of them from two exceptional community reports — and a new capability for agents that look at the screen.

    Fixed

    • The app no longer quits itself two seconds after closing Settings — macOS automatic termination treated the window-less menu-bar app as disposable and took the daemon's wake-blocking down with it. Diagnosed down to the AppKit log records by @Conte777. (#18)
    • /clear and plan approvals no longer strand a phantom "1 agent working" — Claude Code retires its session id inside the same process on /clear, /resume, and clear-context plan approvals, so the old session's hold lingered until the idle sweep (64 minutes in the report) and counted against the per-process cap. Adrafinil now releases exactly at that boundary via the SessionEnd hook — and holds the post-clear plan run, which previously ran entirely unprotected (its first message fires no UserPromptSubmit). Existing installs migrate automatically on first launch. Traced to the exact session handover by @Conte777. (#19)
    • The menu bar can no longer claim "No agents active" while a hold is live — a stale status reply racing a fresh push could clobber the UI until the next state change. Status payloads now carry an ordering generation and stale ones are dropped. Captured live, daemon and widget disagreeing, by @t-choudhury. (#22)
    • The popover survives a fleet — with dozens of active holds the list grew past the screen and pushed the footer off entirely; it now caps its height and scrolls internally. (#23)
    • Homebrew installs of OpenCode are tracked again — the real binary Homebrew links to is named opencode.exe (yes, on macOS), so holds bound to the wrong process and the sniffer never saw OpenCode at all. (#24)
    • release accepts every key form status prints, and fails loud — releasing the tool:session form no longer silently succeeds while releasing nothing, and a no-match release exits 1 at a TTY (hooks stay fail-soft). (#25)

    #23–#25 were reported, root-caused across the process table, and offered as fixes by @t-choudhury — thank you both.

    New

    • Display-class holds — adrafinil hold --display (also acquire --display, and keep_display_awake on the MCP tool) keeps the display awake too, and wakes it if it is already dark. For agents that read the screen: when the display sleeps, every app's accessibility tree collapses to a stub, so a normal hold keeps the machine running while blinding the agent. Nothing changes for headless agents — the panel still sleeps by default — and pause, idle release, and the thermal/battery cutouts all outrank a display hold.

      A display hold deliberately stops at the lock screen (locked-but-awake is fully readable). If you also want the lock itself held off while you're on your own network, that is exactly what Dantrolene does — and it auto-holds an Adrafinil assertion while it works, so the pair covers the whole story.

    Still on macOS 15 Sequoia? @valentine maintains a backport fork.

  16. 1.5.3

    展开

    GitHub Release Homebrew 收录

    One fix — again from the community. Thank you!

    • Pi no longer keeps the Mac awake for a whole session — the hold was taken the instant pi launched and kept until the process exited, so opening Pi pinned the Mac awake even while the TUI sat idle at the prompt. It was wrong in the other direction too: since the only acquire happened at launch, one idle release left the rest of the session unprotected with nothing to re-acquire it. Pi now acquires when a turn starts and releases once the agent has settled — after any automatic retry, compaction, or queued follow-up — with a release on shutdown as a safety net. Existing installs migrate automatically on first launch. Reported, diagnosed, and verified on-device by @elboletaire, whose patch is what shipped. (#17)

    Still on macOS 15 Sequoia? @valentine maintains a backport fork.

  17. 1.5.2

    展开

    GitHub Release Homebrew 收录

    Three fixes — and the first release with community contributions. Thank you all!

    • Cursor no longer leaves stale wake holds — the session-scoped hooks kept the Mac awake long after agents finished (Cursor chats are long-lived, and every hold pinned to the one Cursor app process, out of reach of the usual cleanup). Cursor now acquires per prompt and releases when the response finishes, with a one-hour TTL backstop refreshed on each turn. Existing installs migrate automatically on first launch. Thanks to @smokelore for the excellent report, including the on-device-verified fix. (#15)
    • The daemon no longer crash-loops when a helper call fails — an XPC error handler trapped on Swift's actor-isolation check instead of taking the designed reconnect/backoff path. Fixed by @valentine (found while building a backport, see below), independently confirmed by @austintraver. (#12)
    • Fixed a crash in the hidden-icon fallback window — on macOS 26.5, sizing it through preferredContentSize could recurse inside AppKit's constraints pass and terminate the app. Fixed by @austintraver. (#14)

    Still on macOS 15 Sequoia? @valentine maintains a backport fork.

  18. 1.5.1

    展开

    GitHub Release Homebrew 收录

    Two fixes for menu-bar edge cases.

    • The hidden menu-bar icon is no longer a dead end — with "Show in menu bar" off, reopening Adrafinil (Finder/Spotlight) had no surface to click. It now hosts the popover in a real window, so Settings and every control stay reachable. (#11)
    • Hardened the "set up again" button — it could reach for a nil app delegate; re-running setup is now always safe.
  19. 1.5

    展开

    GitHub Release Homebrew 收录

    Your Mac can now tell you when it's going back to sleep — and you can release it from anywhere.

    • Pre-sleep sound cues (Settings ▸ When sleep resumes) — an audible cue plays the moment before a closed-lid Mac resumes sleeping, with a distinct motif for each reason: work complete, hold expired, safety cutout, or released by you. Pick a sound (or silence) per cause, with previews. Because Adrafinil is the sleep gate, the cue is played out before sleep is unblocked — it can never be cut off by the sleep it announces. (#8)
    • adrafinil release --all — the SSH counterpart of the menu bar's force release: drop every keep-awake hold in one command, no hunting for hold keys via status. The daemon attributes it to you, so a closed-lid remote release is acknowledged with the "released by you" cue.
  20. 1.4.0

    展开

    GitHub Release Homebrew 收录

    Keep-awake now covers background sub-agents and background shell tasks, and you can wire up any agent yourself.

    • Sub-agents & background workflows — Adrafinil stays awake while an agent's background sub-agents or workflows are still running, even after the main turn ends, so delegated long-running work isn't cut off when the lid closes. (#7)
    • Background shell commands (opt-in, Settings ▸ Safety) — keep the Mac awake while run_in_background shell commands run; time-bounded so a long-idle job won't pin your Mac awake. (#7)
    • Add your own agent (Settings ▸ Agents) — generate the exact hook snippets to wire up any agent Adrafinil doesn't natively support. (#6)
  21. 1.3.0

    展开

    GitHub Release

    Codex fixes

    • Codex sessions now release when a turn ends. Previously, holds could linger after Codex finished working — your Mac stayed awake until you restarted Adrafinil. Adrafinil now releases the moment a Codex turn completes, and recognizes Homebrew-installed Codex (not just npm).
    • Codex hook trust. Codex only runs hooks you've approved with /hooks. The setup flow and the Agents settings tab now walk you through trusting Adrafinil's hooks and verify it's done.

    Existing users

    • Automatic hook updates. Adrafinil now updates your agents' hooks when you install a new version — no need to re-run setup. Codex users: approve the new hook once with /hooks.

    Menu bar

    • The eye now shows a small dot when something needs your attention — a hook needs reconnecting or trusting, or an update is available.
    • Thermal and low-battery cutouts now show a small thermometer/battery badge on the eye, instead of replacing it with a full icon.
    • An available update is surfaced right in the menu.
  22. 1.2.0

    展开

    GitHub Release

    Keep awake, from the menu bar

    You can now keep your Mac awake for a set time without touching the terminal. Click Keep awake in the menu-bar popover and pick a duration — 15m, 30m, 1h, a custom value you type or step, or ∞ to stay awake until you turn it off. It's the same kind of time-boxed hold that adrafinil hold and the MCP keep_awake tool place, now a click away (requested in #1).

    Also in this release

    • Quit confirmation now grows from the ✕ as a compact strip instead of resizing the whole popover.
    • Hold timers count down in the same friendly 1h 59m style as agent timers.
  23. 1.1.2

    展开

    GitHub Release

    Fixes a first-run installation issue where Adrafinil's background service could fail to register (a macOS Background Task Management collision), leaving it unable to keep your Mac awake with nothing to tell you why. Adrafinil now detects an unreachable or unapproved background service, alerts you, and attempts to repair it automatically — re-registering its services and verifying they come back; if it can't, it walks you through a quick manual fix in Login Items. Also clarifies the MCP keep_awake tool so agents know a hold blocks lid-closed (clamshell) sleep entirely, not just idle sleep.