Preface¶
DeepSeek Harness (DSH) plugins are installed within various profiles and managed daily via dsh plugin. Manual checks and upgrades are prone to pitfalls: the “Latest” version in pnpm outdated does not necessarily equate to the version installable under current supply-chain policies; the caret ranges for 0.x dependencies often cannot span across minor versions; process restarts and browser refreshes are required post-upgrade; and if an upgrade fails, rolling back requires manual troubleshooting.
Below is an introduction to the dsh-plugin-autoupdate by maintainer publieople (categorized under admin-security). It performs a single task within the DSH ecosystem: selecting versions based on pnpm’s minimum release age (supply-chain) policy. It automatically creates snapshots before updates, supports rollbacks, and provides a main panel page at the same level as the chat page, along with agent tools to streamline checking, applying, locking, and auto-updating. However, the decision to “restart DSH” remains in your hands; the plugin will not take over that decision.
What is this¶
dsh-plugin-autoupdate is a DSH plugin attached to a profile (the README marks it as status: early, license: MIT, requiring dsh: 0.2.0-rc.x or higher; the current npm package version is 0.3.2). It is not an updater for the DSH main program (harness) itself, but handles only the plugin dependencies installed within the profile.
The core constraints are clearly stated: it will not bypass pnpm’s minimum release age policy; all version decisions are delegated to the DSH CLI, consistent with manual execution in the terminal.
Specific problems it solves¶
The README summarizes four pitfalls of manual updates in a table. This plugin automates or explicitly addresses these points:
| Problem | Plugin-side Solution |
|---|---|
| “Latest” vs. “Installable” inconsistency | Only applies versions permitted by policy, consistent with pnpm outdated criteria. |
Narrow ^0.x ranges prevent minor version upgrades |
Marks as “Out of range” on the page and explains the availability of “Ignore version range” or the agent’s latest. |
| Restart / Refresh required after upgrade | Tool reports restartRequired; page distinguishes between “Refresh UI” and “Restart DSH”. |
| Difficult recovery if upgrade fails | Snapshots before every apply, retains the last 5, supports rollback. |
Core Features¶
Main Panel Page “Plugin Updates”¶
After installation, an icon appears in the sidebar. Opening it reveals a full main panel page at the same level as the chat page, with five tabs:
- Available Updates — Plugins available for upgrade across profiles; allows checking “Update Selected” or “Update All”; each row can be locked; rows exceeding recorded semver ranges are marked “Out of range”.
- Installed — Dependencies, version ranges, and sources; allows “Rolling back the last update”.
- Discover — Reads the official plugin marketplace catalog (data source
https://awesome-dsh-plugin.com/plugins.json, same as dsh-market), supports search, filtering by category, and one-click installation; only accepts npm names from the catalog, without versions. - Locked — Locked packages, allows unlocking.
- Auto-update — Scheduled checks and automatic application when conditions are met (default all off, requires manual enabling in this tab).
The toolbar provides: Reload, Update Selected, Update All, Ignore Version Range (equivalent to --latest), Rollback, and Export CSV. The top-right Refresh UI only reloads the browser side; Restart DSH is subject to capability gating (official desktop versions will indicate that quitting and reopening is required and refuse execution; only CLI / service deployments may actually restart the process).
Agent Tool dsh_plugin_updates¶
| action | Function |
|---|---|
check (default) |
Lists updatable plugins for each profile |
apply |
Snapshots before updating, reports range changes |
rollback |
Restores the latest snapshot (or specified snapshot=) and reinstalls |
lock / unlock |
Suppresses or restores update prompts for a package |
settings |
Reads/writes auto-update switches for a profile |
Common parameters: profiles (comma-separated, defaults to current instance profile), latest (ignores recorded semver ranges for version selection, still subject to release age policy constraints). The tool will not restart DSH for you.
Snapshots, Locking, and Auto-update¶
- Snapshots: Before
apply, copiespackage.json,pnpm-workspace.yaml,pnpm-lock.yaml, andcordis.patch.ymlto<profile>/.plugin-backup-auto-<timestamp>/, retaining up to 5 copies;rollbackrestores these and then runsdsh plugin --profile <p> install. - Locking: Status is written to
<profile>/.plugin-autoupdate.json; it does not pin the manifest version, but simply stops update prompts; locked packages will not be auto-updated. - Auto-update: Three switches (Check on startup, Scheduled interval, Apply on discovery) are all off by default; the host re-reads settings approximately every minute. Failed
package@versionentries are recorded infailures(max 50 entries), which can be cleared for retry.
HTTP and Security Boundaries¶
The page reads and writes state and executes write operations via 9 routes on the host; write operations require loopback or a Host declared in PLUGIN_AUTOUPDATE_TRUSTED_HOSTS. Furthermore, apply / rollback / install / restart require a request body with confirm: true. The security model emphasizes: never using pnpm add pkg@x.y.z (to avoid writing to minimumReleaseAgeExclude), writing only to the profile and plugin’s own cache, and ensuring the auto-apply path is consistent with manual dsh plugin update.
Installation and Activation¶
Execute the installation command provided in the README under the target profile:
dsh plugin --profile <your-profile> add dsh-plugin-autoupdate
After installation, fully quit DSH and reopen it. Host plugins are loaded only at process startup; simply refreshing the page will not reload the host side.
Typical Usage¶
Manual Update via Page: Open the sidebar “Plugin Updates” → “Available Updates”, check the plugins → “Update Selected” or “Update All” → Follow the prompt to Restart DSH (or manually quit and reopen on desktop) to enable host plugins; if only loading newly installed client UI is needed, use “Refresh UI”.
Cross 0.x Ranges: For rows marked “Out of range”, use the toolbar “Ignore Version Range” or set latest=true during agent calls; this remains subject to release age policy constraints.
Agent Check and Apply (Schematic, refer to your instance’s tool schema for details):
action=check
action=apply
action=rollback
Install from “Discover”: Select a plugin from the catalog within the tab to install with one click; reject specs with versions like pkg@1.2.3.
Use Cases and Notes¶
Suitable for: Developers or operations personnel who maintain a large number of DSH plugins across multiple profiles long-term, wish to align the update workflow with pnpm supply-chain policies, and require snapshot rollback and optional auto-updates.
Important Notes:
- The plugin runs with the current DSH process permissions. Before installation, you should read the source code and MIT license on the GitHub repository and assess the trust boundary yourself.
- Auto-update is disabled by default; please confirm profile contents and locking strategies before enabling “Automatically apply upon discovery”.
- The “Discover” catalog comes from the community site awesome-dsh-plugin.com, which has no official affiliation with DeepSeek / High-Flyer and is not an official app store.
- Requires Node >=22 (see package.json
engines).
Conclusion¶
dsh-plugin-autoupdate consolidates the checking, policy-constrained application, snapshot rollback, and visual operation of profile plugin updates into a single admin-security oriented plugin, explicitly leaving the DSH restart to you. For further information, see the catalog page skillhub.cn/plugins/publieople/dsh-plugin-autoupdate and the source code github.com/publieople/dsh-plugin-autoupdate.