DeepSeek Harness Plugin

Scorp1o117/dsh-reasoning-options

Stars ★ 1 Downloads (30d) 2,317 Category Models & Providers Added 2026-09-05 npm dsh-reasoning-options

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-session header to HTTP(S) routes on opencode.ai and its subdomains, preserving existing headers.
  • Provider Default: removes a previously configured route effort to restore DSH's Default / Provider default.
  • Optional levels: when augmentReasoning is enabled, fills missing custom pi-ai model declarations with off, minimal, low, medium, high, xhigh and max. Existing custom declarations and reasoningEfforts: false are 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.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.