Development & Runtime

dsh-plugin-sysmon

hnmrxz/dsh-plugin-sysmon · ★ 1

hnmrxz

Local system resource monitor (CPU / memory / disk / load / uptime) for the DeepSeek Harness bottom status bar

README body is shown in Chinese.

License
MIT
Added
2026-08-23
Maintenance
active
Install kind
github

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:hnmrxz/dsh-plugin-sysmon

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: zh · Read Chinese README

Table of contents
  1. Features
  2. Install
  3. 1. 安装到 profile
  4. 2. 加入 composition
  5. 3. 重启 dsh
  6. Configuration
  7. How it works
  8. Development
  9. License

在 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)

License

MIT