dsh-reasoning-effort-inject: Configure Reasoning Effort per Model in Web Settings

Preface

DeepSeek Harness (DSH) allows specifying reasoning effort / thinking strength for each model in custom pi-ai provider scenarios by modifying settings.yaml. However, the native Web “Settings → Models” page does not provide corresponding controls; changing configurations requires manually editing YAML or relying on other entry points.

The community plugin dsh-reasoning-effort-inject (maintainer: shenbimicro233) injects an independent “Thinking effort” editor for each model entry in the frontend, and writes values back to DSH’s settings storage. The plugin only handles UI injection and configuration writing; it does not replace DSH’s underlying semantic support for settings.yaml.

What This Is

dsh-reasoning-effort-inject is a DSH plugin for the web profile, currently at version 0.1.0 (MIT license). It adds a thinking strength selection area for each model within the provider card in “Settings → Models”, and reads/writes the model list under the llm-pi-ai namespace via remote.settings.

Core Features

The capabilities explicitly stated in the documentation are as follows:

  1. Per-model independent editor: Injects a thinking strength UI into each entry of the model list, rather than a single global switch.
  2. Frontend injection and persistence only: Does not alter DSH server-side inference logic; configuration writing is consistent with DSH’s native settings channel, rebuilding the entire models array upon save with revision-based optimistic concurrency control.
  3. Dynamic page adaptation: Uses DOM scanning, createPortal injection, along with MutationObserver and polling, to mount the editor even after models are added/removed or providers are switched.
  4. Bundle integration: cordis.patch.yml is loaded as a patch bundle layer; the browser-side lib/client.js enters via the dsh.client from the settings.models.provider-card slot.

Installation and Activation

The installation method provided in the README is as follows (must use the web profile):

dsh plugin --profile web add git+https://github.com/shenbimicro233/dsh-reasoning-effort-inject.git

After installation, open DSH Web’s “Settings → Models”; a “Thinking effort” selection area should appear within each model entry.

Compatibility note: The maintainer has only tested on dsh v2.0.13-beta.1; compatibility with other versions is not declared.

After modifying plugin source code, a full restart of DSH is required for changes to take effect.

Typical Usage

  1. Install the plugin using the command above and restart DSH (if plugin code was recently modified).
  2. Navigate to “Settings → Models” and locate the model entry under the target custom provider.
  3. Select the desired strength in the “Thinking effort” area within the entry.
  4. Use the plugin’s own “Save” button to submit the thinking strength; do not use the page’s native “Save” as a substitute (see notes below).

Use Cases and Notes

Who it’s for: Developers or operators managing custom pi-ai models in DSH Web who need to adjust thinking / reasoning effort per model; users accustomed to editing settings.yaml can also use this plugin to reduce manual YAML editing.

Runtime and trust: The plugin loads with the current DSH process and web client. Before installation, it is recommended to review the source code and MIT license on the GitHub repository to confirm compliance with your deployment strategy.

Usage notes you must follow (from the README):

  • Only use the plugin’s “Save” to write thinking strength: DSH’s native save button does not provide reasoning-effort controls, and when modifying other fields it may overwrite the entire models array, wiping out values written by the plugin.
  • May break after DSH upgrades: The model entry DOM class name .fS-I-G_modelEntry comes from DSH’s compile-time CSS Module and may change after upgrades; if the UI no longer injects, you need to update the MODEL_ENTRY constant at the top of client.js.
  • Multi-window concurrency: Saves are revision-based; simultaneous changes from multiple windows may trigger a “Settings have changed, please retry” prompt.

The community plugin directory SkillHub entry has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem emphasizes “everything is a plugin”, and the directory site is an independent community index.

Summary

dsh-reasoning-effort-inject fills in the missing per-model thinking strength configuration in Web’s “Settings → Models”, with a clear installation command and interactions concentrated within the model card. Before use, remember the division of responsibilities between the plugin’s save and the native save, and pay attention to whether DOM selectors need follow-up maintenance after major DSH version upgrades.

  • Directory page: https://www.skillhub.cn/plugins/shenbimicro233/dsh-reasoning-effort-inject
  • Source code and documentation: https://github.com/shenbimicro233/dsh-reasoning-effort-inject
羽毛球分组比赛记分
小程序二维码

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

Xiaoye