- Home
- Plugins
- UI Enhancements
- rinova-dsh-subagent-model-badge
rinova-dsh-subagent-model-badge
jove-rina/rinova-dsh-subagent-model-badge
DSH plugin: shows the provider/model each session and subagent conversation actually uses, with a subagent model dropdown.
Install
dsh plugin --profile web add github:jove-rina/rinova-dsh-subagent-model-badgeREADME
Subagent model badge
Shows the provider/model a DSH conversation is actually running, in a small pill above the message composer.
- The main conversation shows the main Agent's model.
- A subagent conversation opened from the header catalog shows that child's model, including a route the child inherited from its parent.
- In a parent conversation, a count chip beside the pill opens a dropdown listing every direct subagent with its creation title, agent name, and route. Selecting one opens that subagent's conversation.
- Hovering the pill shows the route and whether it came from the latest request header or from the child's creation descriptor (before its first request).
Install
Requirements: DSH >=0.2.2-rc.5 <0.3.0 with a Web or Desktop profile.
Open Plugins in the sidebar, choose Install plugin, and enter the GitHub repository address:
https://github.com/jove-rina/rinova-dsh-subagent-model-badge
The equivalent package spec is:
github:jove-rina/rinova-dsh-subagent-model-badge
A registry install works too: npm i @rinova/dsh-subagent-model-badge.
Restart DSH after installing so the Web Client bundle is served.
How it works
The Host half registers a client-visible Session projection, subagentModel. It folds each Session's committed events:
request/header— the effective provider, model, and reasoning effort of the latest model request (authoritative, including inherited routes).subagent/descriptor— the route declared when a subagent child was created, used only until its first request header arrives.
The Client half registers one conversation.input.dock entry. It reads the current Session's route through the standard useProjection seat, reads the parent catalog from subagentCatalog, and reads each child's route from the Session list's summary projection values, refreshing a child's projections when its value is missing. Choosing a row navigates with ctx.uiWorkspace.openSession() and the child's subagent address.
Usage
Open any conversation — the main Agent or a child from the subagent catalog — and read the pill above the composer. The pill disappears when no route is known yet.
Limitations
- It displays the route; it never changes model selection.
- Only direct subagents are listed; external executions are skipped.
- The route comes from the Session's own log, so a child conversation that has never run a request and carries no declared route shows nothing.
- A Session opened without loading its projection data (for example an old conversation whose projection cache predates this plugin) may keep the label hidden until the Session is live again.
Development
index.js— Host half: registers thesubagentModelSession projection.client.js— Web Client half: the pill, the subagent chip, and the dropdown.cordis.patch.yml— bundle patch that inserts the plugin row.
After changing either half, restart DSH so the new bundle is served.
License
MIT
Related plugins
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
dsh-TUI
ccch1mneyyy/dsh-tui
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui