dsh-update
August 30, 2026 · View on GitHub
A user-level plugin for DeepSeek Harness (dsh) that adds a "Check for updates" button to the top-right of the Web UI, plus a live update with a progress bar.
- Grey "Check for updates" button in the session header → "Checking"
- Blue spinner while checking
- Liquid-glass toast: "You are already on the latest version, X" when up to date
- Blue "New version" button + centered update dialog (release notes + "Update") when a newer version exists
- Click "Update" → live
npm install -g @deepseek-ai/dsh@<latest>with a real-time progress bar; when it finishes you're shown "updated to X, restart dsh to apply" - Checks the npm registry for the latest
@deepseek-ai/dshversion; never touches the launcher exe or~/.dshuser data
English
Requirements
- DeepSeek Harness (dsh) Web surface (
dsh web), v0.1.0+ - Node 22+ (uses the built-in
fetch)
Installation
Add the plugin to your web profile, then register the row.
dsh plugin --profile web add ADDD1118/dsh-update
Append this to ~/.dsh/profiles/web/cordis.patch.yml:
- insert:
- id: dsh-update
name: dsh-update
Restart dsh web and hard-refresh the browser (Ctrl+F5). The button appears in the top-right of the session header (beside "Session log").
The plugin ships prebuilt (
lib/index.js+lib/client.js), so no build step is required.
How the update works
- The check reads the npm registry for the latest
@deepseek-ai/dshversion; if it is newer than the running one, the "New version" flow lets you update. - Clicking "Update" runs
npm install -g @deepseek-ai/dsh@<version>in the background with a live progress bar. The running dsh keeps using its old in-memory modules, so restart dsh to load the new version. The outcome is written to~/.dsh/.dsh-update-state.jsonand shown on the next launch.
简体中文
功能
为 DeepSeek Harness (dsh) 的 Web 界面右上角新增 "检查更新" 按钮,并支持带实时进度条的在线更新。
- 会话头右上角灰色 "检查更新" 按钮 → 点击后变 "检查中"
- 检查时显示蓝色转圈
- 已是最新时弹出液态玻璃提示:"当前已是最新版本,版本号为 X"
- 有新版时按钮变蓝色 "新版本",点击弹出居中更新对话框(含更新说明 + "更新"按钮)
- 点 "更新" → 后台实时执行
npm install -g @deepseek-ai/dsh@<最新版>,并显示实时进度条;装完提示 "已更新到 X,重启 dsh 后生效" - 通过 npm registry 检测 npm 全局包
@deepseek-ai/dsh的最新版本;不触碰启动器 exe 和~/.dsh用户数据
安装
将插件加入 web profile,并注册插件行。
dsh plugin --profile web add ADDD1118/dsh-update
在 ~/.dsh/profiles/web/cordis.patch.yml 追加:
- insert:
- id: dsh-update
name: dsh-update
重启 dsh web 并强刷浏览器(Ctrl+F5)。按钮出现在会话头右上角("Session log" 旁)。
插件已预构建(
lib/index.js+lib/client.js),无需再执行构建。
更新原理
- 检查时会读取 npm registry 上
@deepseek-ai/dsh的最新版本;若比当前运行版本新,则通过 "新版本" 流程更新。 - 点 "更新" 会在后台执行
npm install -g @deepseek-ai/dsh@<版本>并显示实时进度条。运行中的 dsh 仍用旧的内存模块,重启 dsh 后加载新版本。结果写入~/.dsh/.dsh-update-state.json,下次启动时以玻璃提示展示。