dsh-disable-unofficial-plugins: Bulk disable unofficial plugins on the plugins page

Introduction

DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture, where community plugins are loaded along with the profile. When troubleshooting conflicts, comparing against a “minimum viable environment,” or temporarily narrowing the feature set, it is often necessary to turn off a batch of third-party bundles rather than toggling them individually in the list. While the official plugin page supports enabling/disabling single entries, it lacks an entry point to “select all according to the current direction and toggle in batch” when there are many unofficial plugins.

Below is an introduction to the client plugin dsh-disable-unofficial-plugins published by maintainer WhatCannotBeSaid: It adds a Disable unofficial plugins… button (corresponding text in the Chinese interface) to the right side of the Installed group header row in DSH Web. It uses a checklist to select unofficial plugins to toggle, changing only their enabled status without uninstalling them or deleting files and configurations.

What is this

  • Name: dsh-disable-unofficial-plugins (npm package name matches the repository name)
  • Category: Client (dsh.client.platform is web)
  • Maintainer: WhatCannotBeSaid
  • Version (package.json): 1.3.1
  • License: MIT
  • Directory Page: SkillHub Plugin Entry
  • Source Code & Documentation: GitHub Repository

The plugin attaches to the official plugin page via pure DOM injection without taking over the React tree. All reads and writes go through listBundles() and setBundleEnabled(name, enabled) on ctx.get('remote.pluginManager') (In Cordis, remote namespaces are dotted service names; ctx.get('remote').pluginManager cannot be used).

Core Features

Button Location and Two Modes

The button is fixed to the far right of the Installed group header row (section[data-plugin-group="bundles"]), vertically centered with the title and count, without altering row height.

  1. When enabled switchable unofficial plugins exist, the button is on the “Disable” side; clicking it lists these plugins.
  2. When all switchable unofficial plugins are disabled, the button text switches to Enable unofficial plugins…. Clicking it lists the currently disabled unofficial plugins for batch re-enabling.

Confirmation Dialog and Checklist

Clicking the button first brings up a confirmation dialog containing a checklist:

  • All are selected by default, so “disable all” remains a two-step operation (click button + confirm); unchecking an item preserves it, and only the remaining checked items are toggled.
  • The toolbar provides Select all / Select none (Chinese: 全选 / 全不选) and a real-time count N of M selected (Chinese: 已选 N / M).
  • The main button text changes based on the selection, e.g., Disable 17 plugins / 停用 17 个插件; if no items are checked, the main button is greyed out and clicks are ignored.

After confirmation, the plugin toggles items serially; a single failure does not interrupt subsequent items. Upon completion, a result report is shown: number of successes, failed items, skipped read-only items, and the count of items requiring a DSH restart to take effect. Failures show inline error codes; full diagnostics are placed in the Full diagnostics (完整诊断) collapsed area on the same row, hidden by default.

Definition of “Unofficial Plugins”

To enter the checklist, a plugin must meet all the following conditions:

  1. It is not a built-in bundle: @deepseek-ai/dsh-base, @deepseek-ai/dsh-web-app, @deepseek-ai/dsh-headless, @deepseek-ai/dsh-sdk-app, @deepseek-ai/dsh-acp-app, @deepseek-ai/dsh-sdk-minimal;
  2. It uses the same filter as the Installed group on the official plugin page (installed or non-optional), matching the count next to the group;
  3. The bundle name does not start with @deepseek-ai/ (DSH built-in packages are in this scope; community packages may be @michengai/, @liustack/, etc.);
  4. It is not this plugin itself (otherwise clicking it would self-destruct the button).

It further classifies them into: Disableable (currently enabled and modifiable via the profile bundle layer), Enableable (unofficial and currently disabled), Read-only (has a readOnlyReason, does not appear in either checklist, but the reason is explained in the confirmation and results).

Explicit “Don’ts”

Disabling/enabling only modifies the profile’s bundle layer (dsh.profile.bundles); it never uninstalls plugins, does not delete plugin files or configuration data, and does not affect official plugins.

Interface Language

Injected text follows Settings → General → Language; the plugin registers Chinese and English dictionaries to the host locale service. When the language switches, it redraws the button, hover tooltips, and any open dialogs (dialogs refresh in place, preserving checks and ongoing operations). cancel / close use the host common namespace and are not redefined in this plugin’s dictionary.

Prompts When Button is Unavailable

Hovering displays specific reasons, such as: no switchable unofficial plugins, no unofficial plugins installed, list being read or batch operation in progress, plugin management service not mounted yet (will auto-retry). When available, hovering indicates the number of disableable/enableable plugins and notes “disable only, no uninstall” or “enable only, no install”; if read-only items exist, it adds the count that will be skipped.

Installation and Activation

After installation, a DSH restart is required: client bundles refresh only when the module graph reorganizes; simply refreshing the page may hit the old cache.

Install from npm (replace <profile> with the target profile, e.g., web or dsh-tui):

dsh plugin --profile <profile> add dsh-disable-unofficial-plugins

Or install from GitHub:

dsh plugin --profile <profile> add github:WhatCannotBeSaid/dsh-disable-unofficial-plugins

Uninstall this plugin (example profile is web):

dsh plugin --profile web remove dsh-disable-unofficial-plugins

Uninstalling will not automatically restore plugins you previously disabled, nor will it revert plugins you previously enabled.

Typical Usage

  1. Open DSH Web, go to Plugins, and find the new button on the right side of the Installed group header row.
  2. To temporarily turn off most community plugins: click Disable unofficial plugins…, uncheck the items you want to keep in the checklist. After confirming, the main button will show the number of plugins to be disabled.
  3. To restore: when all switchable items are disabled, the button changes to Enable unofficial plugins…. Similarly, all are selected by default; unchecking items keeps them disabled.
  4. View the result report: pay attention to inline error codes and Full diagnostics for failed items; if the report indicates some changes require a restart to take effect, restart DSH as prompted.

Use Cases and Notes

Suitable for: Quickly toggling “all unofficial plugins on/off” or partial retention in local or test profiles; comparing whether issues stem from a specific type of community bundle; narrowing the loading scope without touching uninstallation or config files.

Notes:

  • This plugin runs with the permissions of the current DSH process. Before installation, please read the Repository Source Code and the MIT license to judge whether you trust the maintainer and the code behavior.
  • Read-only (officially hosted, non-manageable) unofficial items will not appear in the checklist; they are only explained in the dialog and results.
  • Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer; plugin sources are based on GitHub and npm packages.

Conclusion

dsh-disable-unofficial-plugins supplements the Installed row on the official plugin page with an entry for “batch disable/enable unofficial plugins”: select all by default, support fine-grained inverse selection, and only toggle enabled status without uninstalling. If you frequently debug DSH with profiles containing many plugins, you can use it to reduce repetitive clicks.

  • Directory Page: https://www.skillhub.cn/plugins/WhatCannotBeSaid/dsh-disable-unofficial-plugins
  • GitHub: https://github.com/WhatCannotBeSaid/dsh-disable-unofficial-plugins
羽毛球分组比赛记分
小程序二维码

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

Xiaoye