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.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-token-audit说明文档
阅读完整 README ↗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
| Option | Meaning |
|---|---|
--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. |
--all | Ignore 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. |
--open | Open an HTML report in the default browser. |
--redact | Hide session titles, paths, commands, and file names; safe to share. |
--top | Rows in the terminal session table. Default 8. |
--no-color | Disable ANSI colors. |