dsh-output-setting: DeepSeek Harness Output Display and Language Control Plugin

During the use of DSH (DeepSeek Harness), the default output display often fails to meet debugging or demonstration requirements: reasoning blocks may be collapsed, code block fonts may be too small, and the model’s output language may be limited by the UI interface, affecting the model’s behavior in hidden reasoning channels. The dsh-output-setting plugin consolidates “Node Expansion Mode,” “Code Block Size,” and “Model Output Language” into a single configuration page, supporting real-time application without requiring an application restart.

What is it

This is a client-side plugin maintained by the developer yijiezhong. It aims to solve issues regarding DSH output display and model behavior control. By adjusting display styles and system prompts through a unified interface, it improves development and debugging efficiency.

Core Features

The plugin provides control across the following three dimensions:

  1. Node Expansion Control

    • Reasoning Blocks: When enabled, new reasoning blocks will automatically expand and display full content.
    • Tool Calls: When enabled, command and other tool cards will display input and output details.
  2. Code Block Style

    • Font Size: Adjustable via a slider (range 1-3), default is 1.4. The baseline is the DSH default value (11px).
    • Line Height: Adjustable via a ratio slider (range 1-2.5), default is 1.6. The calculation formula is Line Height = Font Size × Ratio.
  3. Output Language

    • Provides three options: Automatic (follow UI language), Simplified Chinese, English.
    • Note: This setting is written into the system prompt, not AGENTS.md, thus it also constrains the language output of the model within hidden reasoning channels.

Installation and Activation

Execute the following command in the Plugin Manager to install:

plugin_manager(install_bundle, "github:yijiezhong/dsh-output-setting")

After installation, navigate to Plugins -> dsh-output-setting in the DSH client interface. This is the plugin’s detail page, not a settings group; real-time configuration can be performed here.

Technical Details and Notes

  1. Dependencies and Runtime

    • The plugin declares a single dependency @deepseek-ai/schemastery, locked to version ~3.18.4.
    • react and cordis are not declared in the dependencies; they are provided by the DSH runtime, a pattern also adopted by official plugins.
  2. Hot Reload Mechanism

    • Modifying host.js requires an application restart (disable → enable or a full exit and re-entry).
    • Modifying client.js only requires a page refresh (e.g., Cmd+R), but refreshing will reset the UI language to the browser language. It is recommended to switch languages within the settings panel for testing.
  3. Reason for Version Locking

    • The plugin forcibly locks schemastery to 3.18.4 to avoid compatibility conflicts with older versions (such as 3.18.1) in the shared layer (~/.dsh/profiles/node_modules). Older versions lack the .volatile() method, which would cause module loading failures.

Summary

dsh-output-setting is a tool focused on output display and model behavior control. By uniformly managing node expansion, code styles, and system languages, it helps developers observe the model’s reasoning process more clearly and enforce the model to work within specific language environments.

GitHub Repository | Plugin Directory

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

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

Xiaoye