DeepSeek Harness 插件

dsh-peak-badge

DeepSeek peak/off-peak pricing badge for DSH: light green in off-peak hours, light orange in peak hours (Beijing time), draggable. / DeepSeek 峰谷计价状态角标:北京时间高峰时段(09:00–12:00、14:00–18:00)浅橘,优惠时段浅绿,可拖动。(英文原文)

跳到安装方式

来源信息

GitHub 仓库
mj5809/dsh-peak-badge
最近更新
2026年8月17日
分类
工具与能力
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/mj5809/dsh-peak-badge
插件名:dsh-peak-badge
作者:mj5809

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-peak-badge

A floating DeepSeek peak/off-peak pricing badge for the DeepSeek Harness (DSH) web GUI. It tells you at a glance whether DeepSeek tokens are currently billed at peak or off-peak rates — based on Beijing time, with zero configuration.

> 🟢 Off-peak hours — light green pill: 「优惠时段 · 半价」 (off-peak, half price) > 🟠 Peak hours (09:00–12:00, 14:00–18:00 Beijing time) — light orange pill: 「高峰时段 · 单价×2」 (peak, 2× price)

Why

DeepSeek introduced peak/off-peak pricing (峰谷计费) on 2026-08-17: during the peak windows 09:00–12:00 and 14:00–18:00 (Beijing time), token prices are the off-peak rate. This badge keeps that status visible at all times so you can decide whether to keep chatting or defer the expensive work.

Features

  • Always current — refreshes every 30 s using Intl.DateTimeFormat('Asia/Shanghai') (no manual timezone setup).
  • Draggable — move it anywhere; the position is remembered in localStorage and clamped to the viewport.
  • Click for details — a card shows the current Beijing time, the peak/off-peak windows, and reference prices for DeepSeek V4-Flash / V4-Pro.
  • Zero host risk — pure browser plugin; the host half is a no-op.
  • Complements the text-rule reminder in AGENTS.md for agents working in basecamp-style repositories.

Install

dsh plugin --profile web add dsh-peak-badge

Restart dsh web, then hard-refresh the browser (Cmd+Shift+R on macOS / Ctrl+Shift+R elsewhere). The badge appears at the bottom-left by default — drag it wherever you like.

Usage

  • See status: green = off-peak, orange = peak. The pill also shows the current Beijing time.
  • Drag: press and hold, move, release. Position persists across refreshes.
  • Details: click (without dragging) to open/close the info card.

Reference prices (effective 2026-08-17, CNY per million tokens)

ModelPeak input / outputOff-peak input / output
V4-Flash¥3.0 / ¥9.0¥1.5 / ¥4.5
V4-Pro¥9.0 / ¥27.0¥4.5 / ¥13.5

Cache hits are billed at half the input price. Always check the official pricing page: https://api-docs.deepseek.com/quick_start/pricing

Structure

  • lib/index.js — host half (no-op; browser-only plugin)
  • lib/client.js — browser half: window.__ModuleLoader__.load() + shell.overlay slot
  • cordis.patch.yml — bundle patch (inserts the peak-badge row)

Development

npm run check      # syntax-check host + client
dsh plugin --profile web add "link:$PWD"   # install from source

Uninstall

dsh plugin --profile web remove dsh-peak-badge

License

MIT © 2026 Sue YoungZen