deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
Period-status banner plugin for the DeepSeek Harness (DSH) Web GUI
Watch your balance during peak hours — take a break when it's quiet.
English | 简体中文
About · Display rules · Install · Feedback
dsh-peak-hours-banner keeps a permanent status banner at the top of the chat area in the DSH Web GUI. Based on your computer's clock it splits the day into "peak" and "off-peak" windows anchored on UTC+8, reminding you to watch your API balance — or to take a break.
| Scenario | Banner shows |
|---|---|
| Weekdays · 09:00–12:00 (UTC+8) | 🔴 Peak hours now (09:00-12:00). Watch your balance usage. |
| Weekdays · 14:00–18:00 (UTC+8) | 🔴 Peak hours now (14:00–18:00). Watch your balance usage. |
| Weekdays · other times | 🟢 Off-peak hours now. Please rest and keep a good balance. |
| Weekends (UTC+8) | 🟢 Off-peak hours now. Please rest and keep a good balance. |
Details:
Prerequisite: DeepSeek Harness installed, with the Web GUI started at least once (so the web profile exists).
dsh plugin --profile web add @thrudcoco/dsh-peak-hours-banner
One command: pulls the published bundle from the npm registry and registers it with the web profile. Prebuilt artifacts ship in the package, so no local build and no build-script authorization is needed.
Installing straight from GitHub (
dsh plugin --profile web add github:thrudcoco/dsh-peak-hours-banner) also works in principle, but some pnpm versions key git dependencies by repo name, which breaks plugin-row resolution — prefer npm orlink:.
Developers can also install from a local checkout (rebuild lib/ and it
takes effect on the next restart):
git clone https://github.com/thrudcoco/dsh-peak-hours-banner.git
dsh plugin --profile web add link:dsh-peak-hours-banner/packages/dsh-peak-hours-banner
Requires Node.js ≥ 18.
irm https://raw.githubusercontent.com/thrudcoco/dsh-peak-hours-banner/main/install.ps1 | iex
The script downloads the sources, builds lib/, and installs the bundle
through the official dsh plugin --profile web add link:… flow.
git clone https://github.com/thrudcoco/dsh-peak-hours-banner.git
cd dsh-peak-hours-banner
node packages/dsh-peak-hours-banner/scripts/build-client.js # build lib/
dsh plugin --profile web add link:"$PWD/packages/dsh-peak-hours-banner"
Restart the DSH process after installing, open any session, and the banner appears at the top center of the chat area.
dsh plugin --profile web remove @thrudcoco/dsh-peak-hours-banner
Then restart the DSH process.
The banner converts your computer's clock into the UTC+8 windows. In different timezones the same instant maps to a different UTC+8 wall time — that is expected.
No. UTC+8 Saturdays and Sundays are all-day off-peak (green); holidays are currently judged by the weekday they fall on.
≤15 seconds. A 15-second heartbeat watches for minute-boundary changes; even if the tab is throttled or the machine sleeps, the correct state is picked up as soon as it returns.
No. The plugin only reads your local clock and renders text in your browser — it performs no network requests at all.
dsh-peak-hours-banner/
├── install.ps1 # PowerShell one-click installer
├── packages/dsh-peak-hours-banner/ # the installable bundle (plugin proper)
│ ├── cordis.patch.yml # composition patch: inserts the plugin row
│ ├── package.json # dsh.client declaration (platform: web)
│ ├── scripts/build-client.js # build: inline core logic → module-loader wrap
│ ├── src/index.js # host half (no-op stub)
│ ├── src/client/index.js # readable browser-half source
│ ├── lib/ # prebuilt artifacts (why github installs need no build)
│ └── README.md / README.zh.md # package-level English / Chinese notes
├── src/core.js # period logic as pure functions (Node-testable)
├── src/client.template.js # client template for dynamic debugging
├── scripts/build-client.js # build script for the dynamic-debug variant
└── test/ # node:test suite (72 cases)
Build & test commands: see
packages/dsh-peak-hours-banner/README.md.
Released under the Apache License 2.0.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。