guoliyuan97-png/dsh-game-hud ↗★ 4
dsh-game-hud
Game-style floating HUD for DeepSeek Harness: HP bar (account balance vs ¥20 cap), MP bar (context remaining), official peak/valley pricing with switch countdown, auto-compaction when context < 5% remains, and a memory-carrying new-conversation button. · 游戏风格悬浮 HUD:余额血条、上下文蓝条、官方峰谷定价与切换倒计时、上下文不足5%自动压缩、携带记忆开启新对话。 适合需要直观监控账户余额、上下文剩余量及计费时段的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:guoliyuan97-png/dsh-game-hud配置
所有配置项都有默认值,可通过 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:
# 官方价(元/百万 tokens),2026-09-10 12:00 起生效
deepseek-v4-flash:
peak: { input: 2.0, output: 8.0, cacheHit: 0.04 }
valley: { input: 1.0, output: 4.0, cacheHit: 0.02 }