hnmrxz/dsh-plugin-sysmon
Local system resource monitor (CPU / memory / disk / load / uptime) for the DeepSeek Harness bottom status bar.
项目介绍Project Overview
dsh-plugin-sysmon 是 DSH 底部状态栏系统监控插件,通过 Host 端 Node 原生 os/fs 模块采样,零依赖、零子进程,实时显示 CPU、内存、磁盘、负载与运行时间,CPU≥80% 橙色高亮,悬停查看明细,每 5 秒刷新。需在 DSH 0.1.0-rc.x Web profile 安装并配置 cordis.patch.yml;无配置项,刷新间隔需改源码常量。
dsh-plugin-sysmon is a DSH status-bar plugin that shows real-time local CPU, memory, disk, load average, and uptime. The host side samples via Node's native os/fs modules with zero dependencies and no subprocesses, computing CPU usage from tick deltas; the client renders a chip with orange highlight at ≥80% CPU, hover details, and 5-second refresh. Use it when you want live resource stats in DSH. Requires DSH 0.1.0-rc.x Web profile; no config options.
请帮我了解并安装插件:【dsh-plugin-sysmon】【https://github.com/hnmrxz/dsh-plugin-sysmon】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:hnmrxz/dsh-plugin-sysmon
把 hnmrxz/dsh-plugin-sysmon 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-sysmon
在 DeepSeek Harness (dsh) 底部状态栏实时显示本机系统资源:CPU / 内存 / 磁盘 / 负载 / 运行时间。
Real-time local system monitor (CPU / memory / disk / load / uptime) in the DSH bottom status bar.
Features
- 状态栏 chip:
DS CPU 23% · 内存 41%,CPU ≥ 80% 时橙色高亮 - 悬停查看明细:CPU 核数/负载、内存已用/总量、磁盘占用、运行时间
- 每 5 秒自动刷新,点击立即刷新
- Host 端用 Node
os/fs原生模块采样,零依赖、零子进程,CPU 使用率按两次 tick 差值计算 - 中英文自动跟随 DSH 界面语言
Install
需要 DSH 0.1.0-rc.x(Web profile)。
1. 安装到 profile
cd ~/.dsh/profiles/web
npm install dsh-plugin-sysmon
# 本地开发:npm install /path/to/dsh-plugin-sysmon
2. 加入 composition
编辑 ~/.dsh/profiles/web/cordis.patch.yml:
- insert:
- id: sysmon
name: dsh-plugin-sysmon
3. 重启 dsh
dsh --profile web
Configuration
无配置项。刷新间隔可在 lib/index.js 的 CACHE_MS(默认 5000ms)与 lib/client.js 的 POLL_MS(默认 5000ms)调整。
How it works
Browser client.js dsh Host process
┌──────────────┐ GET ┌─────────────────────────┐
│ composer.dock│ ───────► │ /dsh-sysmon │
│ chip │ ◄─────── │ ├─ node:os │
└──────────────┘ JSON │ │ (cpus/mem/loadavg)│
│ └─ node:fs statfs │
└─────────────────────────┘
Development
lib/index.js # Host half:os/fs 采样 + CPU tick 差值,注册 /dsh-sysmon 路由
lib/client.js # Client half:状态栏 chip(__ModuleLoader__ bundle)
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS