DeepSeek Harness 插件

dsh-admin

DeepSeek Harness Web GUI admin plugin: manual restart + auto version check (header button + settings page)(英文原文)

跳到安装方式

来源信息

GitHub 仓库
xiaokang6/dsh-admin
最近更新
2026年8月18日
分类
界面增强
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/xiaokang6/dsh-admin
插件名:dsh-admin
作者:xiaokang6

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-admin

A DeepSeek Harness Web GUI admin plugin: manual restart + automatic version check for the Harness itself. The UI is embedded directly into the Web GUI (header button + settings page), following the same pattern as dsh-usage-stats.

Features

  • Manual restart — a button in the session header (top-right, beside session log): one click schedules a clean restart of the dsh web service (double-confirm, then systemd-run + dsh-plugin-op restart — the local convention script that stops systemd, clears orphan instances on :3080, starts clean, and health-verifies).
  • Auto version check — compares the installed @deepseek-ai/dsh against the npm latest tag (semver-aware: stable > rc). Checked on load, then every 6 hours on the host; the panel shows current/latest/last-checked and a status dot (green = up to date, yellow = update available, red = check failed).
  • One-click update — when a newer version is available, a blue "Update to latest" button appears: it runs npm install -g @deepseek-ai/dsh@latest (with --allow-scripts for native deps) and then auto-restarts the service so the new version takes effect.
  • Embedded UI — no standalone page:

- Top-right header button 🟢 0.1.1 (session header utilities slot, beside session log — never overlaps anything) → click to open a floating panel (top layer, z-index 9999): version status, check-now button, update button (when newer available), service info, restart button. - Settings → DSH Admin full page (same content, larger layout).

Routes (host half)

RouteDescription
GET /plugin/dshadmin/statusJSON: current/latest version, isNewer, service info (pid, systemd, restart command)
GET /plugin/dshadmin/health{ok:true}
POST /plugin/dshadmin/checkForce re-check npm latest
POST /plugin/dshadmin/updateUpdate @deepseek-ai/dsh to npm latest then auto-restart (body must be {"confirm":true})
POST /plugin/dshadmin/restartSchedule restart (body must be {"confirm":true})

Restart priority: ① systemd-run + dsh-plugin-op restart (isolated cgroup — dsh.service is KillMode=control-group, a direct spawn would be killed by its own systemctl stop dsh; the transient unit runs the whole script: stop → clear :3080 orphans → clean start → health check) → ② plain dsh-plugin-op restart → ③ systemctl --no-block restart dsh → ④ socket-pid kill + relaunch.

Install

The package is a profile bundle (its manifest declares dsh.bundle.patch).

# Option A — install via the plugin manager
dsh plugin --profile web add xiaokang6/dsh-admin

# Option B — manual copy (never run npm install in the profile dir)
git clone https://github.com/xiaokang6/dsh-admin /tmp/dsh-admin
cp -r /tmp/dsh-admin ~/.dsh/profiles/web/node_modules/dsh-admin

Then make sure ~/.dsh/profiles/web/cordis.patch.yml contains:

- insert:
    - id: dsh-admin
      name: 'dsh-admin'

Restart dsh web (or use your local restart command) and hard-refresh the browser. Host changes require a service restart; client changes are picked up by client-modules HMR on page refresh.

Requirements

  • DeepSeek Harness (@deepseek-ai/dsh) installed via npm (global install; the restart chain uses dsh-plugin-op when present)
  • Linux + systemd (restart path; the check/UI parts work anywhere)

License

MIT