zoyluoblue/deepseek-harness-token0

@zoytown/dsh-token

用于统计整机 Token 使用情况的 DeepSeek Harness 插件。提供包含总量、贡献热力图、连续使用天数和单模型细分的设置页面。读取所有 DSH 目录的会话日志。

AI 分析

核心用途是统计和可视化多 DSH 目录下的 Token 消耗历史。适合需要分析模型使用频次、额度趋势的用户。需要 Node ^22.19 或 >=24 以及 pnpm 环境。

包名
@zoytown/dsh-token
版本
0.1.2
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zoyluoblue/deepseek-harness-token

Configuration

Set on the dsh-token row in the profile's cordis.patch.yml:

KeyDefaultMeaning
extraSessionRoots[]Extra dsh home directories to scan. Discovery covers ~/.dsh and ~/.dsh_desktop/; a home reached through a $DSH_HOME that is not currently set needs listing here.
includeCompactiontrueCount tokens spent generating compaction summaries — real spend the harness's own tokenUsage projection cannot see. Set false to reconcile 1:1 with it.
refreshIntervalMs30000How often to re-scan for appended sessions.
indexChunkYieldMs16Cooperative yield interval during a scan.