guoliyuan97-png/dsh-game-hud0

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%自动压缩、携带记忆开启新对话。

AI 분석

核心用途是直观监控 DSH 运行状态(余额与 Token 消耗)。适合喜欢游戏化界面、需要实时掌控上下文和资费状态的用户。

패키지
dsh-game-hud
버전
1.3.1
라이선스
MIT
최근 업데이트
2026. 8. 19.

설치

$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 中覆盖:

配置项类型默认值说明
maxBalancenumber20血条满格金额(CNY)。余额超过此值显示满格,低于按比例减少
lowAlertbooleantrue低余额红光告警开关:余额(血条)低于 lowThreshold 时,悬浮窗四周闪烁红光
lowThresholdnumber10告警阈值(%)。仅血条触发,蓝条(上下文)不触发
priceTableobject{}可选:按模型覆盖峰谷单价(元/百万 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 }