Introduction¶
After switching models during a DeepSeek Harness (DSH) session, old turns retain their original model names, causing the conversation log to no longer accurately reflect which model answered which turn. Per-turn Model Badge solves this problem by annotating each completed reply with the model actually used for that turn.
Plugin Overview¶
This is a DSH UI plugin maintained by HanX90 that displays the model name actually used for each turn in a conversation. The plugin reads data from DSH’s already-recorded session logs (turn-tail → tokenUsage.routes) and sends no additional network requests. It also does not modify the logs themselves.
Core Features¶
Per-Turn Model Name Display¶
The plugin displays a blue pill-shaped badge below each completed reply, indicating the model actually used for that turn, e.g., deepseek-flash.
Multi-Route Display¶
If a turn’s request was retried across multiple routes, the badge lists all models that served that turn, separated by ·.
Hover to View Full Details¶
Hovering the mouse over the badge reveals the complete provider/model list.
Installation & Activation¶
Install from the Plugin Market Index¶
- On DSH’s Settings → Plugins or Discover page, add the index file URL of this repository.
- Open Plugins → Discover and search for
turn model badge. - Install the plugin.
Install from a Local Directory¶
- Download this repository (without using
git clone). - In the Plugins menu, click Add plugin and point to the downloaded directory.
After installation, the plugin is automatically injected into the conversation interface. To uninstall, find Per-turn model badge under Plugins and either disable or remove it — this will not affect other configurations.
Usage Notes¶
The plugin runs as a browser-side UI overlay and only displays data. It has the following limitations:
- Badges are only shown below completed turns; in-progress turns have no badge.
- It only reads display data already present in session logs and does not modify the logs.
- It is a pure display plugin — it adds no tools, commands, or configuration pages.
Applicable Scenarios¶
- Scenarios where you frequently switch models within a session, making it easy to trace which model was used for each turn.
- Scenarios where you need to verify the actual invocation route (provider/model).
- DSH version >=0.2.2-rc.1 and <0.3.0-0.
Notes¶
- It is recommended to review the source code before installation to ensure it meets your needs.
- This plugin is licensed under MIT, allowing free use and modification.
- Very old versions of DSH may not support the session slots this plugin registers, in which case badges may not appear after installation.
Summary¶
Per-turn Model Badge makes the actual model used in each turn of a DSH session clearly visible. It achieves this by reading existing data without adding any extra overhead. If you switch models during a session, this plugin helps you accurately trace the model attribution for each turn.
- Plugin directory page: https://www.skillhub.cn/plugins/HanX90/turn-model-badge
- GitHub: https://github.com/HanX90/turn-model-badge