按头安利:Agent Island —— 发完一轮去生活,该你了它会叫你

Must Have: Agent Island — Start the Run, Go Live Your Life

Tech-Experiment #Claude Code#开发工具#macOS#效率工具
更新于
🇨🇳 中文

GitHub:tristan666666/agent-island
官网:agent-island.dev
平台:macOS 13+(SwiftUI,Apple Silicon + Intel)| Windows 10+(WPF)
安装:brew install tristan666666/tap/agentisland
许可:MIT


它解决的那个真实问题

你把任务扔给 Claude Code 或 Codex,然后……等。
等它转,等它转,偶尔回来看一眼,发现它早就停了,配额也到顶了,等了两小时什么都没发生。

或者反过来:你去做别的事,回来后不知道它跑完了没有,打开 terminal 才发现十五分钟前就停了。

Agent Island 就是为这件事造的——让 Agent 工作,你去生活;它转完,叫你;配额回来,自动续命。


它住在哪

Mac:住在 MacBook 的刘海(notch)里,不占 Dock 也不占菜单栏。非刘海机型(Intel、Mac mini、外接显示器)可切换为紧凑顶栏模式。

Windows:原生 WPF 应用,同款检测引擎,顶栏模式或浮动小部件(可拖拽,记住位置),托盘图标常驻显示用量圆环。

两端都是纯原生——Mac 是 SwiftUI,Windows 是 WPF,没有 Electron。


四件核心事

1. 实时状态,一眼知道 Agent 在不在干活

刘海/顶栏里的 Claude 和 Codex 图标,随时镜像真实状态:

图标状态含义
旋转有 session 正在工作
静止没有任何 session 运行,或这轮刚结束(该你了)
红色脉冲需要你处理:限速 / 登录失效 / 网络 / provider 报错

检测是事件驱动的(Mac 用 FSEvents 监听 transcript 文件),状态变化在 Agent 真实停止约 1 秒后就体现出来,不是轮询。


2. 「该你了」闹钟

一轮结束时:

  • 弹出前台闹钟窗口
  • 发送系统通知
  • 播放提示音(内置多个选项,或导入自己的音频文件)

几个细节做得很好:

  • 回复即消失:你在线程里一回复,闹钟自动关掉,不会留着烦你
  • 多轮排队:如果你没注意,连续结束的多轮会排队显示,不会吞掉
  • 直接跳转:Codex session 通过 codex://threads/… 跳到对应线程;Claude CLI session 用 claude --resume 恢复;Claude Desktop 直接把窗口拉到前台

3. 配额耗尽专用闹钟

「轮结束」和「配额到顶」是两件不同的事,Agent Island 给它们各自的闹钟。

配额耗尽时,闹钟上直接显示重置时间——比如「Resets at 15:55 (~2h)」。你不用再去找 Claude 的设置页算几点能用。

有防骚扰设计:启动时如果配额已经是耗尽状态,不触发(只在这次耗尽事件本身触发一次)。


4. 配额重置自动续命

这是最硬核的功能。

给某个 session 绑定一个规则:当 Claude 或 Codex 的使用窗口重置时(或按固定间隔),自动发一条消息(continue / OK / 你自定义的内容)让它继续跑。人不在,夜里它自己续上。

内置的安全机制:

  • 全局开关:Settings 里关掉,任何自动续命都不会触发
  • 目录白名单:续命只对你显式允许的项目目录生效
  • 运行记录:每次执行或拦截都有日志,从 Settings 直接打开文件夹查

诚实说明:Mac 必须处于唤醒状态,每次续命都会消耗 token。


用量岛:配额 + 费用 + 倒计时

刘海里有一块「用量岛」,可滑动翻页,直接显示:

  • Claude / Codex 的 5 小时窗口和周用量百分比
  • 已花费金额
  • 重置倒计时

Claude 登录失效时,Re-authenticate 按钮直接在浏览器打开 claude.com 授权页,拦截回调——不用开 terminal,不用粘贴 code。


安装

macOS(推荐 Homebrew):

brew install tristan666666/tap/agentisland

或直接下载 DMG:最新 Release

首次打开如果 macOS 提示”未经验证”(App 暂无 Apple 开发者账号公证),右键 → 打开一次即可。

Windows:

# Scoop
scoop bucket add agent-island https://github.com/tristan666666/scoop-bucket
scoop install agent-island/agentisland

# winget
winget install TristanTang.AgentIsland

或直接下载 AgentIsland-win-x64.zip,解压运行 AgentIsland.exe。


技术背景

Agent Island fork 自 codex-island(Eric Park 的工作,提供了用量计量和费用统计基础)。

在此之上新增:

  • FSEvents 事件驱动的 session 状态检测
  • 轮结束 / 配额耗尽双闹钟系统
  • Auto-resume 自动续命机制
  • macOS 双布局 + Windows WPF 移植

