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节省和费用数据的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Zenjibad/llmtrim-stats-pluginREADME
Read the full README ↗⚙️ Configuration
The carousel is configurable from the Settings page (persisted in the llmtrim-stats settings namespace, written via PUT /llmtrim-stats/config):
| Setting | Values | Effect |
|---|---|---|
| Mode | rotating (default) / static | Rotating cycles one stat at a time through the selected stats every 4 s; Static shows every selected stat at once, fixed (no rotation) |
| Stats | 9 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:
| Knob | Location | Default |
|---|---|---|
| HTTP routes | src/index.ts | GET /llmtrim-stats/api, PUT /llmtrim-stats/config |
| Executable resolution | resolveLlmtrim in src/index.ts | subprocess.resolveExecutable('llmtrim'), fallback LLMTRIM_BIN, then the npm win32-x64 path |
| Poll interval | POLL_MS in src/client/index.tsx | 5 s |
| Carousel cadence | CAROUSEL_MS in src/client/index.tsx | 4 s |
| Settings seat | src/client/index.tsx | settings.section id llmtrim-stats, order 80 |
| Dock seat | src/client/index.tsx | conversation.composer.dock id llmtrim-carousel, order 15 |