Fazzani/claude-mods/tree/main/plugins/subagents-monitor
subagents-monitor
Claude Code 外掛,在目前工作階段列出所有 subagent 的即時側邊面板,並在狀態列彙總工作中/已完成數量與成本。
關於這個 mod
subagents-monitor 是 Claude Code 外掛,會在逐字稿右側停駐面板,把目前工作階段的每個 subagent 顯示為即時卡片。每張卡片顯示 agent 狀態(Working / Done / Aborted / Failed / Killed,由 turn.complete 與 agent.list() 對齊)、牆上時鐘經過時間、工作時間(模型請求與工具執行的重疊只計一次)、每個 turn.step 的模型與 effort 等級,以及根據 token 用量乘以 hooks/pricing.ts 中的牌價計算的估計成本。狀態列會顯示類似 '⚙ 2 working · 3 done · ≈$0.41 / $1.20' 的摘要。指令包括 /subagents 開啟面板,以及 /subagents clear 移除已完成的 subagent。在全螢幕終端機(110+ 欄)與桌面應用程式中,面板會停駐在逐字稿旁;較窄的終端機則會開在提示列上方。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add Fazzani/claude-mods claude plugin install subagents-monitor
原文 / README
subagents-monitor
A side pane, docked to the right of the transcript, showing every subagent of the current Claude Code session as a live card:
◆ Subagents ◐ 2 ✓ 3
──────────────────────────────────────────
╭────────────────────────────────────────╮
│ ◐ Explore auth flow WORKING │
│ Explore · sonnet 5.5 · medium │
│ ▰▰▰▰▰▰▱▱▱▱ ⏱ 01:42 ⚡ 00:58 │
│ 312k tok ≈$0.08 │
╰────────────────────────────────────────╯
| Field | Source |
| --- | --- |
| Status | turn.complete of the agent's loop (Done / Aborted / Failed), reconciled with $.agent.list() (Failed / Killed) |
| ⏱ Elapsed | Wall-clock time from spawn to end, live while the agent is working |
| ⚡ Working | Time spent in model requests and tool runs, with overlapping work counted once |
| Model, effort | Each turn.step of the agent's loop |
| Cost | Token usage of each step multiplied by list prices (hooks/pricing.ts). This is an estimate; the footer shows the session's actual total. |
The status line shows ⚙ 2 working · 3 done · ≈$0.41 / $1.20.
Commands
/subagents: open the pane/subagents clear: remove finished subagents from the pane
The pane docks beside the transcript in the terminal's fullscreen layout (110+ columns) and in the desktop app; on a narrower terminal it opens above the prompt.
