DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Usage Heatmap — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-usage-heatmap

Usage Heatmap

Model usage statistics dashboard: metric cards for total Tokens/peak usage/longest session/consecutive days + GitHub-style Token heatmap (daily/weekly/cumulative toggle) + activity insights, using data aggregated from local DSH usage

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:zeng6125-rgb/dsh-usage-heatmap#125d62c898b292159bd7a09aac55a791206be9c5
READMECompatibilityVersions

Compatibility and provenance

Usage Heatmap is published as dsh-usage-heatmap and currently resolves to version 0.1.4. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/16/2026

Versions

0.1.4stable
10/11/2026
0.1.3stable
10/7/2026
0.1.2stable
10/5/2026
Show 2 more versionsCollapse versions
0.1.1stable
10/5/2026
0.1.0stable
9/28/2026

Related plugins

Loading related plugins…

Latest
0.1.4
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
BSD-3-Clause
Source
github
GitHub
★ 1
Weekly downloads
745
Last push
10/12/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings rowClient Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilitiesPer-model capability declarations (image input and reasoning efforts) for custom pi-ai providers, edited in place on the Models settings cards; writes the official llm-pi-ai settings namespace, no DSH source changes.Codex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast modePlugin@opencode2dsh/dsh-pluginFree OpenCode Zen models for DeepSeek Harness (DSH): native dsh-llm adapter plugin, no API key.

README

dsh-usage-heatmap

模型用量统计面板 — 装在 DSH 设置页里的 Token 用量看板:九宫指标卡 + GitHub 风格热力图 + 活动洞察,数据全部在本地聚合。

An all-local token usage dashboard for the DeepSeek Harness settings page.

功能 / Features

  • 九宫指标卡:累计 Token、今日、昨日、峰值日、最长会话、连续活跃(当前 / 历史最长)、活跃天数、会话数(主 / 子代理)、子代理 Token。
  • 热力图:GitHub 风格日历,每格 = 当日用量(周一为一周之始),可切「每日 / 每周 / 累计」三档;行标一/三/五/日与格子按同一 7 行网格对齐;列数随容器宽度自适应。
  • 活动洞察:峰值日占比、连续活跃区间、会话构成、最长会话、子代理占比、缓存读取占比、今日四桶(未缓存输入 / 输出 / 缓存读 / 缓存写)。
  • 不丢数:会话日志被删后,历史 token 仍从投影缓存(session_projcache)与已扫入的归档分桶中保留;面板把「已删归档」与「孤儿投影」分开标注。
  • 性能:会话日志为仅追加的 zstd 帧格式,面板按帧边界增量续解——文件变更时只解码折叠尾部新帧,而非整文件重扫;目录成员与投影文件记忆化,仍逐轮检查目录与日志变更;按耗时让出事件循环,持久化快照使重启首帧秒开。可见面板每 15 秒直接获取本次扫描结果,隐藏页暂停轮询,避免旧缓存多等一轮;面板根为自滚动容器(will-change: scroll-position),滚动走合成器线程。

安装 / Install

从 npm 安装:

dsh plugin add dsh-usage-heatmap

从 GitHub 安装(仓库已提交 lib/,无需构建):

dsh plugin add github:zeng6125-rgb/dsh-usage-heatmap

或使用 Release 里的预构建 tarball:

dsh plugin add https://github.com/zeng6125-rgb/dsh-usage-heatmap/releases/latest/download/dsh-usage-heatmap.tgz

装好后在 设置 → 模型用量统计 查看。首次扫描需要几秒(取决于会话日志总量),之后走缓存与快照,秒开。

数据来源 / Where the numbers come from

全部为本地文件,插件不发起任何网络请求:

来源路径用途
会话日志~/.dsh/sessions/<cwd>/<sessionId>/session.v4.jsonl.zstd逐日分桶(仅追加多帧 zstd,增量续解)
会话投影缓存~/.dsh/storages/session_projcache/sessions/*.json会话级累计 token、会话元信息、孤儿/回填口径对账
聚合缓存~/.dsh/storages/usage-heatmap/cache.json增量扫描结果、归档与续扫边界
快照~/.dsh/storages/usage-heatmap/last-state.json重启后首帧秒开

逐日分桶依赖会话日志中的事件时间戳;缺失时回退到 createdAt / 文件 mtime 摊分。 增量续解使用前缀头尾各 512KB 与长度的采样 sha256 守卫;采样不符或续扫边界失效时回退全量折叠。正确性依赖 DSH 日志仅追加的契约:长前缀中部改写不在采样检测范围内,不承诺识别任意文件篡改。

开发 / Development

DSH_CHECKOUT=<dsh source checkout> bash scripts/build.sh   # src/ → lib/
npm run typecheck                                          # tsc --noEmit
npm test                                                   # 性能与数据获取回归测试

scripts/build.sh 需要一份 DSH 源码检出(DSH_CHECKOUT,或 ~/dsh-harness / ~/dsh / ~/.dsh/dsh-harness 之一)来链接 @deepseek-ai/* 与 cordis;终端用户安装时用的是仓库里已提交的 lib/,不需要这一步。

License

BSD-3-Clause