DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-cache-monitor

d

dsh-cache-monitor

Manifest valid

DSH sidebar cache monitor for the current conversation, with per-request cache and token details.

UI (client)hasBundlePatch

缓存监控 / Cache Monitor

English · MIT License

DSH / DeepSeekRuntime 插件,在左侧栏固定显示当前对话的缓存命中率与请求次数,并提供逐次模型请求的 Token 明细。

功能

  • 与「用量/余额」相同的位置与交互:固定在侧边栏底部,点击打开详情。
  • 只统计当前主窗口对话,不混入其他会话。
  • 汇总缓存读取、缓存写入、未命中输入、输出及推理 Token。
  • 展开详情后,按请求显示轮次、步骤、命中率和完整 Token 明细。
  • 每 8 秒自动刷新,也可手动刷新。
  • 点击外部、按 Esc 或点击关闭按钮收起详情。
  • 窄侧栏自动切换为纯图标。
  • 中英文界面。

插件展示的是模型请求实际返回的 usage 数据。命中率取决于 Provider、模型及其提示词缓存机制,不代表计费折扣。

安装

从 GitHub 安装

在 DSH 的「插件 → 添加插件 → 安装第三方插件」中输入:

https://github.com/Vhow123/dsh-cache-monitor

也可使用 CLI:

dsh plugin --profile desktop add https://github.com/Vhow123/dsh-cache-monitor

安装完成后按提示重启 DSH。

本地开发

dsh plugin --profile desktop add /absolute/path/to/dsh-cache-monitor

包通过本地链接安装时,修改 Host 或 Client 代码后重启 DSH,确保加载最新模块。

使用

  1. 打开需要查看的对话。
  2. 在左侧栏底部点击「缓存监控」。
  3. 查看当前对话的汇总;点击对话名称展开逐请求明细。

每个对话保留最近 500 条请求明细,请求总数与 Token 汇总包含全部历史。

统计口径

命中率 = cacheReadTokens / (cacheReadTokens + uncachedInputTokens)

分母不含输出 Token。uncachedInputTokens 直接读取 Provider 的 usage.inputTokens,cacheReadTokens、cacheWriteTokens 和 reasoningTokens 缺失时按 0 处理。

同一轮次/步骤的流式更新会替换上一条统计,不会重复累计;重试开始时清除该步骤的上一条统计。

实现

  • index.js:Host 会话投影 cacheMonitor,从持久会话日志重建统计。
  • client.js:React 侧边栏入口与详情弹层,注册到 sidebar.footer.action。
  • cordis.patch.yml:插件组合补丁。
  • locale/zh.json、locale/en.json:插件管理器元数据。
  • icon.svg:插件图标。

仅读取当前 DSH 实例的会话 Token 用量,不发送网络请求,不保存会话正文。

验证环境

DSH 0.2.1-rc.2,已验证侧边栏入口、当前对话统计、逐请求明细、Esc 关闭及窄侧栏模式。

许可证

MIT

Comments

Loading…

Similar plugins

dsh-cache-hit-monitor

by Billwu18

Live prompt-cache telemetry for the current session in the DSH right sidebar: a register bank, a dot-matrix hit rate and a reactor-core history board.

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Sep 26, 2026

dsh plugin --profile web add dsh-cache-hit-monitor

by 3289192-bot

Cache Bricks for DeepSeek Harness — visualize prompt-cache health and request activity.

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 0

NOASSERTION

TypeScript

Sep 27, 2026

dsh plugin --profile web add dsh-cache-bricks

by hongcha-dsh

DSH 插件:主会话空闲时重放最近一次请求,保持 prompt cache 有效(跟随当前会话模型)

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Nov 17, 2026

dsh plugin --profile web add dsh-cache-keepalive

A right-side session stats panel showing average cache-hit rate, session cost, runtime, request count, cumulative tokens and account balance.

Tools & CapabilitiesTerminal & ClientsModels & ProvidersManifest valid

★ 0

dsh plugin --profile web add dsh-session-stats-panel

by WuHututu

Opens a temporary side conversation in the right Sidebar that reuses the host conversation UI, so answers render with the same markdown, tool steps, timing and token usage as the main thread. The side

UI & ExperienceManifest valid

★ 0

JavaScript

Oct 30, 2026

dsh plugin --profile web add dsh-side-chat

by ewoowe

Session usage view: tokens, wall time and cache share per model and per turn, as a conversation view.

Manifest valid

★ 0

MIT

TypeScript

Sep 17, 2026

dsh plugin --profile web add dsh-session-usage