dsh-plugin-categories: Organize Installed DSH Plugins by Category

Introduction

DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture: skins, MCPs, tools, and bundles are all attached to the current profile in the form of plugins. As more are installed, while the built-in plugin_manager handles installation and uninstallation, it is difficult to distinguish at a glance “which are skins and which are MCPs,” nor is it convenient to toggle a specific category of plugin off all at once. If you have installed multiple ui-skin-* skin packages simultaneously, toggling them individually in settings becomes time-consuming.

dsh-plugin-categories (npm package name @dsh-external/dsh-plugin-categories) was released by community maintainer mozhi66 and belongs to the client-side plugin category. It does not handle installation or uninstallation; instead, it organizes the plugins already installed in the current profile by category, supporting batch enable/disable by category, drag-and-drop sorting, and automatic identification and classification of skin-related plugins.

What is this

In one sentence: DSH’s “plugin for managing plugin categories.”

It does not replace the built-in plugin_manager but complements it with “organizing” capabilities: viewing plugins by group in settings, toggling entire groups, moving individual plugins to other categories, or letting the agent perform operations via the conversational tool plugin_categories. Batch write operations, like plugin_manager, require a danger-full-access escalation approval; if the approval channel is unavailable, execution is refused (fail-closed).

Core Features

Settings Panel

On the browser side, an “Plugin Categories” entry is registered in the settings menu via client.js (settings.section id is plugin-categories). In the interface, you can:

  • View all installed plugins by category; enable or disable a specific plugin individually per row;
  • Perform batch enable/disable for entire groups: a dry-run preview is generated first, and executed after confirmation; if the plan involves @deepseek-ai/* or cordis:* members, the confirmation bar will display a red warning;
  • Drag to sort both groups and plugins within groups (⠿ handle); the order is written to assignments.json and persists after refresh; window focus triggers a refresh, with polling approximately every 8 seconds during mount to follow toggle states changed in other pages;
  • Rename groups, move individual plugins between categories, create or delete categories; deleting a group declared in the config actually removes it from the panel, and it can be restored from the “Removed Groups” section at the bottom; uncategorized cannot be deleted.

Data is accessed via same-origin /api/plugin-categories/* routes; loopback and Origin trust follow the kernel /api admission semantics.

Auto-categorization Logic

It reads all plugin entries of the current profile via pluginManager and groups them into three layers:

  1. Runtime assignments (assignments.json);
  2. Config-declared categories (cordis.yml / Config in settings);
  3. Skin heuristics: if the name or description contains skin, theme, 皮肤, 换肤, 主题, 外观, etc., or the bundle name starts with ui-skin-*, it is categorized as a skin with evidence attached; the rest go into uncategorized.

Default settings also group @deepseek-ai/* as “Official Built-in” and cordis:* as “Kernel Components,” separating them from custom plugins to reduce the risk of accidentally disabling the framework itself when using “Disable Group.”

Tool plugin_categories

Designed for conversation and agents, main actions include: list, assign, create_category, delete_category, restore_category, set_category (supports dryRun), set_plugin, reorder. Read-only entries are skipped during batch toggling with an explanation of the reason.

State Persistence

Assignment relationships are written to the profile’s .plugin-categories/assignments.json; if the profile directory cannot be detected, it falls back to ~/.dsh-plugin-categories/, or can be specified via dataDir. Enable/disable results are written to cordis.patch.yml. When upgrading from the legacy .plugin-curator path, existing category data is automatically migrated on the first startup. If HMR is enabled, changes take effect immediately; otherwise, a restart may be prompted.

Installation & Activation

Prerequisites: @deepseek-ai/dsh >= 0.1.0-rc.5 (peer dependencies @deepseek-ai/cordis, @deepseek-ai/dsh-tools, @deepseek-ai/schemastery are resolved upon installation). When installing directly from GitHub source locally, git must be installed and access to github.com must be available.

Via Plugin Market (Discover Page): DSH → Plugins → Discover → Add Index Source, paste:

https://raw.githubusercontent.com/mozhi66/dsh-plugin-categories/main/index.json

Then search for 分类, categories, or @dsh-external in Discover to install.

Direct Installation (Recommended): DSH Settings → Plugins → Add Plugin, paste the repository address:

https://github.com/mozhi66/dsh-plugin-categories

You can also ask plugin_manager in the conversation to install the above URL, or execute:

dsh plugin add https://github.com/mozhi66/dsh-plugin-categories

Restart or wait for HMR to take effect after installation. The plugin runs with the current DSH process permissions; it is recommended to review the repository source code and MIT license before installing.

Typical Usage

Interface

After installation, open DSH settings, and “Plugin Categories” will appear on the left. You can override or extend default groups using config.categories in the profile’s cordis.patch.yml; assignments are in assignments.json, and toggles are in cordis.patch.yml.

Example of extended categories (excerpt from README):

- insert:
    - id: plugin-categories
      name: '@dsh-external/dsh-plugin-categories'
      config:
        categories:
          - id: mcp
            label: MCP Servers
            namePattern: mcp

Conversation

List all current plugins and show them by category
→ plugin_categories {action: 'list'}

Categorize the two skins qq2006 and my-skin into "Retro Skins"
→ {action: 'assign', category: 'retro-skins', label: 'Retro Skins', createIfMissing: true, plugins: ['ui-skin-qq2006', 'my-skin']}

Preview first, then turn off all skin plugins
→ {action: 'set_category', category: 'skin', enabled: false, dryRun: true}
→ {action: 'set_category', category: 'skin', enabled: false}

Configuration Options

Write config: under the corresponding plugin entry in cordis.patch.yml:

Field Default Description
dataDir Auto-detect Directory where assignments.json resides
skinDetection true Disable keyword recognition when off; skinPlugins and existing skin assignments remain valid
skinKeywords [] Additional skin keywords
skinPlugins [] Plugin keys to force classify as skins
categories [] Declarative categories: id, label, plugins?, namePattern?

In older DSH builds where the plugin entry lacks meta, skin recognition falls back to bundle names and bundle descriptions; you can still explicitly specify using skinPlugins or category config.

Use Cases & Notes

Suitable for: Users who have installed multiple skins or MCP plugins, need to switch by class or disable by group, or want the agent to manage enable/disable via list / set_category.

Notes:

  • Only manages plugins already installed in the current profile; installation and uninstallation still use plugin_manager.
  • Changes to setPluginEnabled are written to cordis.patch.yml and take effect for all sessions of that profile; restart-required may be returned if there is no HMR.
  • DSH is in developer preview, and the pluginManager interface may change; this plugin is written according to the 0.1.x service interface.
  • Community plugin directories (like SkillHub) are independent sites and have no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-plugin-categories consolidates the issue of “having many plugins installed but difficult to classify or batch toggle” into a single category panel and the plugin_categories tool, aligning with the built-in manager’s permission model. For further information, visit the plugin directory page and GitHub repository:

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

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

Xiaoye