dsh-thinking-slider: Model and Reasoning Intensity Selector in Composer

Preface

By default, the DeepSeek Harness (DSH) Composer uses a single-line model selector to switch models. If you also need to adjust “reasoning effort,” the official control is often separated from the model selection or relies on whether reasoningEfforts is declared in the configuration. For developers who frequently switch between Off / Low / High / Max on the same model, the desire is to complete “model selection + effort selection” in a single interaction near the input area, with the interface reflecting the current tier.

Below is an introduction to the community plugin dsh-thinking-slider (Maintainer: MuFeng262, Category: Model Reasoning). It replaces the model selector in the Composer with a compact “Model Name · Tier” display. Clicking it opens an effort slider with a gradient and particle (or energy charging) track. Tier data is sourced from model.reasoning.efforts reported by DSH and is not hardcoded within the plugin.

What is this

dsh-thinking-slider is a client-side plugin for the DSH Composer. In one sentence, it is positioned as a Codex-style reasoning-effort slider for the DeepSeek Harness composer — select the model first, then drag the reasoning effort on a visual track.

  • Repository: MuFeng262/dsh-thinking-slider
  • Community Catalog: skillhub plugin page
  • Current package version: 0.3.3 (subject to the repository’s package.json)
  • License: MIT
  • Dependencies: No third-party npm dependencies; only uses DSH’s built-in react / react/jsx-runtime / react-dom

The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and license before installation. The DSH community catalog is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Core Features

Collapsed State and Expanded Card

  • Collapsed State: A single line of text, e.g., deepseek-flash · Max, taking up no extra space.
  • Click to Open: The card displays the current tier in large text; Model Name › allows switching models; a thick slider is located below.
  • Drag Slider: Instantly switches reasoning effort, with visuals changing according to the tier (depending on the selected display mode).
  • Keyboard: ← / →, Home / End switch tiers, Esc closes the card.
  • Degradation: If the model has no reasoning tiers, only the model name is displayed, and the slider does not appear (avoiding invalid controls).

Tiers are not hardcoded in the plugin: it reads model.reasoning.efforts reported by DSH. Any provider route that has declared reasoningEfforts in the configuration will automatically appear on the slider.

Three Display Modes

Switch in Settings → General → Reasoning Slider. The mode is saved in the browser’s localStorage, and the switch takes effect immediately without requiring a restart.

Mode Effect
Official The plugin does not register a UI slot and yields to the official DSH model selector
Particles Track gradient + internal floating particles, becoming denser at higher tiers
Energy Charge A dot-matrix charging field on a dark track; the frontier sweeps from left to right into the knob, and the highest tier burns continuously

Settings and slot registration are independent: even if “Official” is selected, you can switch back to Particle or Energy mode at any time.

Energy mode uses canvas 2D for per-cell decay simulation (not WebGL, no extra dependencies). The rendering loop stops once a middle tier is settled to reduce CPU usage; color schemes follow data-ds-dark-theme to switch between light and dark in real-time.

Supplementary Mapping for Models Missing Tiers

The DSH “Settings → Models” page does not provide the reasoningEfforts field. If an agent model added via the GUI does not declare a mapping in the profile, DSH will not report tiers; if an unmapped tier is force-selected, it will error with UNSUPPORTED_REASONING_EFFORT (rather than silently ignoring it).

The plugin lists agents with “models but no declared tiers” in Settings → General → Model Reasoning Tiers. You can click Fill Four Tiers for each:

  • Writes to the actual llm-pi-ai configuration (the same one used by “Settings → Models”), and the tiers will truly take effect with requests.
  • The adapter re-reads the configuration per request; no DSH restart is required.
  • Only fills in undeclared models; declared ones are preserved as is.
  • Per-agent confirmation, not fully automatic: If the gateway does not accept reasoning_effort, requests for that agent may all fail. The README notes that none / low / high / max are the tested working spellings; switching gateways is recommended to be tested with a single model first.

If a custom model requires tiers, reasoningEfforts must be handwritten for each model in the profile’s cordis.patch.yml (the Models settings page deliberately does not provide this field). Key names (like off / low / high / max) determine the number of slider tiers; the values on the right are the raw spellings sent to the gateway, and incorrect entries may result in a 400 error. reasoningEfforts: false can explicitly mark a non-reasoning model.

Environment and Requirements

  • DSH Desktop or dsh web, kernel 0.2.x (README development verified on 0.2.0-rc.1 / 0.2.0-rc.2).
  • The plugin does not declare peerDependencies, so it won’t be skipped entirely due to DSH version gating; if UI slots change after a DSH upgrade, the plugin may need follow-up adaptation.

Installation and Activation

If the profile name is desktop, execute in the terminal:

dsh plugin --profile desktop add github:MuFeng262/dsh-thinking-slider

If the profile name is not desktop, replace --profile desktop with the actual name. You can also add the same github:MuFeng262/dsh-thinking-slider in the plugin manager.

After installation, fully exit DSH Desktop and reopen it (client-side plugins are composed and loaded at startup).

Typical Usage

  1. After installing and restarting DSH Desktop, open the Composer. You should see a Model Name · Tier line in the model area; click to expand the card.
  2. Drag the slider or use arrow keys to switch reasoning effort; switch models via Model Name ›.
  3. In Settings → General → Reasoning Slider, select “Particles”, “Energy Charge”, or “Official”.
  4. If an agent model has no tiers: Open Settings → General → Model Reasoning Tiers, and use “Fill Four Tiers” for the corresponding agent (verify with a single model before switching gateways).
  5. Advanced: Configure reasoningEfforts for models under the llm-pi-ai provider in cordis.patch.yml, for example:
- id: llm-pi-ai
  name: "@deepseek-ai/dsh-llm-pi-ai"
  config:
    providers:
      your-gateway:
        displayName: Your Relay Provider
        apiKeyEnv: YOUR_API_KEY
        api: openai-completions
        baseURL: https://your-gateway.example/v1
        models:
          - id: some-model
            name: some-model
            reasoningEfforts:
              off: none
              low: low
              high: high
              max: max

Uninstallation

dsh plugin --profile desktop remove dsh-thinking-slider

For manual installations, you must also delete the package in node_modules, the dependencies entry in package.json, and the corresponding entry in dsh.profile.bundles; simply deleting dependencies will still load the bundle at startup.

Use Cases and Notes

Suitable for: DSH users who frequently switch reasoning effort on the same model in the Composer; want to complete model selection and effort selection in the same control; and are willing to complete or handwrite reasoningEfforts mappings in settings.

Notes:

  • The plugin does not create gateway capabilities; tiers must be configured with correct mappings, otherwise DSH will reject requests.
  • The values in “Fill Four Tiers” and YAML are gateway-side spellings; different relay providers may use different ones.
  • Installation implies trust in the maintainer’s code and usage under the MIT license; lack of star data does not represent quality, so please rely on your own testing (the repository README provides node test/smoke.mjs for developers to run 66 behavior tests locally).

Conclusion

dsh-thinking-slider extends the DSH Composer’s model selector into an integrated “Model + Reasoning Effort” control and bridges the configuration gap where the GUI cannot edit reasoningEfforts via the settings page. For further information or to submit issues, please visit the GitHub repository and the skillhub catalog page.

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

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

Xiaoye