Zenjibad/llmtrim-stats-plugin ↗★ 0
llmtrim-stats-plugin
DSH Web UI内的实时llmtrim节省仪表盘:包含设置页仪表盘及输入框下方的轮播统计条
AI 分析
核心用途是展示llmtrim工具对上下文精简所节省的资源数据。适合使用llmtrim进行提示词裁剪、需要实时监控Token节省比例的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Zenjibad/llmtrim-stats-plugin說明文件
閱讀完整 README ↗⚙️ Configuration
No config file, no persisted settings. Fixed constants in source:
| Knob | Location | Default |
|---|---|---|
| HTTP route | src/index.ts | GET /llmtrim-stats/api |
| 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 |