Zenjibad/llmtrim-stats-plugin ↗★ 2

llmtrim-stats-plugin

Live llmtrim savings dashboard inside the DeepSeek Harness (DSH) Web UI: a settings dashboard plus a rotating carousel stats strip under the composer. 适合使用llmtrim并希望在DSH界面实时监控Token节省和费用数据的用户。

パッケージ
llmtrim-stats-plugin
互換性
未検証
Cordis ピア範囲
^4.0.1
バージョン
1.1.1
ライセンス
MIT
最終更新
2026/08/28

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Zenjibad/llmtrim-stats-plugin

ドキュメント

README 全文を読む ↗

⚙️ Configuration

The carousel is configurable from the Settings page (persisted in the llmtrim-stats settings namespace, written via PUT /llmtrim-stats/config):

SettingValuesEffect
Moderotating (default) / staticRotating cycles one stat at a time through the selected stats every 4 s; Static shows every selected stat at once, fixed (no rotation)
Stats9 checkboxes (all on by default)Which stats appear in the carousel: Saved today, Saved total, You paid, Would have cost, Saved this week, Tokens trimmed, Requests, Input saved, Round-trip

Fixed constants in source:

KnobLocationDefault
HTTP routessrc/index.tsGET /llmtrim-stats/api, PUT /llmtrim-stats/config
Executable resolutionresolveLlmtrim in src/index.tssubprocess.resolveExecutable('llmtrim'), fallback LLMTRIM_BIN, then the npm win32-x64 path
Poll intervalPOLL_MS in src/client/index.tsx5 s
Carousel cadenceCAROUSEL_MS in src/client/index.tsx4 s
Settings seatsrc/client/index.tsxsettings.section id llmtrim-stats, order 80
Dock seatsrc/client/index.tsxconversation.composer.dock id llmtrim-carousel, order 15