dsh-turn-model: Labeling the actual response model before the completed turn

Introduction

When performing multi-model routing or switching models mid-turn in DeepSeek Harness (DSH), the interface often only displays the “current” configuration. It is difficult to confirm at a glance “which model actually generated this response.” Since cost and statistics plugins occupy extension slots, if you simply want to add a line of plain text attribution above the action row of each completed turn without modifying DSH source code or introducing network logic, you can install a standalone client-side plugin dedicated solely to labeling. Below is an introduction to the community-maintained dsh-turn-model (Repository: wajotary/dsh-turn-model).

What is this

dsh-turn-model is a client-side plugin for DSH: it displays a line of small gray text above the action row of each completed turn, indicating the model name actually used to answer that turn. It is maintained by wajotary and categorized as a client-side plugin in the plugin directory; package version 0.1.0, license MIT. It does not draw icons, add badges, or modify DSH source code, and it does not connect to the network, read environment variables, or write any files.

Core Features

Once installed and enabled, the effect is as follows (schematic):

Model: deepseek-v4.1-flash
  1. Display Position: A single line of plain text above the action row of each completed turn; it is not displayed for turns currently in progress.
  2. Hover Details: Hovering the mouse over the text reveals the full Provider/Model Name (e.g., volcengine/deepseek-v4.1-flash).
  3. Mid-turn Model Switch: If the model was switched during the turn, it displays as Model: A / B, with multiple route segments joined by /.
  4. No Rendering if Unavailable: If the attribution cannot be obtained from DSH internal data, the entire line does not appear, avoiding the display of incorrect information.
  5. Privacy & Permissions: The browser half only reads the Chat snapshot in the current session memory; dshhub.permissions.network is empty, and no network requests are made.

The data source is data.tokenUsage.routes on the turn node (the { provider, model } recorded by DSH for that turn). It is mounted via the client-side extension slot conversation.chat.turnTail, sharing the same mount chain as cost/statistics plugins; the host half is merely a loadable empty shell apply(), rendering is done via the slots service, and the existing DOM structure is not modified.

Installation & Activation

Panel Installation: Open Settings → Plugins (or the Plugin Center), search for dsh-turn-model, and refresh the page after installation.

Command Line Installation (Replace <profile> with your profile name, usually desktop for the desktop client):

dsh plugin --profile desktop add dsh-turn-model

The package contains only lib/index.js (host empty shell) and lib/client.js (browser half, handwritten ES module), with no runtime dependencies and no build step required. package.json declares Node >=20 and DSH engine >=0.2.0-rc.1; the README states the tested environment is dsh 0.2.0-rc.2 (Desktop / Web, Windows).

Deactivation: Use the plugin panel switch; or remove "dsh-turn-model" from dsh.profile.bundles in the profile’s package.json.

Uninstallation:

dsh plugin --profile desktop remove dsh-turn-model

Turning off the plugin simply removes the line of text; it provides no host services, registers no tools, injects no prompts, and has no side effects.

Typical Usage

This plugin has no additional configuration options or CLI subcommands: simply install and refresh to view the labels in your session.

  1. Chat normally in DSH and wait for a turn to complete (streaming ends, action row appears).
  2. View the Model: ... line above the action row of that turn; hover over it to see the full path when needed.
  3. If the model was switched during the turn, look for the side-by-side display in the format A / B.

For local debugging, you can install the repository directory as a package to your profile (dsh plugin --profile <profile> add <directory>), modify lib/client.js, and refresh; if it does not take effect, restart DSH once.

Use Cases & Notes

Suitable for: Developers who need to verify “the actual model for each turn” in long sessions; occasions involving multi-routing or model switching where minimal UI changes and zero networking are desired.

Important Notes:

  • The plugin reads DSH internal structures (data.tokenUsage.routes on the turn-tail node and the conversation.chat.turnTail extension slot); this is not a public stable API. After a DSH upgrade, it may silently fail (the line no longer appears, and no error is reported). If this happens, you can open an issue on GitHub with your dsh version number.
  • This package does not declare peerDependencies for @deepseek-ai/dsh*. It can be installed with any dsh version, but the effect is only guaranteed for the tested versions recorded in the README.
  • The plugin runs within the current dsh process; please review the source code and the MIT license yourself before installation to ensure it meets your security and compliance requirements.

The DSH ecosystem emphasizes “Everything is a plugin”; community directory sites (such as the SkillHub Plugin Page) are independent of DeepSeek / High-Flyer and are not official app stores.

Conclusion

dsh-turn-model answers “which model replied to this turn” with a single line of plain text, without occupying badges or touching the disk or network. For a directory brief or issues, please visit SkillHub: wajotary/dsh-turn-model and GitHub: wajotary/dsh-turn-model.

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

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

Xiaoye