Introduction¶
The model settings page in DeepSeek Harness is responsible for editing the model’s id, display name, context window, and input types, but the native editor does not have a feature for configuring reasoningEfforts (reasoning intensity) for individual models. This feature is typically set globally by Provider and cannot be adjusted for specific models.
The dsh-model-reasoning-levels plugin takes over settings.models.provider-card, discovers and locates each model row, and directly injects a reasoning intensity editor within each model entry. After the user makes a selection, the plugin writes reasoningEfforts to the configuration file via settings.mutate, achieving model-level reasoning control.
Plugin Details¶
- Plugin Name:
icrefin/dsh-model-reasoning-levels - Author:
icrefin - Category: Model Reasoning
- License: MIT
Core Features¶
- Inline Editor Injection: The plugin mounts the reasoning intensity selector within each model row in Settings → Models, rather than just at the provider card level.
- Localization Support: Uses the
dsh-model-reasoning-levelsnamespace to provide English and Simplified Chinese interfaces. - Persistent Writing: The editor writes the configuration to the
reasoningEffortsfield incordis.patch.ymlviasettings.mutatepath operations. - Validation and Feedback: Before writing, the plugin enforces the
resolveModelReasoningrules of@deepseek-ai/dsh-llm-pi-ai, rejects invalid selections, and prints the final YAML structure and setting paths.
Usage¶
- Navigate to Settings → Models.
- Select a provider and go to Customized settings → Models.
- Find the Reasoning effort levels area in the model row.
- Select the reasoning intensity level:
- Off: No reasoning
- Minimal: Lowest
- Low: Low
- Medium: Medium
- High: High
- XHigh: Extra High
- Max: Maximum
- Confirm the displayed Wire value (the actual value sent to the backend).
- Use the following buttons to control behavior:
- Inherit catalog: Restore default capability inheritance.
- Non-reasoning: Disable thinking capabilities.
- Apply: Apply the current selection.
Technical Implementation Details¶
Configuration File Writing¶
The plugin converts the user’s selection into a reasoningEfforts mapping and writes it to cordis.patch.yml. The write path is providers.<route>.modelOverrides.<id>.reasoningEfforts.
Example configuration:
- id: llm-pi-ai
name: "@deepseek-ai/dsh-llm-pi-ai"
config:
providers:
baidu-team:
models:
- id: deepseek-v4.1-flash
reasoningEfforts: { off: null, low: 'low', high: 'high', max: 'max' }
contextWindow: 1000000
maxTokens: 256000
input: [text, image]
name: DeepSeek-V4.1-Flash
Validation Rules¶
The plugin enforces strict validation rules, rejecting the following situations:
* Selecting only off: When the model cannot reason, false must be used instead of { off: null }.
* No level selected: Must be left empty to inherit.
* Wire value not provided for non-reasoning levels: Missing required parameters.
* Empty string Wire value.
* Exceeding the defined 7 levels.
Glossary¶
The vocabulary for reasoning intensity is a fixed, ordered list: off, minimal, low, medium, high, xhigh, max. The editor always outputs the mapping in this order.
Notes¶
- Browser-side Component: This plugin currently only contains browser-side code. The Host half is used only to coordinate with the Loader line to carry the browser-side code, and does not include routing, service, or configuration logic.
- Declarative Replacement: The reasoning intensity mapping declared by the user will replace the model’s original capability set. Undeclared levels will no longer be provided.
- Source: The plugin is hosted on GitHub at icrefin/dsh-model-reasoning-levels.