DeepSeek Harness 本体自升级插件:检测官方新版、自动备份、一键升级;自动更新等待系统空闲才重启,不打断进行中的会话。
Capabilities · Install · Auto-update · Security · 中文说明
An in-place self-upgrade plugin for the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) agent. It detects new official versions from GitHub Releases, backs up your data, upgrades the globally installed `@deepseek-ai/dsh` package to a newer official version (npm install, or source build when npm lacks the tag), and restarts the service — with an idle-aware auto-update mode that never interrupts a running session. Downgrade/rollback is intentionally not supported. ## Capabilities | Tool | Description | | --- | --- | | `dsh_upgrade_status` | Installed vs latest official version, upgrade job progress, pending restart state, log tail | | `dsh_upgrade_run` | Upgrade / reinstall: backup → npm install (source build when npm lacks the tag) → verify → delayed restart | | `dsh_upgrade_cancel_restart` | Cancel a pending scheduled restart or an idle-waiting auto restart | | `dsh_upgrade_versions` | List official released versions with dates, current/newer markers and release notes | | Panel(设置 → 插件 → DSH 本体升级) | Description | | --- | --- | | Version header | Installed → latest, status pill(已是最新 / 可升级 / 进行中 / 失败) | | Actions | 检查更新 · 自动更新开关 · 一键升级 · 版本历史(浏览) · 立即重启 · 取消挂起重启 | | Progress | 升级任务实时阶段进度条 | ## Install Official bundle plugin — one line, no build step, no install scripts: ```sh dsh plugin --profile web add github:raomaiping-hash/dsh-self-upgrade ``` Pin a version for reproducibility: ```sh dsh plugin --profile web add github:raomaiping-hash/dsh-self-upgrade#v1.1.1 ``` Then restart the web profile (`sudo systemctl restart deepseek-harness` or your equivalent). A new “DSH 本体升级” tab appears under Settings → Plugins, and four `dsh_upgrade_*` tools become available to the agent. ## How auto-update works When enabled (panel toggle), every 30 minutes the plugin: 1. Fetches official GitHub Releases; if a newer version exists: 2. Backs up `$HOME/.dsh`, then `npm install -g @deepseek-ai/dsh@