KeqingMoe/dsh-feng-gu

Project Overview项目介绍

dsh-feng-gu is a pun-named native plugin built exclusively for the DeepSeek Harness (DSH) web UI. The name comes from a Chinese wordplay on DeepSeek CEO Liang Wenfeng’s name and DeepSeek API’s peak-valley tiered pricing, which launched August 17, 2026. The plugin displays the current peak or off-peak pricing status in the bottom right corner of the DSH UI, adds a real-time countdown to the next pricing switch, and includes full pricing explanations. It adapts automatically to DSH’s dark and light themes using native DSH theme tokens, and all time calculations are hardcoded to UTC+8 Beijing time regardless of the user’s browser timezone setting.

This plugin is intended for developers who use DeepSeek API with the DSH web UI, and it helps users avoid unexpected API usage costs by making the current pricing tier immediately visible at a glance. Installation only requires a single command run from your terminal to pull the plugin directly from GitHub, no local repository cloning or manual extra configuration is needed. After running the install command, you just need to restart your DSH web UI to see the status badge in the bottom right corner. Clicking the badge opens a detail modal that shows the full pricing schedule and the origin of the pun.

dsh-feng-gu is released under the permissive MIT open source license, so it is free to use, modify, and redistribute by anyone. It only supports the DSH web UI and does not offer any integration for other agent platforms or clients. For developers who want to modify the peak and off-peak time windows, all you need to do is adjust the PEAK_WINDOWS constant at the top of src/client/index.ts in the source code. The repository includes a built-in smoke test script to validate time logic and plugin registration, making local development and debugging straightforward.

这是一款专为 DeepSeek Harness (DSH) 打造的原生 Web UI 插件,名字取自 DeepSeek 创始人梁文峰与 DeepSeek API 峰谷定价的谐音梗。插件会在 DSH Web 界面右下角实时展示当前处于峰谷定价的哪个时段,同时附带下次切换的倒计时和完整价格说明。它遵循 DSH 主题 token 适配,深色、浅色主题下都能自然显示,时段计算固定使用 UTC+8 北京时间,不依赖浏览器自身时区设置。

这款插件面向使用 DeepSeek API 搭配 DSH Web UI 的开发者,帮助用户快速掌握当前API定价档位,避免因不熟悉峰谷规则产生额外的使用成本。安装流程非常简单,只需要一条命令即可从 GitHub 直接拉取安装,不需要克隆仓库,也不需要额外配置。安装完成后重启 DSH Web UI 就能在右下角看到状态徽章,点击徽章即可展开查看详情。

本插件遵循 MIT 开源协议,免费供用户使用和修改,当前仅支持 DSH Web 端,不对其他客户端或第三方 agent 平台提供适配。如果需要修改峰谷时段规则,只需要调整源码中 src/client/index.ts 顶部的 PEAK_WINDOWS 配置即可。项目内置冒烟测试脚本,可以验证时段逻辑和插件注册流程,方便本地二次开发调试。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:KeqingMoe/dsh-feng-gu#v0.1.0

把 KeqingMoe/dsh-feng-gu 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-feng-gu · 梁文峰 / 梁文谷 实时播报

DeepSeek Harness 整活插件:DeepSeek API 采用峰谷定价(2026-08-17 生效), 而 DeepSeek 老板叫梁文峰 —— 所以高峰期就是梁文峰,低谷期就是梁文谷。 本插件在 Web UI 右下角实时显示此刻是哪一位,附切换倒计时与完整价格说明。

功能

  • 🔥 梁文峰(高峰):北京时间每日 09:00–12:00、14:00–18:00,价格翻倍,缓存命中输入最高 +1100%
  • 🌙 梁文谷(空闲时段):其余时间(含夜间、周末及节假日),价格为高峰的一半
  • 每秒实时刷新:当前北京时间 + 距下次切换的 HH:MM:SS 倒计时
  • 点击徽章展开详情卡:峰谷时段表、价格说明、梗的出处
  • 判断基于 UTC+8 手动换算,与浏览器时区设置无关
  • 样式走 DSH 主题 token(--dsw-alias-*),深色/浅色主题下都自然

安装

一条命令,从 GitHub 直接安装(无需克隆本仓库、无需任何额外配置):

dsh plugin --profile web add github:KeqingMoe/dsh-feng-gu#v0.1.0

--profile web 对应你启动 Web 界面的那个 profile;从源码运行 dsh 时命令前缀 是 pnpm dsh(如 pnpm dsh plugin --profile web add ...)。

安装成功后重启 Web UI,右下角即出现徽章(从源码运行:pnpm dsh web)。 卸载:

dsh plugin --profile web remove dsh-feng-gu

#v0.1.0 是钉住的 tag,不会因后续推送而静默变化。

它是怎么工作的

DSH 的 Web 端支持开箱即用的第三方客户端插件,无需重新编译 web app:

  1. 本包同时声明了 dsh.bundle(cordis.patch.yml 插入一行插件)和 dsh.client(platform: web,浏览器半)。
  2. web shell 的 modules 节点半会扫描 Loader 里所有带 dsh.client 声明的包, 解析其 exports["./client"] 构建产物,并在 /plugins/<id>/client.js 下发。
  3. 浏览器侧的模块加载器把 lib/client.js 当作一个闭包工厂 (window.__ModuleLoader__.load({ id, factory }))懒加载;react、 @deepseek-ai/cordis 等平台模块从 shell 冻结的模块表解析,其余代码全部内联。
  4. 插件在 apply() 里通过 slots 服务注册到 shell.overlay 座位(右下角悬浮层, 可点击、不挡 UI),并通过 ctx.effect 托管自己的 <style> 标签,卸载即清理。

开发

dsh-feng-gu/
├── cordis.patch.yml        # bundle 层:插入插件行
├── tsdown.config.ts        # 双构建:node 半 lib/index.js + 浏览器半 lib/client.js
├── src/
│   ├── index.ts            # node 半(Loader 行载体,空 apply)
│   └── client/
│       ├── index.ts        # 浏览器半:computeState / 徽章组件 / apply
│       └── badge-css.ts    # 样式(纯 CSS 字符串,跟随插件生命周期)
└── scripts/smoke.mjs       # 无浏览器冒烟测试:注册、工厂物化、时段逻辑

常用命令:

pnpm install
pnpm build        # 构建 lib/
pnpm test         # 冒烟测试(模拟 loader 加载 lib/client.js 并验证时段边界)
pnpm typecheck    # tsc --noEmit

本地改完想装到自己的 profile 里看效果:

dsh plugin --profile web add ./dsh-feng-gu
dsh web

改动时段规则只需动 src/client/index.ts 顶部的 PEAK_WINDOWS(高峰窗口, 单位:北京时间的秒)。

定价依据

DeepSeek 官方 2026-08-13 调价公告(8 月 17 日 00:00 生效):采用峰谷定价, 高峰时段为北京时间每日 9:00–12:00、14:00–18:00,其余时间(含夜间、周末及 节假日)为空闲时段;空闲时段价格为高峰时段的一半,高峰价格为基准价 2 倍。 V4-Pro 缓存命中输入高峰价 0.3 元/百万 tokens,较调价前 0.025 元涨幅达 1100%。 参见官方调价公告相关报道。

License

MIT © 2026 Teru Shigure (時雨てる)

← 上一个 Prev dsh-notify-center 下一个 Next tuning-engines-cli →