DeepSeek Harness 插件

dsh-peak-ibrhr

DeepSeek API Peak & Off-Peak (50% Discount) status indicator plugin for DeepSeek Harness (DSH)(英文原文)

跳到安装方式

来源信息

GitHub 仓库
ibrhr/dsh-peak
最近更新
2026年8月20日
分类
工具与能力
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/ibrhr/dsh-peak
插件名:dsh-peak-ibrhr
作者:ibrhr

检查来源文件

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

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

dsh-peak

<p align="center"> <img src="https://img.shields.io/badge/DSH-Plugin-blue?style=for-the-badge&logo=deepseek" alt="DSH Plugin" /> <img src="https://img.shields.io/badge/Cordis-v4-purple?style=for-the-badge" alt="Cordis v4" /> </p>

dsh-peak is a lightweight, theme-adaptive status indicator plugin for DeepSeek Harness (DSH).

DeepSeek API offers a 50% discount on token pricing during off-peak hours. dsh-peak integrates directly into the DSH Web UI header right next to your session mode tag, showing real-time discount status, dynamic transition countdowns, multi-timezone clocks, and DeepSeek-V4 model rate cards.

---

Features

  • Understated & Native Design: Built using DSH design tokens (--dsw-*), allowing it to automatically blend with any active skin or theme (including dark, light, and custom monorepo skins like maid-atelier).
  • Seamless Header Integration: Placed directly to the right of the session title and mode tag, participating in normal header flex flow without overlapping action buttons.
  • Accurate Real-Time Status: Millisecond-accurate evaluation of DeepSeek's official UTC peak/off-peak windows with live countdown timers (● Off-peak · 10h 32m / ● Peak · 1h 14m).
  • Interactive Details Popover: Click the badge to open a floating panel with synchronized UTC (billing standard), Beijing (CST / UTC+8), and Local browser clocks.
  • DeepSeek-V4 Rate Matrix: Reference pricing for DeepSeek-V4 Flash and DeepSeek-V4 Pro across Cache Hit, Cache Miss, and Output tokens.
  • Strict Cordis Lifecycle Hygiene: Zero orphan timers or DOM leaks on hot-reload or plugin disposal via ctx.effect(() => () => { ... }).
  • Integrated AI Agent Skill: Includes .agents/skills/dsh-peak-install for automated AI installation and scheduling.
  • Zero-Build Distribution: Ships pre-compiled in lib/ for instant installation without local compiler requirements.

---

DeepSeek API Peak & Off-Peak Schedule

DeepSeek API pricing is evaluated against UTC Standard Time:

WindowUTC TimeBeijing Time (CST / UTC+8)Pricing RateStatus
Morning Off-Peak00:00 – 01:00 UTC08:00 – 09:00 CST50% DiscountOff-peak
Morning Peak01:00 – 04:00 UTC09:00 – 12:00 CSTStandard (100%)Peak
Midday Off-Peak04:00 – 06:00 UTC12:00 – 14:00 CST50% DiscountOff-peak
Afternoon Peak06:00 – 10:00 UTC14:00 – 18:00 CSTStandard (100%)Peak
Evening / Night Off-Peak10:00 – 24:00 UTC18:00 – 08:00 (+1d)50% DiscountOff-peak

---

DeepSeek-V4 Token Pricing Reference

Rates per 1 Million tokens in USD:

ModelToken TypePeak RateOff-Peak Rate (50% OFF)
DeepSeek-V4 FlashInput (Cache Hit)$0.014$0.007
Input (Cache Miss)$0.440$0.220
Output$1.320$0.660
DeepSeek-V4 ProInput (Cache Hit)$0.044$0.022
Input (Cache Miss)$1.320$0.660
Output$3.960$1.980

---

Installation

Method 1: DSH CLI (Recommended)

In your deepseek-harness root directory, run:

pnpm dsh plugin --profile web add github:ibrhr/dsh-peak

> The DSH CLI will automatically register @dsh-external/dsh-peak into your profile's dsh.profile.bundles.

Method 2: AI Agent Automation

Since this repository ships with an agent skill, prompt your DSH Agent: > "Install this plugin: https://github.com/ibrhr/dsh-peak"

Method 3: Manual Profile Setup

1. Add @dsh-external/dsh-peak to ~/.dsh/profiles/web/package.json: ``json { "dependencies": { "@dsh-external/dsh-peak": "github:ibrhr/dsh-peak" } } ` 2. Add the bundle entry into dsh.profile.bundles: `json { "dsh": { "profile": { "bundles": [ "@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "@dsh-external/dsh-peak" ] } } } ` 3. Run pnpm install in ~/.dsh/profiles/web and restart dsh web`.

---

Development & Testing

# Install dependencies
pnpm install

# Run Vitest test suites
pnpm test

# Type check
pnpm run typecheck

# Build pre-compiled bundles to lib/
pnpm run build

---

License & Attribution

This project is licensed under the [BSD-3-Clause License](./LICENSE). For architectural invariants and Cordis effect lifecycle rules, see [AGENTS.md](./AGENTS.md).