DeepSeek Harness plugin

dsh-feng-gu

DeepSeek Harness 整活插件:按 DeepSeek API 峰谷定价,实时显示现在是梁文峰(高峰)还是梁文谷(低谷),带切换倒计时

Jump to install

Source facts

Repository
KeqingMoe/dsh-feng-gu
Latest update
Aug 17, 2026
Category
Tools & Capabilities
GitHub stars
3
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/KeqingMoe/dsh-feng-gu
Plugin: dsh-feng-gu
Author: KeqingMoe

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

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.bundlecordis.patch.yml 插入一行插件)和 dsh.clientplatform: 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 (時雨てる)