
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-usage-stats
Advanced tools
Lightweight usage analytics for DeepSeek Harness — token trends, activity heatmaps, model breakdowns, and exports.
DeepSeek Harness Token 使用情况,一目了然。
dsh-usage-stats 是面向 DeepSeek Harness Web UI 的轻量使用统计插件,用于集中展示 Token 总量、每日趋势、活跃日期及模型分布。
插件通过 Harness 提供的扩展接口集成,不修改 Web UI 或官方 npm 包。统计数据保存在本机。
dsh plugin --profile web add dsh-usage-stats
重启 Web Profile 后,侧边栏「设置」上方会出现 使用统计。
更新或卸载:
dsh plugin --profile web update dsh-usage-stats
dsh plugin --profile web remove dsh-usage-stats



| 模块 | 说明 |
|---|---|
| 📈 使用概览 | 展示 Token、会话、消息、活跃天数、连续使用天数及最常用模型的历史累计值 |
| 📊 每日趋势 | 展示最近 7 天或 30 天的 Token 变化,悬停可查看指定日期的模型用量 |
| 🔥 活跃热力图 | 以颜色深度表示一年内各日期的 Token 用量,悬停可查看 Token 数量及调用轮次 |
| 🎯 范围筛选 | 支持按工作区、主任务或子任务限定统计范围 |
| 📋 调用明细 | 查看单次调用的耗时、Token、缓存率、模型与思考程度,支持筛选与分页 |
| 💾 数据导出 | 支持导出 CSV 或 JSON,用于归档或进一步分析 |
| 🌐 中英文界面 | 自动跟随 Harness 的语言设置切换中文或英文 |
| 🎨 主题适配 | 自动跟随 Harness 的浅色或深色主题 |
| ⚡ 轻量运行 | 无第三方图表库、无后台轮询,减少额外的网络请求与运行开销 |
0.1.16 将插件使用的 DeepSeek Harness 官方模块统一声明为对等依赖,避免 Profile 内出现插件私有副本及模块身份分裂。发布检查会阻止官方模块再次进入普通依赖。
0.1.13 修复了 fork 子任务将父会话继承上下文重复计入自身用量的问题。子任务现在只统计自身产生的调用;升级后,旧版统计缓存会自动失效并按新口径重建。
config:
indexConcurrency: 2
cacheWriteDelayMs: 1000
apiPath: /usage-stats/v1
| 配置项 | 说明 | 默认值 |
|---|---|---|
indexConcurrency | 同时读取历史会话的数量(1–8) | 2 |
cacheWriteDelayMs | 更新本地统计前的等待时间(毫秒) | 1000 |
cachePath | 自定义统计缓存位置 | Harness 数据目录 |
apiPath | 统计接口路径 | /usage-stats/v1 |
DSH_HOME/usage-stats,内容包括会话标识、时间、工作目录、模型名称和 Token 数量。目前已在 DeepSeek Harness 0.1.0-rc.6、Node.js 22.19+ 和 24+ 上测试,可用于官方 Web UI,以及加载该 Web UI 的桌面封装。
Harness 仍在持续更新。本文仅声明经过实际测试的运行环境;其他版本可能可以正常运行,但不在当前验证范围内。详细信息见 兼容性说明。
如果出现插件入口缺失、统计结果不完整、界面显示异常或版本兼容问题,请 提交 Issue。
提交时请尽量附上:
完整的环境信息和复现步骤有助于定位问题。涉及安全问题时,请勿在公开 Issue 中提交 API 密钥、访问令牌或本机数据,报告方式见 安全策略。
FAQs
Lightweight usage analytics for DeepSeek Harness — token trends, activity heatmaps, model breakdowns, and exports.
The npm package dsh-usage-stats receives a total of 0 weekly downloads. As such, dsh-usage-stats popularity was classified as not popular.
We found that dsh-usage-stats demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.