DeepSeek Harness (DSH) adheres to the “everything is a plugin” architectural philosophy. When adjustments to the context window or reasoning intensity are required for specific models, existing configurations often lack fine-grained control. The dsh-context-length plugin introduces a dedicated management page within the DSH settings panel, allowing customization for models across configured channels.
Plugin Positioning¶
Plugin: Adds a “Context Length” page under “Settings - Models” to customize the context window length for specific models on designated channels (providers). Changes are only applied after clicking save.
- Developer: AiLi1337
- Category: Client-side
- License: MIT
Core Features¶
- New Settings Page: Adds a “Context Length” page under “Models” in the settings panel.
- Channel Filtering: Only lists configured channels; unconfigured built-in routes are hidden.
- Context Window Configuration: Supports capacity presets (e.g., 32K, 64K, 128K, 256K, 1M) and real-time token count previews.
- Thinking Intensity Configuration: Supports seven levels of thinking intensity: off / minimal / low / medium / high / xhigh / max.
- Automatic Field Completion: Automatically populates missing
compat.thinkingFormat/compat.supportsReasoningEffortfields when saving thinking intensity. - Aggregated Management and Reset: Displays a list of all customized models at the bottom, supporting “Restore Defaults”.
- Safe Write Mechanism: Writes to
settings.yamlonly upon clicking save; no modifications are made otherwise.
Installation and Activation¶
Install the Git repository https://github.com/AiLi1337/dsh-context-length via the “Plugins” page in DeepSeek Harness.
- Note: The desktop and web versions use different profiles and must be installed separately.
- Local Development: For local testing and modifications, installation via a local directory is required.
Usage Steps¶
- Open Settings → Context Length
- Select Channel (Provider) → Select a Model under that channel
- Enter the new context window value (e.g.,
131072,256K,1M, or use quick presets); the current value is displayed. - Click Save to apply changes; you can also click “Restore Defaults” to clear the override for that model.
- The bottom of the page lists all models with customized context windows and refreshes automatically after saving.
Notes¶
- The original version (0.1.0) on npm lacks the bundle declaration and cannot be installed via the desktop plugin page.
- Users who previously manually added the
cordis.patch.ymlmount line should remove it before switching to graphical installation.
Summary¶
This plugin addresses the configuration of model context windows and thinking intensity through a graphical interface. All configuration changes are written only when triggered by the save button, ensuring atomicity. For more details, please visit: GitHub Repository