dsh-slots-manager: Orchestrating DSH interface slots without touching upstream

Preface

In the DeepSeek Harness (DSH) Web interface, many entries originate from items that plugins register into “slots”: the sections on the left side of the settings dialog, the panel icons in the left sidebar, the action buttons at the bottom of the bar, etc. When there are many plugins, ordering, visibility, and label text are often managed independently—changing one place may require modifying upstream code or adjusting multiple plugin configurations.

The community plugin dsh-slots-manager (maintainer Yiklek, category: workflow) addresses this. It centrally handles display/hide, sorting, and renaming on the client-side slot registry, without modifying the deepseek-harness or other plugin source code.

What This Is

dsh-slots-manager is a DSH Web plugin that orchestrates slot entries contributed by other plugins to the interface—display/hide, sorting, renaming—without touching upstream.

The implementation consists of two parts:

  • Slot-agnostic engine: applies three patches on the prototype corresponding to ctx.slots, applying one policy per managed slot;
  • Slot table (src/slots.ts): the only place that explicitly names concrete slots; adding a slot = adding a row.

The current version (package.json: 0.1.0) manages three types of slots:

Slot Location Hide Sort Rename
settings.section Left navigation sections of the “Settings” dialog ✅ ✅ ✅
sidebar.panellist Panel icon buttons in the left sidebar ✅ ✅ ✅
sidebar.footer.action Actions at the bottom of the left sidebar, next to Settings ✅ ✅ ❌

sidebar.footer.action does not support renaming: the slot registration entry does not declare a label, and the button text is rendered by the component via locale, so changing label has no visible effect. Therefore, the UI does not provide a rename button for it.

Core Features

Management Panel and Entry Points

Two entry points open the same orchestration panel:

  1. The “Settings Orchestration” section in the left navigation of the settings dialog (positioned near the top, not hideable);
  2. The left sidebar “Plugins” page → this plugin’s detail page (same location as the config areas for dsh-mnemon, dsh-context, etc.: plugins.bundle.config, keyed by package name).

The panel displays groups such as “Settings Pages” and “Left Sidebar”, and each group has a Reset this slot option.

How Policies Take Effect

The engine applies three patches on SlotRegistry.prototype, covering both registration and read paths (the cordis service proxy resolves methods dynamically, making it immediately effective for all plugins):

Patch Interception Point Effect
register Registration entry Records original values (order / label / registrant) without rewriting, so they can be restored on reset
entries List readers (e.g., the settings shell navigation) Filters out hidden items + rewrites order/label at read time (returns a clone)
entriesOfSlot Renderers and sidebar panel lists Filters out hidden items + replaces entry.options in place (preserves object identity, avoiding StaleAuthorizationError)

Policies are persisted via the DSH standard settings namespace slots-manager; the host half declares policies as this plugin’s Config, the client reads/writes them via remote.settings, and SettingsProvider persists them to disk. The persisted document is grouped by slot, for example:

{ "version": 1, "slots": { "settings.section": { "hidden": {}, "order": {}, "labels": {} } } }

The grouping is not merely decorative: entry ids are only unique within a single slot; a flat structure would cause hiding one item to accidentally affect same-named ids in another slot.

Installation and Activation

Official CLI:

dsh plugin --profile web add dsh-slots-manager

Alternatively, use a file: dependency in your profile repository, add dsh-slots-manager to dsh.profile.bundles in package.json, then run pnpm install. Before using file:, you must run pnpm build in this plugin’s directory (main/exports point to the lib/ build output).

Takes effect after restarting dsh web.

Mutually exclusive with dsh-settings-manager: This plugin is its replacement (same patch mechanism, broader scope). Enabling both would stack two sets of patches; remove dsh-settings-manager before enabling this one. This plugin does not read configuration left behind by the old plugin; the namespace and document structure are newly created, with no automatic migration.

The plugin runs under the permissions of the current DSH process; before installation, review the GitHub repository source code and its MIT license yourself.

Typical Usage

  1. After installing and restarting dsh web, open Settings → Settings Orchestration, or go to the dsh-slots-manager detail configuration area from the left sidebar Plugins page.
  2. Within the corresponding slot group: toggle visibility for entries, drag or adjust order, and modify display names for slots that support renaming.
  3. If you make a mess of it, click Reset this slot for that group; policies are written back to the slots-manager namespace and persist after refreshing (persisted by SettingsProvider).

Non-managed slots (such as conversation.*, plugins.*, shell.*, etc.) will not be modified by this plugin.

Use Cases and Notes

Who it’s for

  • Users who have installed multiple DSH Web plugins and want to uniformly organize the order of settings sections, hide unused panel icons, or change section titles in settings;
  • Users who want to manage the visibility of footer actions (such as the insights entry from some plugins) and other slots from one place, rather than toggling each plugin’s switch individually (this does not conflict with the display switches plugins provide themselves; this plugin’s value lies in providing a unified location).

Limitations and Notes (excerpted from the upstream README)

  • Hiding sidebar.panellist entries only hides the entry; the corresponding main panel may still be reachable through other paths (clicking in the sidebar goes through selectPanel(id)).
  • This plugin’s section slots-manager cannot be hidden; the Settings entry is in sidebar.settings, so even if all panel icons are hidden, you can still enter settings to restore.
  • Base settings sections register before third-party plugins; the engine records original values on first read, so it does not depend on plugin load order.

Development build (for contributors or file: dependencies): pnpm install, pnpm typecheck, pnpm build; tests include unit tests, e2e smoke tests, and Playwright (see the repository README).

Conclusion

dsh-slots-manager uses three SlotRegistry patches and an extensible slot table to centrally manage the visibility, ordering, and renaming of settings sections, sidebar panels, and footer actions—without touching upstream code. Community catalog page: skillhub.cn/plugins/Yiklek/dsh-slots-manager; source code and detailed design: github.com/Yiklek/dsh-slots-manager.

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

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

Xiaoye