lengrufeng2008/dsh-token-audit ↗★ 0

dsh-token-audit

Audit DeepSeek Harness session logs: exact token cost, waste patterns, and a data-driven savings plan. Zero config, local-only.

套件
dsh-token-audit
相容性
待驗證
版本
0.2.0
授權
MIT
最近更新
2026年10月31日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-token-audit

Usage

dsh-token-audit                              # last 30 days, terminal
dsh-token-audit --days 7                     # last week
dsh-token-audit --since 2026-10-01 --until 2026-10-31   # calendar month (Beijing dates)
dsh-token-audit --all                        # every session on disk
dsh-token-audit --cwd Miner                  # one workspace
dsh-token-audit --session 4160cf07           # drill into one expensive session
dsh-token-audit --format markdown --out report.md
dsh-token-audit --format html --out report.html --open
dsh-token-audit --format json > audit.json
OptionMeaning
--sessions Session root. Default $DSH_HOME/sessions or ~/.dsh/sessions.
--days Only sessions active in the last N days. Default 30.
--since Only calls on/after this Beijing date (YYYY-MM-DD); implies --all.
--until Only calls on/before this Beijing date (YYYY-MM-DD); implies --all.
--allIgnore the time window.
--cwd Only sessions whose working directory contains the text.
--session Only sessions whose id contains the text; drill into one expensive session.
--format terminal (default), markdown, html, json.
--out Write the report to a file. Format is inferred from the extension.
--openOpen an HTML report in the default browser.
--redactHide session titles, paths, commands, and file names; safe to share.
--top Rows in the terminal session table. Default 8.
--no-colorDisable ANSI colors.