Add missing reasoning-effort declarations to custom pi-ai models through DSH settings, enabling the native effort picker and handling models added later.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-reasoning-options
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Scorp1o117/dsh-reasoning-options
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
简体中文 | English
Adds OpenCode session headers, provider-default management and opt-in reasoning-level augmentation for third-party model routes in DeepSeek Harness. When DSH provides a native reasoning editor, prefer its native settings.
Features
- OpenCode session header: adds a missing
x-opencode-sessionheader to HTTP(S) routes onopencode.aiand its subdomains, preserving existing headers. - Provider Default: removes a previously configured route effort to restore DSH's Default / Provider default.
- Optional levels: when
augmentReasoningis enabled, fills missing custom pi-ai model declarations withoff,minimal,low,medium,high,xhighandmax. Existing custom declarations andreasoningEfforts: falseare preserved.
Default omits the reasoning-effort parameter; it does not necessarily disable thinking. This plugin's default off mapping also omits the effort value, so the provider determines the behavior. A displayed level is not a guarantee that a model or provider supports it.
Compatibility and installation
DSH Web / Desktop accepts host versions from 0.2.0-rc.2 onward at startup, including future prereleases. See package.json for the compatibility declaration. Node.js >=20.18 is required.
For Desktop, install its dsh command through Application → Manage dsh Command first:
dsh plugin --profile desktop add dsh-reasoning-options
Replace desktop with web for Web. Restart DSH and open Plugins → Installed → dsh-reasoning-options. You can also install it through the Enhancement Suite.
Configuration
| Setting | Default | Purpose |
|---|---|---|
enabled |
true |
Enable gateway helpers |
augmentReasoning |
false |
Fill missing model declarations; when enabled, this can restore declarations removed in the native editor |
autoSessionHeader |
true |
Add a missing session header to matching OpenCode routes |
sessionHeaderValue |
dsh-session |
Value used for the added header |
pollIntervalMs |
30000 |
Fallback scan interval in milliseconds; 0 disables periodic scans |
Restore Default after upgrading
Select Default (omit reasoning effort) in the plugin's provider dropdown to remove that route's reasoning setting only. Upgrading does not automatically erase configured route efforts. If a conversation has an explicit effort selected, choose Default again in its model menu.
Writes use the DSH settings API and handle revision conflicts. The interface follows the DSH language setting.
Development and feedback
npm test covers augmentation, default preservation, configuration writes and localization. More: npm · Issues · MIT License.
Links
More in this category
Ebony-Vinyl/dsh-our-free-model★ 93739
Adds free model lanes to DeepSeek Harness — DeepSeek V4.1 Flash, Kimi K3 and others — with no login, sign-up or API key, plus a local OpenAI-compatible gateway, fallback routing and a usage dashboard.
dingminhua/dsh-connect-workbuddy★ 2236
Connects locally signed-in WorkBuddy models, CN and international alike, to DSH, reading each model's credit multiplier from the upstream catalog on every refresh, with per-model image input toggles, account switching backed by an auto-failing-over pool, manual daily check-in, and read-only credit overviews shown as compact pills on the card and in the composer.
Alice-Marx/dsh-model-router★ 1035
Routes DeepSeek Harness work across configured model APIs and supported vendor CLIs with dependency-aware packages and cost previews.
XDTrees/dsh-workbuddy-xdpool★ 660
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool (multi-account rotation, live credits, and a model catalog showing per-model credit multipliers and free/night-discount tags).
XDTrees/dsh-xdpool★ 660
Merge every locally signed-in WorkBuddy account into DeepSeek Harness as one auto-failing-over model pool: multi-account rotation, 429 cooldowns, live credits, a model catalog with per-model credit multipliers and free/night-discount tags, QR-code login for 13 vendors, and aggregate free-tier channels. Accounts persist across restarts.
V1ki/dsh-plugin-subscriptions★ 658
Use ChatGPT (Codex), Claude, and Grok subscriptions as DeepSeek Harness LLM providers, with Settings login, model catalogs, usage, plus image_generate, video_generate, and x_search tools.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.