dsh-context-length: Customize Model Context Window and Thinking Intensity

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.supportsReasoningEffort fields 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.yaml only 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

  1. Open Settings → Context Length
  2. Select Channel (Provider) → Select a Model under that channel
  3. Enter the new context window value (e.g., 131072, 256K, 1M, or use quick presets); the current value is displayed.
  4. Click Save to apply changes; you can also click “Restore Defaults” to clear the override for that model.
  5. 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.yml mount 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

羽毛球分组比赛记分
小程序二维码

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

Xiaoye