Cheng-cheng9669/dsh-cache-precision
DSH客户端插件:将以三位小数显示内置会话缓存命中率。
项目介绍Project Overview
dsh-cache-precision 是一款 DSH 插件,对 Web UI 的内置 composer-dock 进行两处就地微调。首先,将缓存命中率显示从小数 0 位的百分比改写为带 3 位小数的形式,例如从“缓存命中 12%”变为“缓存命中 12.345%”。其次,将统计行所在的 dock 容器最大宽度扩展,使其可超出聊天内容的宽度,从而避免因新增精度数字而出现“...”截断。两者均读取相同的 tokenUsage 投影,并在 React 重新渲染后自动重新生效。安装方式为 dsh plugin --profile web add <本地路径>,完成后需重启 dsh web。需要注意:插件不修改 tokenUsage 数据本身,精度仅来自现有投影字段的小数显示。
dsh-cache-precision is a DSH plugin that applies two in-place refinements to the built-in composer-dock in the Web UI. First, it rewrites the cache-hit percentage to show three decimal places, for example changing "缓存命中 12%" to "缓存命中 12.345%". Second, it widens the dock container that holds the stats line so its max-width can exceed the chat content width, preventing the added precision and other dock items from being truncated with "...". Both behaviors read the same tokenUsage projection and re-apply automatically after React re-renders. Install it with dsh plugin --profile web add <local path>, then restart dsh web. Note that the plugin only changes display precision; it does not alter the underlying tokenUsage data.
请帮我了解并安装插件:【dsh-cache-precision】【https://github.com/Cheng-cheng9669/dsh-cache-precision】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:Cheng-cheng9669/dsh-cache-precision
把 Cheng-cheng9669/dsh-cache-precision 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-cache-precision
English | 中文
Two in-place composer-dock refinements:
- Rewrites the built-in cache-hit percentage with three decimals
(
缓存命中 12%->缓存命中 12.345%). - Widens the built-in stats line (
max-widthgrows beyond the chat content width) so the extra precision and other dock items no longer truncate with....
Both read the same tokenUsage projection and re-apply automatically after
React re-renders.
Install
dsh plugin --profile web add D:\Dsh\tools\dsh-cache-precision
Restart dsh web.
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill