dsh-plugin-subagent-model-route: Display actual model routing in subagent directory and session header

Preface

When using subagent delegation in DeepSeek Harness (DSH), the parent session’s catalog list and the sub-session interface are the two paths most frequently inspected. The default UI displays names, titles, and running status, but it does not place “which model route this delegation actually took” in a position visible at a glance. Troubleshooting “why this subtask used a different provider / reasoning tier” often requires digging through logs or making inferences, resulting in high costs.

The community plugin dsh-plugin-subagent-model-route (maintainer: huhu23333, category: Client) does one thing: it reads the model route of the subagent’s last request from existing durable projections and annotates it in-place in the two interfaces mentioned above. It does not add new RPCs or modify host projections; instead, it renders badges by shadowing two slots of the official UI. The following sections describe where it modifies things, how to install it, and the trade-offs you need to accept before installation.

What is this

dsh-plugin-subagent-model-route is a client plugin for DSH (npm package name matches the directory name). Brief introduction (consistent with the repository README): It annotates the model route actually used by the subagent at runtime in two places: every row of the parent session catalog and the sub-session header.

  • Maintainer: huhu23333 (GitHub: huhu23333/dsh-plugin-subagent-model-route)
  • Current version (package.json): 0.1.2
  • License: MIT
  • Compatibility statement: 0.2.1-alpha.1 marked as compatible in dshReleases; Node >= 20

The route text format is provider/model · reasoningEffort (e.g., openai/gpt-5.6-sol · medium, deepseek-official/deepseek-flash · high), consistent with the delegation execution; when too long, it wraps on the badge row instead of truncating. The tooltip and accessible name also repeat the route.

Core Features

The plugin only modifies two UI surfaces; everything else retains the official shipped behavior.

Surface Before Change After Change
Each parent catalog row Name + one line title · one-shot · running Three lines: Name / one-shot running + route badge / Title
Sub-session header Only lineage breadcrumb switcher Full route displayed next to the breadcrumb

Route data source: The durable modelSelection projection already recorded for every request/header, read via the same summary.projectionValues used by the sub-row’s existing tokens and duration—no new RPCs, no host changes, no new slot definitions.

Behavior details (as stated in README):

  1. Rows where the sub-session has never sent a request: No badge displayed (indicates “never requested,” not “unknown”).
  2. If the model is switched during the sub-session lifecycle: the badge only reflects the route of the last request.
  3. When used on the same screen with subagent-director etc., the route may be displayed once in the sub-session composer area and once in the header; you need to manually keep only one of them.

Implementation-wise, the official @deepseek-ai/dsh-client-ui-subagent does not have an extensible additive API for conversation.session.header.lineage (single) and catalog rows. Therefore, the plugin registers the same seat at priority: -1, shadowing the shipped components with default 0 (SubagentHeaderLineage, SubagentCatalogAction, the latter re-registered with the same id subagent-catalog).

Installation and Activation

The plugin is mounted as a profile bundle; dsh.client is a composition-level configuration, and the host must be restarted after modification; hot-loading is not supported.

Officially supported installation methods (writes to dependencies and dsh.profile.bundles simultaneously):

dsh plugin --profile web add dsh-plugin-subagent-model-route     # from npm
dsh plugin --profile web add ./dsh-plugin-subagent-model-route   # from a checkout

You can also manually link the local path in the profile’s package.json and add it to bundles (must be placed after @deepseek-ai/dsh-base, @deepseek-ai/dsh-web-app), for example:

// ~/.dsh/profiles/web/package.json
"dependencies": {
  "dsh-plugin-subagent-model-route": "link:/path/to/dsh-plugin-subagent-model-route"
},
"dsh": { "profile": { "bundles": [
  // ...after @deepseek-ai/dsh-base and @deepseek-ai/dsh-web-app
  "dsh-plugin-subagent-model-route"
] } }

Restart the DSH host after completion.

Uninstallation: Remove the package from the profile’s bundles and restart; no host-side state is persisted, and the interface reverts to the official default.

Typical Usage

This plugin has no independent CLI or configuration items: after installation and restart, simply open a parent session with a subagent catalog to see the inline badge; click into a sub-session, and the same route will appear next to the header lineage.

Reproducible verification path (consistent with the repository’s development scripts, for maintainers or secondary developers):

npm run check      # typecheck -> build -> headless smoke(16 checks)
npm run preview    # generate preview.html, view rendering of the two seats in browser

Regular users only need to complete the profile installation and host restart; no additional configuration is required.

Use Cases and Notes

Who is it for

  • Developers who frequently delegate to subagents and need to quickly compare “the actual model and reasoningEffort used by each subtask” in the catalog.
  • Scenarios where you need to confirm whether the lineage matches the current route when opening a sub-session, facilitating comparison with parent session decisions.

Costs you must be aware of before installation (the plugin deliberately shadows shipped UI)

  1. Catalog row height increases from approx. 44px to 59px (can reach approx. 74px when the route wraps). The number of visible rows in the dropdown under the min(560px, 100vh - 140px) cap decreases (drops from approx. 12 rows to approx. 9 rows).
  2. The catalog contract is marked with replaceRisk: 'shadows-shipped-ui'; if upstream improves the same area (including officially adding a model column themselves), it will not auto-merge. You will need to re-vendor and apply modifications according to the repository’s PATCH-RECORD.md. The current vendored renderer is pinned to deepseek-ai/deepseek-harness master @ 5badb15009.
  3. Bugs in the shipped UI for this area will also fall onto the fork copy; the stylesheet is injected as a second CSS module (different hash, generally not conflicting).
  4. The shipped occupants are still registered but render as empty, incurring a small amount of inert cost.
  5. Read-only composer, Sidebar chat, @ reference sources, etc., remain official and unchanged.

Permissions and Security

The plugin is loaded with the current DSH client profile, running at the same level as the official UI within the browser / host process. Before installation, you should read the repository source code and the MIT license to confirm the bundle source is trustworthy; community directories (SkillHub, etc.) are independent sites and have no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-plugin-subagent-model-route writes the subagent’s “real model route of the last request” into the parent catalog row and sub-session header. The surface of change is narrow, but it is intuitive enough for troubleshooting delegation and model selection. If you also install subagent-director, note that the same view may display the route redundantly.

  • Community Directory Page: https://www.skillhub.cn/plugins/huhu23333/dsh-plugin-subagent-model-route
  • Source Code & Docs: https://github.com/huhu23333/dsh-plugin-subagent-model-route
羽毛球分组比赛记分
小程序二维码

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

Xiaoye