Mombrane/dsh-subagent-monitor 预览 preview

Mombrane/dsh-subagent-monitor

Plugin插件 Native原生 ⭐ 26 MIT Subagents & Orchestration子代理与编排

Project Overview项目介绍

dsh-subagent-monitor is a DSH-native client plugin that adds a real-time monitoring dashboard for subagents running in the DSH web interface. It injects a new "Subagent" entry into the DSH sidebar, and places a persistent card panel at the top-right of your screen that updates with the status of all directly spawned subagents in your current session. The top of the panel includes an overview dashboard with three ring charts showing current main session context window usage and aggregate cache hit rates for main and sub-agents, plus a status bar chart counting running, completed, and errored subagents.

The panel can be collapsed in two independent directions, vertically in a two-stage way and horizontally into a narrow 120px bar. You can drag the panel to reposition it anywhere on the screen, adjust its height, and all your settings and positions are saved automatically across sessions, with a double-click to reset to default. When you open a subagent session, the panel automatically switches to show that subagent's spawned children, and adds a one-click button to jump back to the parent session, making it ideal for DSH users that regularly work with multi-subagent workflows.

There are three supported installation methods, with the recommended method being a one-line npm install via the DSH CLI, and alternative options for installing directly from GitHub or embedding the source into your DSH source tree for development. It requires the same Node.js version as DSH itself, which is ^22.19.0 or >=24.0.0, and is compatible with all DSH versions starting from 0.1.0-rc.0. It is released under the permissive MIT open source license, and as it runs an unauthenticated API endpoint only on the loopback interface, it is recommended for local or internal network use only.

这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,用于为 DSH Web 界面添加子代理实时运行监视面板。它会在 DSH 侧边栏底部新增「子代理」入口,面板常驻屏幕右上角,实时展示当前会话直接派生的所有子代理的运行状态,顶部还配有总监控看板,用环形图展示主会话上下文占用和缓存命中率,柱状图统计当前层子代理的各类状态计数。

面板支持纵向和横向两种互不干扰的收起方式,用户可拖动调整面板位置和高度,位置和设置会被记忆,双击即可复位。进入子代理会话后,面板会自动展示该会话派生的下一层子代理,还提供一键返回上一层父会话的按钮,适合经常使用多子代理协作的 DSH 用户跟踪任务运行状态。

该插件支持三种安装方式,推荐使用 npm 一键安装,也可通过 GitHub 直装或者源码内联开发安装,要求 Node.js 版本与 DSH 自身一致(^22.19.0 或 >=24.0.0),兼容 DSH 0.1.0-rc.0 及以上版本,采用 MIT 开源许可,仅建议本地或内网环境使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 26 stars - an early-stage project星标 26,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add @leetoners/dsh-ui-subagent-monitor

把 Mombrane/dsh-subagent-monitor 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

🤖 dsh-subagent-monitor

DeepSeek Harness (DSH) Web 扩展插件 · 子代理实时运行监视面板
license platform dsh

中文 | English


✨ 是什么

在 DSH Web 界面侧栏底部加一个「子代理」入口,并在屏幕右上角常驻一块卡片式面板,实时展示当前会话直接派生的子代理的运行状态。进入某个子代理会话后,面板随之显示该会话直接派生的下一层子代理。

面板顶部是一块总体监控看板:左侧三枚环形图展示主会话的上下文窗口当前占用、主会话与子代理聚合的缓存命中率;右侧一根状态柱状图展示当前层子代理的运行 / 完成 / 异常计数(按最大值等比缩放)。每张卡片下方另附一行用量明细(该 run 的输入 / 输出、缓存命中、上下文大小)。

面板支持两个方向的收起,互不干扰:

  • 纵向(两段式):标题栏「收起」第一次只收下方子代理卡片(顶部总览看板保留,按钮变「全部收起」);再点一次才收到只剩标题栏;「展开」一步恢复。
  • 横向(向左折叠为窄栏):标题栏 ◂ 把面板折成 120px 窄栏 —— 右边缘钉住不动,所以是朝左折;保留上下文与主会话两枚环(原大小 48px),由左右一排改为从上到下一列,去掉子代理环,下部继续保留子代理运行框(紧凑卡片)。▸ 向右展开回 340px。
┌─ ⤢ 子代理看板 ──────────── [◂] [收起 ▴] [✕] ┐
│  ◔ 上下文 ◔ 主会话 ◔ 子代理    █ 运行 1 · █ 完成 1 · █ 异常 0 │
│ ┌─────────────────────────────────────┐ │
│ │ 🔵 统计 ui 目录 TS 文件数   [打开对话] │ │
│ │    one-shot · 1a2b3c4d   运行中 · 00:42 │ │
│ │    ↑12.3k ↓4.5k · 缓存 78% · 上下文 45.6k │ │
│ └─────────────────────────────────────┘ │
│ ┌─────────────────────────────────────┐ │
│ │ 🟢 演示子代理:统计文件类型  [打开对话] │ │
│ │    spawn · 2b3c4d5e    完成 · 03:12  │ │
│ └─────────────────────────────────────┘ │
│  运行 1 · 完成 1 · 异常 0    [清空已完成] │
│ ════════════════════════════════════════ │ ← 拖动调整高度
└─────────────────────────────────────────┘

横向收起后的窄栏(120px,两枚环原大小竖排):

┌ ⤢ 1 [▸][▴][✕] ┐
│      ◔        │  ← 上下文
│    上下文      │
│      ◔        │  ← 主会话
│    主会话      │
│ ┌───────────┐ │
│ │ 🔵 统计 ui… │ │  ← 整张卡片可点,即「打开对话」
│ │     00:42 │ │
│ └───────────┘ │
│ ┌───────────┐ │
│ │ 🟢 演示子…  │ │
│ │     03:12 │ │
│ └───────────┘ │
│ 1/1/0   [⤢][⌫] │
│ ══════════════ │
└───────────────┘

标题左侧 ⤢ 四角箭头拖动柄移动面板位置,底部 ═ 拖动柄调整面板高度;两者均记忆,双击复位。

「收起」两段式(纵向):第一次只收起下方子代理卡片(顶部总览看板保留),按钮变「全部收起」;再点一次收起到只剩标题栏;「展开」一步恢复完整面板。

◂ / ▸(横向):向左折成 120px 窄栏 / 向右展开回 340px。窄栏保留**上下文与主会话两枚环(原大小)**竖排 + 子代理卡片;窄 / 宽选择跨会话记忆,刷新后保持。两个方向可叠加 —— 窄栏里照样能两级纵向收起。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-office 下一个 Next dsh-session-manager →