← 返回列表
D

@kongjianguan/dsh-tokstat

v0.1.1 · 0 天前发布

dsh usage & performance statistics: settings-panel plugin + TUI (tokens / TTFT / TPS / cost)

dsh-plugindeepseek-harnesstuistatsanalyticstokensttftcost

README

dsh-tokstat

<p align="center">读取 DeepSeek Harness (dsh) 会话日志的实时使用量与性能 TUI 统计面板 —— Tokens / TTFT / TPS / 成本一屏看全</p>

<p align="center">
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License"></a>
<a href="https://github.com/topics/dsh-plugin"><img src="https://img.shields.io/badge/dsh-plugin-ecosystem-purple.svg" alt="dsh plugin"></a>
</p>

!总览

!趋势

!请求日志

Overview

dsh-tokstat 直接读取 dsh 的会话日志(~/.dsh/sessions/**/session.jsonl.zstd
zstd 帧级增量解析),把散落在多个会话文件里的每一次 LLM 请求还原成可分析的
指标:**输入/输出/缓存 Tokens、TTFT(首 token 时延)、TPS、耗时、重试与失败、
估算成本**。

项目提供两种形态:

  • dsh 设置面板插件:在 dsh Web 设置页增加「统计」section,实时展示概览 /

  • 模型 / 会话 / 请求,2s 轮询;
  • Python TUI:独立终端仪表盘(7 个视图,`o t
  • 查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    @kongjianguan/dsh-tokstat
    Repo
    git+https://github.com/kongjianguan/dsh-tokstat.git
    Engines
    {"node":">=23.6"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-connection"]}}