DeepSeek Harness plugin

dsh-peak-badge-ngtongsh

DeepSeek API peak/off-peak hours badge for the dsh web GUI: floating bottom-right pill, red when peak (01:00-04:00 and 06:00-10:00 UTC), live countdown to the next transition, draggable.

Jump to install

Source facts

Repository
ngtongsheng/dsh-peak-badge
Latest update
Aug 15, 2026
Category
Tools & Capabilities
GitHub stars
1
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/ngtongsheng/dsh-peak-badge
Plugin: dsh-peak-badge-ngtongsh
Author: ngtongsheng

Check the source files

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

File explorer3 files
README.mdSource · read only

dsh-peak-badge

DeepSeek API peak/off-peak hours badge for the dsh web GUI.

Floating pill, bottom-right by default, showing whether the current UTC time falls in DeepSeek's peak pricing hours. Red when peak, green when off-peak, with a live countdown to the next transition.

Peak hours (per DeepSeek pricing docs)

> Peak hours are 01:00–04:00 UTC and 06:00–10:00 UTC; all other hours are off-peak. Off-peak rates are half the peak rates.

The schedule is hardcoded in the plugin. Update PEAK_WINDOWS in lib/client.js if DeepSeek changes it.

Features

  • Floating pill, default position bottom-right 14px
  • Red = peak hours, Green = off-peak
  • Live 1s countdown to the next transition (Peak 1h 25m 03s left)
  • Draggable — drag anywhere, position is remembered in localStorage
  • Click to customize — popover with countdown format and opacity controls
  • Monospace font: digits stay fixed-width, no jitter while ticking
  • No host-side logic, no API calls, no network — pure client UI

Customization

Click the badge (don't drag) to open the settings popover:

  • Show "left" — toggle the trailing word (Peak 1h 25m 03s leftPeak 1h 25m 03s). The Peak / Off-peak label itself is always shown.
  • Countdown formatH:M:S (default, 1h 25m 03s), M:S (85m 03s), or S (5103s)
  • Opacity — 20%–100% slider (default 80%)

All choices persist in localStorage and survive refreshes.

Demo

Peak hours — customization popover open (red, countdown to off-peak):

![Peak hours](docs/demo-peak.png)

Off-peak hours (green, countdown to next peak):

![Off-peak hours](docs/demo-offpeak.png)

Install

dsh plugin --profile web add github:ngtongsheng/dsh-peak-badge

Restart dsh web, hard-refresh (Ctrl+F5), and the badge appears.

Requirements

  • dsh web profile (dsh web)
  • pnpm ≥ 10 (for dsh plugin)

Development

The plugin is a plain-JS bundle: no build step, no TypeScript, no bundler. Files:

  • lib/index.js — host half (no-op; exists so the loader mounts the package)
  • lib/client.js — browser half (the badge), served by dsh's client-modules loader
  • cordis.patch.yml — profile bundle patch (inserts the peak loader row)
  • package.jsondsh.bundle.patch + dsh.client declarations

Local iteration:

dsh plugin --profile web add file:C:/path/to/dsh-peak-badge

Note: pnpm copies file: dependencies — re-copy lib/client.js (or re-add) after each edit, then restart dsh web.

License

MIT