focksor/dsh-plugin-thinking-size
Puts a live reasoning-token count on every Think row: Think(128) while streaming, Think(5.2K) once the burst gets long.
Appends a compact badge to the title of every Think disclosure row in the conversation, ticking upward while the model is still reasoning and staying put on history afterwards. Counting has to read the session snapshot rather than the page, because the collapsed DOM does not carry the full reasoning text; counts are cached per immutable reasoning-block object so a streaming chunk only re-counts the block that changed. Snapshot subscription and a MutationObserver only set a dirty flag and a throttled sweep does the writing, which also means a React re-render that wipes a badge gets it put back. It is silent by design: no host code is touched, and if the session service is missing or the DOM contract changes it idles instead of breaking the host.
Install
dsh plugin --profile web add dsh-plugin-thinking-sizeThe npm line; restart dsh web to take effect. The README's source path is a link dependency added to the profile package.json plus a bundle registration, which is development rather than a second package.
Compatibility
Counts are estimates, not provider-reported usage: the plugin follows DeepSeek's official approximation of about 0.3 tokens per English character and 0.6 per CJK character, summed and rounded up, and the README states that plainly rather than presenting the badge as billing data. Formatting is fixed — a plain integer below 1000, one decimal with K below a million, one decimal with M above. Precision can be switched between 1 and 2 decimals by hovering the badge, and that choice is remembered in localStorage across reloads and restarts.
Details
- Repo: focksor/dsh-plugin-thinking-size
- Category: Web UI Enhancements
- Stars: 1
- Version: 0.2.0 (npm)
Alternatives
CJ-SH/dsh-plugin-trellis-statusline · VoidForge/dsh-thinking-expand · omdsh-dev/dsh-plugin-skills