dsh-plugin-management: Profile external plugin manifest and one-click update

Preface

When developing profiles with DeepSeek Harness (dsh), third-party plugins are often installed into ~/.dsh/profiles/<p>/ via dsh plugin --profile <p> add <pkg>. Installing many of them easily leads to forgetting what was installed or whether versions are outdated; dependencies written in dependencies of package.json may not appear in dsh.profile.bundles, meaning they are not truly integrated into the plugin layer; and to update against the registry, you have to manually enter the profile directory to run pnpm outdated and upgrade commands. The official “Settings → Plugins” page mainly answers “which plugins are loaded by the Loader and what their enabled status is,” which is a different track from “whether external npm/git packages are installed and can be upgraded.” Below we introduce the community plugin dsh-plugin-management (maintainer: YUYUY9527): it adds an “External Plugins” view in Settings and exposes query and update tools to agents.

What Is This

dsh-plugin-management is an external plugin manager for dsh: it performs an inventory of third-party dependencies (non @deepseek-ai/*) in the current profile—installed versions, version ranges, whether they are active as plugin layers, and whether updates are available—and supports one-click updates, uninstalls, and copying the installation commands for each package.

Core Features

Capability Description
External plugin inventory Lists external packages in the profile’s dependencies: installed version, range, whether active in dsh.profile.bundles, registry or local specs such as link:
Version check Uses pnpm outdated --format json, distinguishing in-range updates from major version upgrades requiring --latest
One-click update Three granularities: single package, all updatable, and major version (latest)
Uninstall After a two-row confirmation in the panel, executes dsh plugin --profile <p> remove <package-name> and removes from dsh.profile.bundles
Install command display Each row provides a copyable dsh plugin --profile <p> add … (registry can pin latest; local/git/tarball specs reused as-is)
Result feedback Shows the actual command, exit code, tails of stdout/stderr, and prompts to restart dsh for new versions to load or uninstalls to take effect
Profile switching Auto-detects the currently running profile; manual switching also supported
Agent tool external_plugins: list / update / uninstall
Bilingual UI follows locale (zh / en)

The judgment logic briefly corresponds to the profile directory structure: dependencies indicates “what is installed”; dsh.profile.bundles indicates “what is assembled as a plugin layer”; the version and dsh.bundle.patch of node_modules/<pkg>/package.json are used for the actual version and whether it is a bundle.

Installation and Enablement

After installation, restart dsh to complete bundle assembly. The spec from add is passed verbatim to pnpm, so any syntax supported by pnpm can be used. --profile must be the profile you are running (e.g., dsh web corresponds to web).

Public installation examples (from the README, pick one as needed):

# Pin version (recommended: git tag)
dsh plugin --profile web add github:YUYUY9527/dsh-plugin-management#v1.0.0

# Follow latest code from the repository
dsh plugin --profile web add github:YUYUY9527/dsh-plugin-management

# Release package URL (no git needed locally)
dsh plugin --profile web add https://github.com/YUYUY9527/dsh-plugin-management/releases/download/v1.0.0/dsh-plugin-management-1.0.0.tgz

# npm registry (README notes not yet published; available after publishing)
dsh plugin --profile web add dsh-plugin-management

After adding, you can check whether it is assembled into the configuration:

dsh --profile web --dump-config | grep dsh-plugin-management

Runtime environment: package.json requires Node >=22.0.0. The maintainer states that this package is primarily distributed via GitHub Release + git installation; the npm path is not yet enabled.

Optional configuration (config under this plugin’s entry in cordis.patch.yml):

- id: dsh-plugin-management
  config:
    apiPath: /dsh-plugin-management/api   # Modify in case of route conflicts
    sandboxMode: danger-full-access       # Sandbox mode when executing pnpm/dsh

The default sandboxMode is danger-full-access because one-click updates need to write to the pnpm store (outside the profile directory); if changed to a stricter mode, updates may be rejected by the same sandbox rules—this is an intentional trade-off documented in the documentation.

Typical Usage

Settings UI

After restarting dsh, open Settings → Plugins; the “External Plugins” tab will appear after the official tabs:

  1. Select the profile at the top (“Auto” = the currently running instance), click “Refresh” or “One-click Update (N)”.
  2. Each row shows the package name, version, and status badge (updatable / upgradeable / latest / local link / not a plugin layer / deprecated, etc.).
  3. Click “Update”, “Upgrade to Latest”, or “Uninstall” as needed (uninstall requires secondary confirmation within 4 seconds).
  4. View command output at the bottom; when changes occur, restart dsh as prompted.

The page first displays the local inventory, then automatically performs an online version check; failures show the reason rather than silently displaying “not checked”.

Model Tools

Agents can call external_plugins:

external_plugins action=list
external_plugins action=list check=false
external_plugins action=update profile=web
external_plugins action=update names=["dsh-tinyfish-search"]
external_plugins action=update latest=true
external_plugins action=uninstall names=["dsh-tinyfish-search"]

Uninstall must explicitly include names; there is no “uninstall all” option.

HTTP API (Same Origin)

Default prefix /dsh-plugin-management/api, e.g., GET /inventory?profile=&check=1&refresh=1, POST /update, POST /uninstall (names required in the body). Cross-site requests will be rejected.

Use Cases and Notes

Who it’s for: Developers who long-term build multiple community dsh plugins on a fixed profile and need a clear view of “what’s installed, whether it’s active, and whether to upgrade”; also for scenarios where agents can query the inventory, batch update, or uninstall by name.

Scope and limitations (explicitly stated in the README):

  • Only manages third-party dependencies of the current profile; does not cover @deepseek-ai/* or in-box bundles provided by templates.
  • Does not provide a UI for “installing new plugins”—new installations still use dsh plugin add; this plugin focuses on viewing, updating, uninstalling, and command copying.
  • Major version upgrades do not verify compatibility with the current dsh; check the target package’s documentation yourself before upgrading.
  • The plugin executes shell/pnpm under the permissions and sandbox of the current dsh process; read the source code and MIT license before installation, and understand the meaning of sandboxMode.

To temporarily disable this plugin without uninstalling: add disabled: true to the corresponding entry in the profile’s cordis.patch.yml. To remove this plugin via the command line:

dsh plugin --profile web remove dsh-plugin-management

Conclusion

dsh-plugin-management consolidates “what third-party packages are installed in the profile, whether they are active in bundles, and whether there are new versions on the registry” into a single tab in the settings page, and hands the same capabilities to external_plugins and the HTTP API. Complementing the official plugin loading view, it reduces the cost of maintaining package.json by memory and manually entering directories to upgrade.

  • Directory page: https://www.skillhub.cn/plugins/YUYUY9527/dsh-plugin-management
  • GitHub: https://github.com/YUYUY9527/dsh-plugin-management

The community plugin directory (SkillHub) is independent of DeepSeek / High-Flyer and is not an official app store; verify the repository and Release sources yourself before use.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye