guoliyuan97-png/dsh-game-hud ↗★ 0
dsh-game-hud
游戏风格的 DSH 悬浮 HUD 插件,提供余额血条、上下文蓝条、峰谷定价倒计时、低上下文自动压缩及带记忆新开对话功能。
AI 分析
核心用途是直观监控 DSH 运行状态(余额与 Token 消耗)。适合喜欢游戏化界面、需要实时掌控上下文和资费状态的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:guoliyuan97-png/dsh-game-hud说明文档
阅读完整 README ↗配置
所有配置项都有默认值,可通过 DSH 设置 → 插件 → dsh-game-hud 界面编辑(保存后 HUD 实时生效,无需重启),或在 profile 的 cordis.patch.yml 中覆盖:
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
maxBalance | number | 20 | 血条满格金额(CNY)。余额超过此值显示满格,低于按比例减少 |
lowAlert | boolean | true | 低余额红光告警开关:余额(血条)低于 lowThreshold 时,悬浮窗四周闪烁红光 |
lowThreshold | number | 10 | 告警阈值(%)。仅血条触发,蓝条(上下文)不触发 |
priceTable | object | {} | 可选:按模型覆盖峰谷单价(元/百万 tokens)。未覆盖的模型用内置价格表 |
cordis.patch.yml 示例:
- insert:
- id: game-hud
name: 'dsh-game-hud'
config:
maxBalance: 50
lowAlert: true
lowThreshold: 10
priceTable:
deepseek-v4-flash:
peak: { input: 3.0, output: 9.0, cacheHit: 0.1 }
valley: { input: 1.5, output: 4.5, cacheHit: 0.05 }