检测原理:读取 Claude Code、Claude Desktop、Codex 在本机写入的 transcript 文件,识别 stop_reason: end_turn(Claude)和 task_complete(Codex)等结束标记。没有遥测,没有数据上传,一切在本地运行。


适合谁用

  • 重度 Claude Code 用户:同时跑多个 session,需要知道哪个轮到了
  • Claude + Codex 混用用户:两个配额都要盯,自己算太烦
  • 有夜间/后台任务需求:扔给 Agent 跑,自己去做别的,结束了被叫回来
  • 想最大化配额利用率:不等 Agent 发呆,配额一回来立刻续命

GitHub:github.com/tristan666666/agent-island
官网:agent-island.dev

© 2026 Author: Mycelium Protocol

🇬🇧 English

Must Have: Agent Island — Start the Run, Go Live Your Life

GitHub: tristan666666/agent-island | Website: agent-island.dev
macOS 13+ (SwiftUI) | Windows 10+ (WPF) | MIT License
Install: brew install tristan666666/tap/agentisland


The Problem It Solves

You kick off a Claude Code or Codex run, then go do something else — and miss the moment it stopped. Or you sit there babysitting it. Neither is great.

Agent Island’s pitch: start the run, go live your life. It calls you when it’s your turn.


Where It Lives

On Mac: inside the MacBook notch (or compact top bar for non-notch machines). On Windows: native WPF top bar or floating widget. No Electron on either platform.


Four Core Things

1. Live session state in the notch.
Claude and Codex logos spin while sessions run, go still when done, pulse red when something’s wrong. Detection is FSEvents-driven — ~1s latency from real stop.

LogoMeaning
SpinningSession active
StillIdle / turn finished
Red pulseError / rate limit / auth issue

2. “It’s your turn” alarm.
When a turn finishes: alarm window + system notification + sound. Dismisses automatically when you reply. Multiple finished turns queue.

3. Out-of-quota alarm.
Different event, different alarm. Shows the reset countdown: “Resets at 15:55 (~2h)” — so you know exactly when to come back.

4. Auto-resume on quota reset.
Attach a rule to a session: when Claude/Codex’s usage window resets (or on a schedule), Agent Island sends a message (continue, OK, whatever you set) to pick the work back up — unattended, while you sleep.

Safety controls: global kill switch, per-project directory allow-list, full run log.


Usage Island

Swipeable pages in the notch: live Claude + Codex 5-hour / weekly usage, cost, and reset countdowns. Re-auth button for expired Claude sessions opens the real authorize page in your browser — no terminal needed.


Install

# macOS
brew install tristan666666/tap/agentisland

# Windows (winget)
winget install TristanTang.AgentIsland

Or grab the DMG / zip from releases.


How It Works

Reads the transcript files Claude Code, Claude Desktop, and Codex write locally. Detects stop_reason: end_turn (Claude) and task_complete (Codex). Calls provider usage APIs with your existing local credentials. No telemetry, no data upload.

Fork of codex-island (usage/cost foundation by Eric Park) — adds session state detection, turn alarms, auto-resume, and Windows.

GitHub: github.com/tristan666666/agent-island

© 2026 Author: Mycelium Protocol

💬 评论与讨论

使用 GitHub 账号登录后发表评论

关于本站 · 免责声明

🍄 Mushroom Research Blog 是非营利、免费公开的个人科技观察博客与公众号 XStack18,不接受商业合作、不代表任何企业或机构立场,也不谋求商业利益。我们以个人视角客观中立地记录和分析 AI、Web3 等领域的最新模型发布与技术动态——不止转述新闻标题或二手信息,而是给出有独立思考的深入分析,希望帮更多人获得有价值的一手科技认知。

⚠️ 文中介绍的开源代码与模型,仅供学习交流与技术借鉴。它们大多仍处于早期阶段,有待进一步研究和验证,请勿直接用于工作或生产环境;如需采用,请先自行充分测试,并核实其许可证与安全性。
Open-source code and models featured here are shared for learning and reference only. Most are early-stage and still need further study and verification — please don't use them directly in your work or in production. Test them thoroughly and check their licenses and security first.

  1. 本站文章均为作者基于公开信息的个人研究与观点整理,不代表文中提及的任何公司、产品、模型的官方立场,未与其构成商业关联或合作关系。
  2. 科技行业信息更新极快,我们尽力保证内容准确、及时,但不对完整性、实时性做绝对保证,具体请以相关企业/项目官方公告为准。
  3. 文中引用的第三方商标、产品名称、图片、数据等版权归原权利人所有,我们会尽量注明来源;如你认为存在版权疑问或侵权,请通过下方邮箱联系我们,收到通知后会尽快核实处理(更正、加注来源或删除)。
  4. 文章内容仅为技术科普与个人观点,不构成投资、法律或其他专业建议,据此进行任何决策的后果需自行判断和承担。

📮 侵权 / 勘误 / 合作咨询:hello@mushroom.cv