Introduction¶
DeepSeek Harness (DSH) is a development framework built on the philosophy of “everything is a plugin.” In multi-model, multi-session scenarios, the reasoning effort for each session is determined by model selection and persisted configuration, which can easily result in different sessions operating at different levels. For scenarios that require stable, uniform reasoning effort, manually managing each session’s effort level is often tedious and prone to oversight.
Below is an introduction to a DSH plugin that pins the reasoning effort to Max upon session startup and model switching, ensuring all sessions run at the highest level of reasoning. Whether requests originate through the Web picker, ACP client, SDK, or headless mode, once the plugin is enabled, reasoning effort is uniformly enforced.
Plugin Overview¶
- Name:
dsh-max-reasoning-effort - Maintainer: devzer0o0
- Category: Model Reasoning
- GitHub: https://github.com/devzer0o0/dsh-max-reasoning-effort
This is a Host-only plugin that intercepts agent.model.select(...) calls to override the reasoning effort selection for a session. It does not change the model or provider, nor does it modify the request body. It solely ensures that every session enters the reasoning phase with Max-level reasoning effort.
Core Features¶
The plugin’s core capabilities are as follows:
-
Enforce Max reasoning effort at session initialization
- When an Agent is announced (agent/created), the plugin checks whether the session’s persisted model selection includes a reasoning effort level. If it is missing, or if the level is the model’s own default, the plugin forces it to Max. -
Maintain Max reasoning effort during model switching
- When the user switches models, the plugin re-applies the enforcement logic, so regardless of which model is selected, the reasoning effort remains at Max. -
Adaptation for models that do not support Max
The plugin queries the LLM runtime for the list of supported reasoning efforts for each model and adapts accordingly:
| Declared reasoning effort levels | Level actually used by the plugin |
|---|---|
Includes max |
max |
| Only lower levels included | The highest level declared by the model |
| Reasoning not supported | Field not set (removed from the request) |
| Unresolved / unknown | Set to max first, corrected after resolution |
For models that do not support reasoning, the plugin removes the reasoningEffort field to prevent the runtime from rejecting the request before it is sent (UNSUPPORTED_REASONING_EFFORT).
-
Does not modify stored default model settings
The plugin does not overwrite the persisted configuration ofagentDefaultModel. Therefore, the default model displayed in the settings page retains its own default reasoning effort, while the actually running sessions are enforced to Max. -
Does not modify the request body
The plugin does not touch request body fields such as temperature, token budget, prompts, or tool calls. It focuses exclusively on reasoning effort selection.
Compatibility¶
- DSH engine dependency:
engines.dsh: >=0.2.0 - Validated version: DeepSeek Harness 0.2.2-rc.3
- Runtime: cordis 4.1.0
The interfaces the plugin depends on are consistent with those used by the DSH host itself:
dsh-agent:AgentModel.current()/AgentModel.select({ provider, model, reasoningEffort }), as well asctx.agents.list()dsh-agent-loop: The loop snapshotsthis.model.current()beforeagent/pre-stepand rejects anyagent/requestthat proposes a different reasoning effortdsh-llm:llm.resolveModelInfo(provider, model)returnsreasoning.efforts[].id, used to look up available reasoning efforts- Events:
agent/created/agent/disposed(ctx.agents),llm/adapters-updated(adapter catalog change notification)
Installation & Activation¶
The plugin is installed as Host-only, with configuration injected via cordis.patch.yml. Add the following to the host’s configuration file:
- insert:
- id: max-reasoning-effort
name: dsh-max-reasoning-effort
config:
enabled: true # false: keeps the plugin loaded but stops enforcing Max
effort: max # Preferred level; falls back to the highest level declared by the model if Max is not available
- Enable the plugin: set
enabledtotrue - Stop enforcing Max: set
enabledtofalse; the plugin will still load but will no longer override reasoning effort
Modifying module code requires a host restart; modifying the config field is automatically picked up by the Loader.
Typical Usage¶
Once the plugin is enabled, no additional action is required. Any session initiated through the Web picker, ACP client, SDK, or headless mode will use Max reasoning effort when it enters the reasoning phase.
The plugin intervenes at the following points:
- New session creation
- Resuming a previously saved session (if the saved selection lacks a reasoning effort level)
- Model switching (regardless of the model’s own default reasoning effort)
If the current model does not offer a Max level, the plugin will automatically use the highest level declared by that model, or omit the field entirely for models that do not support reasoning.
Use Cases & Notes¶
Suitable for the following scenarios:
- Multi-session development and debugging where uniform reasoning effort is required
- High requirements for reasoning quality, where you want to avoid degraded results caused by manually setting a lower level
- Quickly validating Max-level reasoning performance in a test environment
Before use, please note:
- The plugin runs with the privileges of the current DSH process. Review the source code and license before installing (this plugin uses the MIT license).
- Confirm that the host version meets the
dsh: >=0.2.0requirement. - If other plugins also manipulate
reasoningEffort, verify that they do not conflict (this plugin coexists with plugins such asdsh-fast-modethrough the snapshot mechanism beforeagent/pre-step).
Summary¶
dsh-max-reasoning-effort is a DSH plugin focused on reasoning effort management. It pins the reasoning effort to Max upon session startup and model switching by overriding agent.model.select(...) calls, while adapting for models that do not support Max. It does not change model selection, does not modify the request body, and does not affect stored default model settings. It is well suited for development and debugging scenarios that require stable, uniform reasoning effort.
- Plugin catalog page: https://www.skillhub.cn/plugins/devzer0o0/dsh-max-reasoning-effort
- GitHub repository: https://github.com/devzer0o0/dsh-max-reasoning-effort