Introduction¶
In DeepSeek Harness (DSH), switching a model’s reasoning effort level requires two or three clicks in the model menu to reach the desired setting. This plugin turns that multi-step operation into a single click right on the DSH input toolbar.
Plugin Overview¶
- Name: dsh-thinking-toggle
- Maintainer: CHENJIAMIAN
- Category: Model Reasoning
- Purpose: Adds a thinking toggle button to the DSH input toolbar, allowing you to switch between “thinking off” and your last used reasoning level.
- Technical Type: Pure front-end plugin. Mounts a React component to DSH’s
conversation.input.leftslot and reads/writes the same model directory.
Core Features¶
The button appears on the left side of the input toolbar and displays two states:
- Thinking (dot highlighted) — currently at a reasoning level such as
high,max, or the model’s default. - Not Thinking (dot grayed out) — currently set to
off.
Clicking the button cycles between the two states:
- Off: Sets reasoning effort to
off. - On: Restores the last used level; if no level is remembered, falls back to the model’s default, then to the highest available level for that model.
The plugin reads and writes to the same per-session model directory used by DSH’s built-in model menu, and submissions go through the same session.selectModel call. Therefore:
- Switching via the button is reflected in the model menu, and vice versa;
- The selection is saved as the default for subsequent new sessions, matching the behavior of manual selection in the model menu.
Installation¶
Installation via the plugin page is recommended:
- Open Plugins in the DSH sidebar.
- Go to Add plugin and enter the npm package name in the input field:
dsh-thinking-toggle
- Refresh the page or start a new session.
Command-line installation (replace with your profile name):
dsh plugin --profile desktop add dsh-thinking-toggle
From source:
git clone https://github.com/CHENJIAMIAN/dsh-thinking-toggle.git
Then select that directory in Plugins → Add plugin.
Usage¶
Open any session and look at the input toolbar. The button will not appear for non-reasoning models; for reasoning models, it will show “Thinking / Not Thinking.” Click the button to toggle. A hover tooltip indicates whether the next click will turn thinking on or off.
When the Button Doesn’t Appear¶
This is by design, not a bug:
- The current model doesn’t declare a reasoning effort level (non-reasoning model) — there are no levels to toggle.
- The model declares levels but has no
offoption or no non-offoption — a two-state toggle can’t be formed. - The session is a “passive subagent (addressed subagent)” — model routing changes are not permitted.
- A new session where no model has been selected yet.
How It Works¶
The plugin is a pure front-end bundle with no host-side logic and no new session event types:
- Registers a React component as a button in the
conversation.input.leftslot. - Reads the current session’s model directory (models, available reasoning levels, current selection) via the built-in
@deepseek-ai/dsh-client-ui-model-selectionpackage’sctx.modelDirectories.directoryFor(sessionId). - On click, calls the same directory’s
select({ provider, model, reasoningEffort }), i.e.,session.selectModel. - Styling uses only DSH theme variables (
--dsw-alias-*), following the light/dark theme.
Limitations¶
- Only appears in the Web GUI input toolbar; not available in terminal or headless environments.
- Depends on the built-in
dsh-client-ui-model-selectionpackage; in profiles where that package is absent, the button simply won’t register (no errors or page crashes). - The “on” target is the remembered level; there is no “pin to a specific level” setting. To pin, select a level once in the model menu, and the toggle will remember it thereafter.
- Makes no network requests, reads no files, and collects no data.
Compatibility¶
Requires DSH >=0.2.2-rc.5 (enforced via engines.dsh in package.json).
Conclusion¶
This plugin reduces a multi-click operation in DSH’s model menu to a single click on the input toolbar, making it ideal for scenarios where you frequently switch reasoning levels during a conversation. For more details, see the plugin’s catalog page and GitHub repository.