返回目录
模型与 MCP 插件

dsh-system-monitor

myname1234/dsh-system-monitor

Real-time CPU, memory and process monitor for the DeepSeek Harness Web GUI

Stars
0
Forks
0
Issues
0
更新
7 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:myname1234/dsh-system-monitor

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-system-monitor

Real-time CPU, memory and per-process monitor for the DeepSeek Harness Web GUI.

在 DeepSeek Harness 网页端实时查看当前电脑的 CPU、内存与后台进程。

A small pill sits under the composer — CPU 12% · MEM 46% · 296 proc — and opens a detail panel in the bottom-right corner.

输入框下方会出现一个小胶囊:CPU 12% · 内存 46% · 进程 296;点击它在右下角打开详情面板。

Features / 功能

  • Live metrics — total CPU, every logical core, memory used/total, process count, and a short CPU sparkline. / 实时指标:整体 CPU、每颗逻辑核心、内存已用/总量、进程数,以及 CPU 走势曲线。
  • Process list — top 12 by CPU or memory, filterable by 全部 / 用户 / 系统 (all / user session / services), with per-process CPU % and working set. / 进程列表:按 CPU 或内存排序看前 12 名,可按«全部/用户/系统»过滤,显示每个进程的 CPU 占用与内存。
  • Honest sampling — the footer shows when the process list was actually sampled, and the plugin warns instead of pretending data is fresh. / 如实显示:面板底部显示进程数据的实际采样时间,数据不新鲜时会提示。
  • Zero background work — nothing runs on a timer inside the Harness process. Sampling happens only when a browser page is open and polling. / 无后台开销:宿主侧没有常驻定时器,只有页面打开并轮询时才采样。

Install / 安装

dsh plugin add github:myname1234/dsh-system-monitor

Or install it from the plugin marketplace UI. After enabling, refresh the Web GUI page — the pill appears under the composer.

也可以在插件市场里搜索安装;启用后刷新网页,胶囊会出现在输入框下方。

How it works / 实现说明

  • Host half (index.js) hard-depends on the webServer service and registers one read-only route, GET /system-monitor/stats. CPU and memory come from Node's os module; on Windows the process list is one Get-Process call (about 200–350 ms), cached for 4 seconds and refreshed in the background. Other platforms use ps.
  • Client half (client.js) is a plain module bundle: one module-level store, useSyncExternalStore, and a 2-second poll that only runs while a component is mounted. The pill lives in conversation.composer.dock; the panel lives in shell.overlay and closes with Esc or its × button.
  • Styling uses only --dsw-alias-* theme tokens; all visible text goes through the Client locale service (zh + en included).

Notes / 说明

  • Close the panel with Esc or the × button; the pill keeps refreshing while the page is open, which is cheap.
  • The 4-second process cache is deliberate — a process snapshot is the expensive part.
  • No network access, no external dependencies, and no command is executed other than Get-Process (Windows).

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。