Preface¶
When running long conversations in DSH, turn, step, token, and context usage are often scattered across logs or built-in statistics, leaving the Composer without a session-status entry that can be glanced at in a second and expanded for a closer look. The built-in stats entry still exists, but to have uncached/cached, decode speed, and context composition readings shown on the same screen, you usually have to build your own client-side projection or modify your profile.
Below is an introduction to the community client plugin dsh-status-telemetry (maintainer ags-neto): it contributes an independent session-status pill to the conversation.composer.dock slot, sitting alongside the built-in chat stats; clicking it expands in place into a token, performance, and context panel. All data comes from projections already computed by the host — there is no client-side log folding, no polling, and no model calls.
What is this¶
dsh-status-telemetry is a DSH client plugin bundle (platform: web) that adds a session-telemetry entry to the Composer dock. It does not replace the built-in stats (disabling this bundle restores the original UI). Package name @local/dsh-status-telemetry, version 1.0.0, license MIT (see the repository’s package.json).
UI and readings¶
Collapsed state¶
Single-line display, following the host’s typography and color scheme, for example:
◔ ● 12 turns · 41 steps · 634k tok · 84% cached · 150 tok/s
The dot glyph indicates real-time health derived from decode speed (ok / warn / bad).
Expanded state¶
Four sections:
| Section | Content |
|---|---|
| Conversation | turns, steps, throughput, output tokens |
| Token usage | total, billed input, uncached/cached input, cache write, cache-hit ratio |
| Performance | LLM time, tool time, average time to first token, decode speed, tool share |
| Context | window occupancy, window size, projected/reported prompt, and system / tools / messages composition bars |
When the current profile lacks a capability, the panel explains the omission instead of showing a misleading 0.
Data sources¶
Readings are injected through the slot framework’s standard session kit (useProjection) and the locale service; on the browser side, the bundle imports only react from the module table.
| Projection | Package | Purpose |
|---|---|---|
sessionStats |
@deepseek-ai/dsh-session-stats |
turns, steps, LLM/tool/TTFT/decode wall-clock times |
tokenUsage |
@deepseek-ai/dsh-token-meter |
uncached/cached/cache-write input, output |
contextPressure |
@deepseek-ai/dsh-token-meter |
occupancy, window, projected/reported prompt |
contextBreakdown |
@deepseek-ai/dsh-token-meter |
system / tools / messages composition |
Installation and enabling¶
The plugin’s installation target is a DSH profile, not /opt/dsh. The installation method given in the README is to run a root-directory script on that host (root is required, as / needs to be remounted when it is read-only):
sudo /srv/workspaces/infra/status-telemetry/install.sh
The script will: temporarily remount / as writable; copy the package to $DSH_PROFILE_DIR/node_modules/@local/dsh-status-telemetry; append the bundle to dsh.profile.bundles; restore ownership; then remount as read-only. It supports --uninstall, restoring the profile’s package.json byte for byte.
Note: It only edits the bundle list. The profile combines each bundle’s dsh.bundle.patch; this package’s cordis.patch.yml already provides the status-telemetry Loader line, and if you duplicate that same line in the profile’s patch, the same id/priority will be registered twice and an error will be thrown.
After installation, hard-refresh the page. The profile watcher will live-recompose; edits to client.js are reloaded by dsh-client-hmr within about 500 ms. If the slot does not appear, restart the service (this rotates the web token, so a 401 will require re-fetching):
sudo systemctl restart dsh.service
Uninstall example:
sudo /srv/workspaces/infra/status-telemetry/install.sh --uninstall
Typical usage and self-testing¶
Daily usage: find the newly added status pill in the Composer dock, click to expand and view the four categories of telemetry; the built-in stats entry can still be used separately.
Offline tests within the repository (README example path):
cd /srv/workspaces/infra/status-telemetry
node --test test/client.test.mjs
When there is no React on the Node side, a React double is used to test the formatters and the registration contract; the suite does not cover the real GUI’s visual effects.
Applicable scenarios and notes¶
- Suitable for: DSH users who need to quickly check session health, token breakdown, performance, and context pressure beside the Composer, and want it to coexist with the built-in stats with a one-click disable.
- Category: client-side (the SkillHub catalog classifies it as a client plugin).
- Permissions and security: the installation script modifies the profile and remounts as root; plugin logic runs in the browser bundle, with data from host projections. Review the GitHub source and the MIT license yourself before installing; the path
/srv/workspaces/infra/status-telemetrycomes from the upstream README, and other environments need to be adjusted according to theinstall.shand profile layout in the repository — do not invent commands such asdsh plugin add github:...(the material does not provide them).
Design points (for troubleshooting): register a new id, do not shadow stats; styles are mounted as <style> along with the component, and the theme uses only --dsw-* tokens; does not import Harness packages, depends only on react.
Ending¶
dsh-status-telemetry collects session telemetry into an expandable pill beside the Composer; its readings align with the projections from @deepseek-ai/dsh-session-stats and @deepseek-ai/dsh-token-meter, and changes are reversible. Catalog and repository:
- SkillHub plugin page: https://www.skillhub.cn/plugins/ags-neto/dsh-status-telemetry
- GitHub: https://github.com/ags-neto/dsh-status-telemetry