← 返回列表
D

dsh-peak-cost-mode

v0.2.0 · 0 天前发布

DeepSeek peak-pricing cost guard for DSH: during peak hours (Beijing 09:00–12:00 / 14:00–18:00, ×2) the agent automatically switches to ultra-compressed caveman-style output to save tokens, and a header badge + toast keep you posted on every peak/valley t

deepseek-harnessdshdsh-pluginpeak-pricingpeak-valleycavemancost-saving省钱峰谷计价

README

dsh-peak-cost-mode

DeepSeek 峰谷计价省钱插件,适用于 DeepSeek Harness(DSH):高峰计价时段(北京时间 09:00–12:00、14:00–18:00,价格 ×2)自动切换 caveman 超精简输出 省输出 token,标题栏徽章 + 切换 toast 随时告知当前档位。

功能

  • 自动监测 —— 每 30 秒按北京时间(UTC+8,无夏令时)对照 DeepSeek V4 峰谷时刻表:

  • | 时段(北京时间) | 档位 | 价格 |
    |---|---|---|
    | 09:00–12:00 | 高峰 | ×2 |
    | 12:00–14:00 | 低谷 | ×1 |
    | 14:00–18:00 | 高峰 | ×2 |
    | 18:00–次日 09:00 | 低谷 | ×1 |
  • 高峰省流 —— 高峰期间注入「高峰省流模式」提示段:要求模型以 caveman 超精简风格回复(去客套/铺垫/填充词,代码、命令、API 名、路径、精确错误信息、数字一律原样保留;安全警告与不可逆操作确认永不压缩)。

  • 切换提醒 —— 每次档位切换弹 toast:

  • - 低谷 → 高峰:「梁文锋来了,少说话多做事。」
    - 高峰 → 低谷:「梁文谷来了,一切正常。」
  • 常驻状态徽章 —— 会话标题栏右侧(会话日志按钮左侧):高峰红底「高峰 ×2 · 省流中」,低谷绿底「低谷 ×1」;悬停显示完整信息(窗口/倍率/北京时间/下次切换)。点击徽章打开收益报告。

  • 省流收益计量(0.2.0) —— 高峰期间拦截每一次流式模型调用(llm/stream),按模型记录真实 token 用量(输
  • 查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-peak-cost-mode
    Repo
    git+https://github.com/moon09300731/dsh-peak-cost-mode.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":[]}}