dsh-model-block-picker: Input Model Selector with Source-based Block Picking

Introduction

In DeepSeek Harness (DSH), switching models by default flattens models from all sources into a single long list. Channels like Account, Official API, CodeBuddy, Qoder, and TRAE are mixed together, requiring repetitive scrolling and identification when there are many models. While search and Reasoning Effort are still present, the step of “thinking through which channel to select from first” is not specifically addressed by the interface.

The following is an introduction to the community client plugin dsh-model-block-picker (Maintainer: liu19666). It replaces only the model slot in the bottom right corner of the input box (composer), transforming the selector into a two-level structure of “block by source first, then drill down to select models within the block.” It retains existing capabilities such as global search, reasoning effort, and speed/output verbosity (when supported by the provider). The plugin currently has 0 stars on GitHub and is licensed under MIT. The npm package version can be found in the repository’s package.json (1.1.0 at the time of data retrieval).

What is this

dsh-model-block-picker is a client-side (web) plugin for DSH. It overrides the official input box model selector UI via a Cordis slot. The data still flows through DSH’s native modelDirectories service without repeating requests to the backend. It shares the same session-level model catalog as the /model command popup; switching via either entry point is immediately visible in the other.

The DSH ecosystem emphasizes “Everything is a plugin.” Community directories like SkillHub are independent of DeepSeek / Higgsfield and are not official app stores.

Core Features

Group by Source & Two-level Drill-down

Clicking the model slot in the input box pops up a card grid grouped by source, rather than a flat long list. Each channel has a card displaying the source name and model count. The currently active source features a highlight border and a “Current” tag. Clicking a card enters the model list specific to that channel. Use the “← All Sources” at the top or press Esc to return to the previous level.

The default grouping order is DeepSeek Account → DeepSeek Official → Others by name. Cards are draggable for sorting, and the order is saved upon release.

You can directly input keywords like v3, sonnet, or r1 at the top of the panel. It aggregates matches across all sources, and pressing Enter selects the first item. Clearing the search returns you to the block view.

Reasoning Effort & Subscription Preferences

When the current model supports reasoning, a colored draggable slider ranging from Low → Max appears at the bottom of the overlay. Clicking the scale labels allows jumping to specific levels. The current level is displayed on the right, along with a “Restore Model Default” option. If the provider exposes speedMode / outputVerbosity (e.g., some ChatGPT subscription integrations), corresponding segmented controls will appear additionally at the bottom. For unsupported models or providers, these controls are hidden entirely to avoid invalid switches.

Display Settings & Preference Persistence

The ⚙ icon to the left of the search box opens Display Settings. You can toggle providers as a whole or expand the list to toggle individual models’ visibility in the selector. The top displays the count of hidden items, and the bottom allows one-click restoration of all settings.

Ordering, hidden sources, and hidden models are written to the browser’s localStorage under the key dsh-model-block-picker.prefs.v1. These persist after refreshing or restarting DSH. Preferences are isolated per browser profile and are not synced with the DSH account.

Theme

Both Light and Dark themes utilize DSH theme tokens. In dark mode, the accent color is --dsw-alias-link (#7aaaff). The trigger button maintains the same design language as adjacent icons like screenshots and microphone.

Installation & Activation

The installation method described in the materials targets local plugin directories (for development or personal use) and does not provide commands like dsh plugin add github:.... In a DSH session, simply instruct the Agent with the local path to install, and the Agent will call:

plugin_manager(action: 'install_bundle', target: '<absolute_path>')

After installation, you must completely exit and reopen the DSH desktop application (the client bundle has a startup baseline cache; simply refreshing the page may not load the new code).

To uninstall and revert to the official native selector:

plugin_manager(action: 'remove_bundle', target: 'dsh-model-block-picker')

It is recommended to review the repository source code and the MIT license before installation. Plugins run with the permissions of the DSH client process and, like any third-party plugin, require trust in the maintainer.

Typical Usage

  1. After installing and restarting DSH, click the model slot in the bottom right corner of the session input box. First select a channel from the source cards, then select a specific model.
  2. If you know a fragment of the model name, open the panel and search directly, then press Enter to select the first item.
  3. To hide unused channels or models, click ⚙ to enter Display Settings. To fix the order of frequently used channels, drag cards in the block view.
  4. If the current model supports reasoning effort, drag the slider or click the scale at the bottom of the panel. Use “Restore Model Default” to revert to the provider’s default values.

The popup opened by the /model command remains in the official style. This plugin only replaces the model slot on the composer; the data between the two is interoperable. Model selection is not provided for addressed subagent sessions, consistent with official behavior.

Implementation Notes (for Troubleshooting)

The plugin registers a named slot conversation.input.model (kind: "single") with a priority of priority: -20, which is higher than the official -10, thereby overriding the native component. It automatically falls back upon uninstallation.

The browser side reads and writes the directory via ctx.modelDirectories, for example:

const directory = models.directoryFor(sessionId);
directory.store   // Snapshot: groups, current, etc.
directory.load()
directory.select({ provider, model, reasoningEffort })

The client sandbox requires a top-level inject declaration of the service whitelist (e.g., slots, modelDirectories). Undeclared services (e.g., reading ctx.sessions directly) will cause registration to fail.

When troubleshooting, search for the host log prefix [dsh-model-block-picker], or visit the browser diagnostic route /plugins/dsh-model-block-picker/diag to check if the lifecycle has reached registered-success.

Use Cases & Notes

Suitable for: DSH users who frequently switch between multiple model sources and prefer selecting the channel first, then the model within the composer. Suitable for those who need to retain search and reasoning effort and are willing to fine-tune the visible model list via local settings.

Notes:

  • Only overrides the input box model selector; does not change the /model popup UI.
  • Speed/Output Verbosity is only displayed for providers that implement these preferences.
  • Preferences are stored in local localStorage and will not sync across browsers or profiles.

Links

Based on the steps above, if your primary pain point is “finding the source in a long list,” this plugin condenses the selector into a two-level structure grouped by channel. It retains search and reasoning effort without dismantling the official data layer. Both installation and uninstallation are completed via plugin_manager bundle operations. After exiting and reopening, you can experience the block panel at the composer model slot.

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

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

Xiaoye