dsh-model-switcher-pro: Enhanced Model Selector and Reasoning Difficulty Slider for DeepSeek Harness

Preface

DeepSeek Harness (DSH) follows the “Everything is a Plugin” design philosophy. Extension plugins can enrich Composer’s model selection and control capabilities. Beyond the native model trigger control, community developers have released dsh-model-switcher-pro, an enhanced fork of the original dsh-model-switcher that focuses on providing a more refined model selection experience on both Web and Desktop, and introduces an OpenAI Codex-style “reasoning effort” slider.

Plugin Positioning & Maintainer

dsh-model-switcher-pro is a plugin for DeepSeek Harness, categorized under “Model Reasoning.” It is maintained by ZSQS88, distributed under the MIT license, and is an enhanced fork of dsh-model-switcher from the youssefsiam38/dsh-plugins project. All original features (Provider selection, model search, keyboard navigation, etc.) are preserved, with additions including a reasoning-effort slider, dark/light theme support, and an optional host Composer restyle.

Core Features

Enhanced Model Selector

The plugin provides a model trigger control within the Composer. Clicking it opens a selector. At the top of the selector is the Provider selection, which supports search and defaults to displaying “All providers.” Each Provider displays its logo, model count, and key status (signed in, ready, key required, or failed to load).

The model search area supports fuzzy matching on model name/ID and Provider name/ID, with results grouped by Provider. Each row displays context window, Vision, and Reasoning badges, along with star, favorite, and recent-use indicators. When the search is empty, favorites and recent uses appear at the top of the list.

Reasoning-Effort Slider (Codex-style reasoning-effort slider)

The reasoning-effort button is positioned next to the model trigger control. The button displays the current level (e.g., High), and clicking it opens a slider. The slider only shows levels supported by the current model adapter (or “Default” if none). The slider has the following characteristics:

  • Named levels, each with its own color palette
  • Magnetic snap: smooth transitions between levels while dragging (170 ms damped glide)
  • The top Max level uses a Max-flow treatment with animated tick/gloss feedback and a live numeric readout
  • Dragging previews the level; releasing the mouse or using arrow keys confirms it and keeps the popover open
  • Supports ARIA slider semantics and full keyboard control (←/→/↑/↓, Home/End, Esc)
  • Supports the prefers-reduced-motion mode, which disables animations while keeping the slider centered

Theme & Design

The selector and reasoning-effort popover read the host theme marker (body[data-ds-dark-theme] for dark mode, otherwise light) and provide contrast-optimized light-mode palettes to ensure readable ink colors, tracks, ticks, and tooltips at every level. The design includes more generous line spacing, a unified type scale, token-based hover and press feedback, and a narrow-screen fallback (below 520 px only the two end ticks are shown; on mobile a full-width bottom sheet is used).

Optional Host Composer Restyle

The plugin provides a composerRestyle configuration option (disabled by default). When enabled, it applies style adjustments to the host Composer, including a larger prompt area, more rounded corners, a full-card focus ring, and hover/press feedback. These selectors are host-global, so they are mounted via a separate stylesheet and take effect only when explicitly enabled.

Installation & Activation

The plugin is published on GitHub and is not published to npm. Install it as follows:

Web profile:

dsh plugin --profile web add github:ZSQS88/dsh-model-switcher-pro

Desktop app:

Open the Plugins UI and install github:ZSQS88/dsh-model-switcher-pro via the GitHub spec. The Desktop profile drives rendering, so after installation you must fully restart the app to reload client-side plugins.

Using a pre-built tarball (skips the build approval step):

Download dsh-model-switcher-pro.tgz from the v0.4.3 Release, then run:

dsh plugin --profile web add ./dsh-model-switcher-pro.tgz

After installation, cordis.patch.yml will have a plugin entry inserted:

- insert:
    - id: model-switcher-pro
      name: dsh-model-switcher-pro

If the configuration does not take effect, restart DSH or the Desktop app.

Usage

Click the model trigger control in the Composer (or focus it and press Enter) to open the selector. Focus lands on the model search area:

  • Type to filter. Matching is fuzzy across model name, model ID, and Provider name/ID; each entry must match at least one. Name matches take priority over Provider matches; ties are broken by favorites first, then recent use
  • ↑/↓ to navigate, Enter to select. The selection applies only to the next request in the current session, consistent with native control behavior
  • Shift+Tab jumps to Provider selection; Enter confirms the Provider and returns to model search scoped to that Provider; “All providers” re-searches across all Providers
  • Star a row (or Ctrl+S / ⌘S) to add it to favorites; recent selections appear under “Recent”; favorites and recents are shown only when the search is empty; both are stored in the browser’s localStorage (key dsh-model-switcher:v1), remain stable after renaming, and are shared across tabs
  • Click the “Reasoning effort” button next to the model trigger control to open the slider; drag or use arrow keys to change levels; release to confirm and keep the popover open; selecting a model from the list applies that model’s default effort level

Keyboard Navigation

Context Key Action
Model search ↑ / ↓ Previous / next model (wraps)
Ctrl+P / Ctrl+N Previous / next model (wraps)
PageUp / PageDown Move up / down 8 rows
Enter Select current model
Ctrl+S / ⌘S Toggle favorite on current model
Esc Clear search; if already empty, close the popover
Provider search ↑ / ↓ Previous / next Provider
Enter Select Provider, return to model search
Esc Clear, return to model search, then close
Reasoning-effort popover ← / → / ↑ / ↓ Move between levels
Home / End First / last level
Esc Close; focus returns to the reasoning-effort trigger
Model popover Tab / Shift+Tab Cycle between Provider search → model search (disabled on mobile)

The current row is announced via aria-activedescendant; both search inputs are ARIA comboboxes controlling their respective listboxes; models are grouped with role="group"; the result count is announced in a polite live region; the reasoning-effort slider exposes role="slider" with aria-valuemin/max/now/text; on close, focus returns to the Composer control.

Configuration

All configuration is optional and can be overridden in the Profile’s cordis.patch.yml by targeting the row ID model-switcher-pro:

- id: model-switcher-pro
  config:
    priority: -10          # Slot priority; must be negative (native control is 0)
    initialFocus: models   # or `providers` to open on Provider search

Other configuration items are not explicitly listed in the README; please refer to the official documentation for details.

Use Cases & Notes

Suitable for DSH users who need fine-grained reasoning-effort control on both Web and Desktop and want an enhanced model selector experience. The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and license before installing. As an enhanced fork, it preserves all original behavior and only adjusts the UI and interaction layer.

Conclusion

dsh-model-switcher-pro brings reasoning-effort control and model selection together in the Composer through a slider and restyling, offering DSH users a more intuitive interaction path. The plugin directory and source code are available at the links below.

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

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

Xiaoye