Preface¶
DeepSeek Harness (DSH) is an agent development platform provided by DeepSeek, built on the “Everything is a Plugin” philosophy. When developing agents based on Qwen models, developers frequently encounter a problem: Qwen models manually declared under the llm-pi-ai provider in DSH lack a reasoningEfforts mapping, which means the reasoning bar cannot select a level, and DSH will not send reasoning_effort to the Qwen Gateway—leaving only the gateway’s default value in effect.
Plugin Overview¶
jasocheung/dsh-qwen-reasoning is a DSH plugin that adds a complete reasoning-effort mapping to Qwen models via a runtime patch and sets the default reasoning level to max. The plugin was developed by maintainer jasocheung and is categorized under “Model Reasoning.” It uses an additive and idempotent approach, so it never overrides existing configurations, ensuring current settings remain unaffected.
Core Features¶
After installation (and whenever the llm-pi-ai configuration changes), the plugin automatically performs the following:
- Reads live provider information via
settings.describe() - Iterates through all providers to find models whose id contains
qwen(matching rule is configurable) - Adds a seven-level reasoning-effort mapping—
off / minimal / low / medium / high / xhigh / max—to any model that lacks areasoningEffortsmapping - Sets a default
reasoning: maxandcompat.supportsReasoningEffort: truefor the provider when unspecified - Persists changes by writing them into the profile patch via
settings.mutate()
The plugin operates in an additive and idempotent manner: it never overwrites an existing reasoningEfforts mapping (including explicit false values for non-reasoning models), nor does it overwrite existing provider reasoning or compat settings. Running it again writes nothing.
Installation & Activation¶
Install using the DSH plugin CLI:
dsh plugin --profile web add dsh-qwen-reasoning
You can also install by spec under DSH’s Settings → Plugins → Install:
- npm name: dsh-qwen-reasoning
- git: git:jasocheung/dsh-qwen-reasoning
- Local path: the cloned directory
After installation, refresh the DSH window (Ctrl+R) to mount the browser bundle. If you used a linked local installation, source-code changes require a host restart to take effect.
Configuration¶
Open the Settings → Plugins → dsh-qwen-reasoning config card in DSH:
- Matched Models: Displays each matched
provider/modelwith its level status (levels set/no levels) and default level - Apply now: Forces the enhancement immediately
- Auto-apply: Automatically re-applies the enhancement whenever the
llm-pi-aiconfiguration changes (enabled by default) - Model match: Case-insensitive regex match on model id, default
qwen - Provider match: Case-insensitive regex match on provider id, defaults to empty (matches all providers)
The plugin also supports modifying the wire-level efforts mapping via configuration. The default values are:
{
"off": "none",
"minimal": "minimal",
"low": "low",
"medium": "medium",
"high": "high",
"xhigh": "xhigh",
"max": "max"
}
Usage¶
Type the /qwen-reasoning command in the chat interface to apply the enhancement and print the list of matched models, their level status, and the number of configuration entries written this time.
Use Cases & Notes¶
This plugin is suited for scenarios where Qwen models are accessed via an OpenAI-compatible gateway, such as the Qwen AI Platform Token Plan endpoint. The plugin requires DSH version >=0.1.0-rc.1 <0.3.0-0 (including pre-release versions), Node.js >=18, and runs on the Web or desktop client. It depends on the llm-pi-ai provider plugin bundled with DSH.
The plugin runs with the current DSH process permissions. It is recommended to review the source code and license (MIT) before installation. The plugin is implemented in pure ESM with no build step and includes 12 unit tests.
Ecosystem Context¶
The DSH community uses the GitHub topic dsh-plugin for official discovery. Plugins are indexed in awesome-dsh-plugin and in npm packages such as dsh-plugin-hub / shop / feed.
Summary¶
This plugin addresses the core pain point of Qwen models lacking selectable reasoning levels in DSH. Through precise runtime read-modify-write operations, it ensures the reasoning bar displays all levels and that reasoning_effort is genuinely sent to the Qwen Gateway—without affecting any other configuration—allowing developers to finely control the model’s reasoning depth.
- Directory page: https://www.skillhub.cn/plugins/jasocheung/dsh-qwen-reasoning
- GitHub: https://github.com/jasocheung/dsh-qwen-reasoning