dsh-thinking-effort
A DSH (DeepSeek Harness) plugin that adds configurable reasoning effort levels to hand-declared llm-pi-ai models and sets a default reasoning effort for subagents.
Why use it?
The llm-pi-ai adapter supports hand-declared third-party models, but those entries often do not declare reasoningEfforts. As a result, Composer does not show a reasoning effort selector, and gateway-specific values such as ultra cannot be mapped to DSH's standard levels.
This plugin provides the configuration layer needed to:
- Add default
off,high, andmaxoptions to models without a declaration; - Configure reasoning levels per model from the DSH settings page;
- Map a DSH level such as
highto a gateway value such asultra; - Set a default reasoning effort for subagents while preserving explicit request values;
- Keep existing user-defined model declarations unchanged.
The plugin is usually unnecessary when you only use built-in DSH models and their reasoning controls already work.
Identifiers
These identifiers have different responsibilities:
| Identifier | Purpose |
|---|---|
@hytime/dsh-thinking-effort |
npm package, browser bundle path, loader ID, and host/client runtime ID |
thinking-effort |
Cordis composition entry ID and settings Slot ID |
Features
| Feature | Description |
|---|---|
| Default levels | Adds off, high, and max without overwriting custom values |
| Per-model editor | Select levels and configure their gateway values from Settings |
| Gateway mapping | Send ultra when the user selects DSH high |
| Subagent default | Apply a default effort only when a subagent request has no explicit value |
| Bilingual settings | Switch the plugin settings page between Chinese and English |
| Version watermark | Show the installed plugin version in the bottom-right corner |
Install, upgrade, and remove
Use the official DSH CLI to manage the plugin profile. A plain npm install does not register a DSH profile bundle.
# Install the latest version
dsh plugin --profile <profile> add @hytime/dsh-thinking-effort
# Install a specific version
dsh plugin --profile <profile> add @hytime/dsh-thinking-effort@0.1.6
# Upgrade
dsh plugin --profile <profile> update @hytime/dsh-thinking-effort
# Remove
dsh plugin --profile <profile> remove @hytime/dsh-thinking-effort
rm -f "${DSH_HOME:-$HOME/.dsh}/thinking-effort-loaded.json"
See INSTALL.md for profile discovery, migration, validation, and troubleshooting.
Quick use
Open DSH Settings → Reasoning effort.
Use the Page language selector at the top to choose
中文orEnglish. DSH uses the persisted locale first, then the browser language, then Chinese as the fallback. The selection is persisted by DSH and survives refreshes and restarts.Choose a subagent default from the Subagent reasoning effort card, then click Apply.
Apply a preset to all models, or expand one model for detailed configuration.
Select a level and enter the exact gateway value. For example:
DSH level Gateway value offLeave empty to omit the parameter highultramaxmaxReturn to Composer and select the model to use its reasoning selector.
The settings page shows the installed version as a small watermark such as v0.1.6 in the bottom-right corner.
How it works
- Host: Scans
llm-pi-aimodelsandmodelOverrideson startup and settings changes, adding defaults only wherereasoningEffortsis missing. - Client: Registers a settings page through the standard DSH settings API and the official DSH locale service. Chinese and English dictionaries are maintained separately in
src/locales/zh.jsonandsrc/locales/en.json, then generated into the client bundle before publishing. - Subagents: Stores the default in the
llm-pi-aiuser layer assubagentEffort. Theagent/requestwaterfall only fills requests that do not already specify an effort. - No configured default: The plugin does not automatically choose
off,high, ormax; the request omitsreasoningand the gateway decides its own default behavior.
Limitations
llm-pi-aiexposes seven standard levels:off,minimal,low,medium,high,xhigh, andmax.- Non-
offlevels require a gateway value. An emptyoffvalue means that the parameter is omitted. - The selected subagent level must be supported by the target model, or the gateway may return
UNSUPPORTED_REASONING_EFFORT. offand an unset effort may both omitreasoning; whether this disables thinking depends on the gateway protocol.- Host changes require a DSH restart. Settings and locale changes are applied in the browser, with a refresh available when needed.
还没有评论,来写第一条。