Preface¶
In DeepSeek Harness (dsh), if you use the llm-pi-ai adapter to connect to an OpenAI-compatible relay or a self-hosted gateway, the “Reasoning Level” panel commonly found in the Composer often disappears after selecting a model. This is not due to an invalid key or lack of vendor support, but rather a missing reasoningEfforts declaration in the configuration that the adapter reads. For self-declared routes that lack the catalog base from the installation directory, @deepseek-ai/dsh-llm-pi-ai parses such models as reasoning: false. Consequently, no levels are available in the interface, and forcibly specifying one results in an UNSUPPORTED_REASONING_EFFORT error. This article introduces the community plugin dsh-thinking-effort (maintainer buguoshixc), which writes the missing declarations via the officially supported settings seam, bringing the reasoning level selector back.
What is this¶
dsh-thinking-effort is a third-party bundle plugin for DSH, categorized under “Model Reasoning”. It does not take over the adapter, intercept HTTP requests, or patch the harness. Instead, it supplements the reasoningEfforts (and related compat settings where necessary) in the configuration locations read by the adapter. This allows the “Reasoning Level” in Composer, slash commands, and the plugin page dropdowns to have selectable options again. Catalog page: skillhub.cn/plugins/buguoshixc/dsh-thinking-effort; Source code and docs: github.com/buguoshixc/dsh-thinking-effort.
Origin of the Problem¶
A third-party provider profile typically looks like this (excerpt):
# $DSH_HOME/profiles/<profile>/cordis.patch.yml
- id: llm-pi-ai
name: '@deepseek-ai/dsh-llm-pi-ai'
config:
providers:
qiyuan:
apiKeyEnv: QIYUAN_API_KEY
api: openai-completions
baseURL: https://api.qiyuanapi.cc/v1
models:
- id: deepseek-v4.1
contextWindow: 1000000
This chain does not automatically write reasoningEfforts. The adapter logic is: if entry.reasoningEfforts === undefined, it falls back to reasoning: base?.reasoning ?? false. Since self-declared routes have no base, every model is treated as having non-adjustable thinking intensity. The same relay might still have levels if using the llm-deepseek adapter, because that adapter declares efforts for the routes it serves—essentially, this is a missing declaration issue, not a problem with the key or the vendor itself.
Core Features¶
The plugin revolves around a shared planner and provides four entry points:
- Automatic Adaptation on Startup: By default, it scans all undeclared third-party routes during the load phase and writes level mappings. Usually, no extra operation is needed after installation.
- Slash Commands:
/thinking,/thinking presets,/thinking adapt,/thinking set <provider>/<model> <preset>,/thinking remove ..., etc. - Plugins Page: Sidebar Plugins → dsh-thinking-effort, select by model dropdown, takes effect immediately.
- Model Tools:
thinking_effort_status,thinking_effort_set, useful for troubleshooting “this model cannot adjust thinking intensity” within conversations.
At startup, it also diagnoses routes that still cannot be adjusted, avoiding the situation where you only discover a newly added key is undeclared when opening the model selector for the first time.
Automatic adaptation only handles routes self-declared in the configuration; it will not overwrite existing model declarations you have written, nor will it modify reasoningEfforts: false (which explicitly indicates the model does not reason). For endpoints already determined to not support reasoning_effort, it writes openai-null-off; if it can identify the vendor hostname, it uses the corresponding preset; otherwise, it defaults to autoAdaptPreset: passthrough, sending the seven levels by their original names. The declaration only solves “whether there are levels to select”; it cannot prove from the configuration whether the remote end actually complies with these values. After modification, you can use /thinking explain to see the actual parameters sent for each level.
Write example (consistent with README):
providers:
qiyuan:
models:
- id: deepseek-v4.1
contextWindow: 1000000
reasoningEfforts:
off:
low: low
high: high
max: max
compat:
thinkingFormat: deepseek
Installation and Enablement¶
The plugin runs with the permissions of the current dsh profile. Please review the source code and license (MIT) yourself before installing. dsh plugin forwards to pnpm within the profile directory; installing from GitHub pulls the source code and builds lib/ during the prepare phase.
# from a checkout
dsh plugin --profile <profile> add /path/to/dsh-thinking-effort
# from GitHub (replace with your fork)
dsh plugin --profile <profile> add github:<you>/dsh-thinking-effort
On pnpm ≥ 10, the build for the first git dependency may be rejected. You need to add the package name suggested by pnpm to the profile’s pnpm-workspace.yaml and retry:
allowBuilds:
dsh-thinking-effort: true
The allowlist indicates allowing the package to execute build scripts during installation. This should only be enabled for source code you trust, and it is recommended to pin the commit: github:<you>/dsh-thinking-effort#<sha>.
Restart dsh after installation (bundle members are only read at startup), and confirm the layer has been composed:
dsh --profile <profile> --dump-config # expect a row named dsh-thinking-effort
In the Windows desktop version, the desktop profile is occupied by the running application with a file lock: Please quit DeepSeek Harness before installing to the desktop profile.
Compatibility (from README): Built for dsh 0.2.1-rc.2, engines.dsh is >=0.2.1-rc.2 <0.3.0, dsh.manifestVersion corresponds to the 0.2.1 package manifest format; client binding methods prior to 0.2.1 no longer exist, and earlier versions are not supported. Package version is 0.2.0, Node requirement is ^22.19.0 || >=24.
Typical Usage¶
By default, no operation is needed: newly added third-party keys will be automatically declared at startup, and the logs will indicate the route and level mapping, for example:
# dsh-thinking-effort: Automatic adaptation complete.
# ✅ Automatically declared thinking intensity levels for 1 model:
# Route qiyuan → passthrough (1 model)
# Endpoint detected as openai, writing passthrough
# Levels: off→(not sent) minimal→minimal low→low medium→medium high→high xhigh→xhigh max→max
Then, open the model selector in Composer → Reasoning Level, you can select Off / Minimal / Low / Medium / High / XHigh / Max; selecting one saves it as the Agent default, just like with built-in providers.
View current declarations:
/thinking
View the actual parameters sent for each level of a model:
/thinking explain qiyuan/deepseek-v4.1
Manually write by preset:
/thinking set qiyuan/deepseek-v4.1 deepseek-relay
If needed, re-run adaptation for a single route: /thinking adapt qiyuan --preset deepseek-relay.
If you only want writing to occur when manually executing /thinking adapt, you can disable automatic adaptation in the plugin’s own configuration:
- id: dsh-thinking-effort
name: 'dsh-thinking-effort'
config:
autoAdapt: false
autoAdaptPreset: passthrough
Applicable Scenarios and Notes¶
Suitable for developers on the dsh 0.2.1-rc.2 track who use llm-pi-ai to connect OpenAI-compatible third-party keys and need to adjust reasoning levels (reasoning effort / thinking intensity) in Composer. Catalog built-in routes are still resolved by the installation directory capabilities; this plugin will not “narrow” existing catalog behavior.
The community plugin catalog SkillHub is not officially affiliated with DeepSeek / Hunyuan; the DSH ecosystem emphasizes “everything is a plugin”. When choosing third-party bundles, please evaluate the trust boundary yourself and whether the network side truly supports various parameter levels.
Conclusion¶
dsh-thinking-effort supplements the reasoningEfforts declarations in a minimally invasive way, allowing the “Reasoning Level” selector to reappear for third-party self-declared routes, and supports automatic adaptation, slash commands, and fine-tuning via the Plugins page. For further information, visit the catalog page skillhub.cn/plugins/buguoshixc/dsh-thinking-effort and the GitHub repository github.com/buguoshixc/dsh-thinking-effort.