ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 Fazzani

subagents-monitor

一个 Claude Code 插件,在当前会话右侧停靠实时面板列出所有 subagent,并在状态行汇总工作中/完成数量和成本。

Fazzani@Fazzani

Fazzani/claude-mods/tree/main/plugins/subagents-monitor

已翻译

关于这个 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.

更多类似作品