DeepSeek Harness Plugin: Configuring Reasoning Intensity by Model

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

  1. 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.
  2. Localization Support: Uses the dsh-model-reasoning-levels namespace to provide English and Simplified Chinese interfaces.
  3. Persistent Writing: The editor writes the configuration to the reasoningEfforts field in cordis.patch.yml via settings.mutate path operations.
  4. Validation and Feedback: Before writing, the plugin enforces the resolveModelReasoning rules of @deepseek-ai/dsh-llm-pi-ai, rejects invalid selections, and prints the final YAML structure and setting paths.

Usage

  1. Navigate to Settings → Models.
  2. Select a provider and go to Customized settings → Models.
  3. Find the Reasoning effort levels area in the model row.
  4. Select the reasoning intensity level:
    • Off: No reasoning
    • Minimal: Lowest
    • Low: Low
    • Medium: Medium
    • High: High
    • XHigh: Extra High
    • Max: Maximum
  5. Confirm the displayed Wire value (the actual value sent to the backend).
  6. 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.
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye