dsh-offpeak-badge: Display Peak and Off-Peak Periods in the Composer Status Bar

Introduction

When engaging in multi-turn conversations with DeepSeek Harness (dsh), the status bar below the input box typically displays metrics such as throughput and cache hits, but the display does not change based on whether the current moment is being billed at peak rates. If you switch frequently between various channels such as the DeepSeek Official API, OpenCode Go, WorkBuddy, and Ollama Cloud, the definitions of peak and off-peak hours vary by provider. Relying on memory or checking pricing pages is both inaccurate and disrupts your workflow. The dsh-offpeak-badge appends a Busy / Off-peak badge to the same row in the status bar. It performs local determination based on the official time definitions of the selected provider and automatically flips across the hour mark without requiring a page refresh.

What is it

dsh-offpeak-badge is a community-maintained DeepSeek Harness plugin maintained by Keleven-11 (GitHub). It is categorized under Model Inference in the SkillHub directory. It registers a status item in the conversation.composer.dock slot, displayed side-by-side with host metrics such as tok/s and cache hit. This allows you to instantly see whether the current moment is considered peak or off-peak based on the current preset. The plugin is a pure client-side implementation: it does not initiate network requests, does not read files, and configuration is saved locally in the browser.

Core Features

Status Bar Badge

After installation and page refresh, the badge appears in the status bar below the input box, to the right of “cache hit”. Hover over it to view the full definition explanation and the current Beijing time. You can completely disable the display in the settings; once disabled, no DOM elements will be registered.

Five Vendor Presets

Time definitions are sourced from each vendor’s official documentation. There are five built-in presets available for switching in Settings → Peak/Off-peak Periods:

Preset Peak Hours (Mon-Fri, Beijing Time) Statutory Holidays
DeepSeek Official API 09:00–12:00, 14:00–18:00 All day Off-peak (Default On)
OpenCode Go 09:00–12:00, 14:00–18:00 Not mentioned by official, Default Off
WorkBuddy 09:00–12:00, 14:00–18:00 Other periods including holidays (Default On)
Ollama Cloud (DeepSeek V4.1 Flash 1017) 20:00–02:00 next day Not mentioned by official, Default Off
Custom Fill in yourself, e.g., 09:00-12:00,14:00-18:00 Optional

Each preset has an independent “Statutory Holidays Count as Off-peak” switch. When enabled, public holidays announced by the State Council in 2026 (Document No. 7 of [2025] by the General Office of the State Council) are counted as off-peak all day. The peak window for Ollama Cloud crosses midnight. The plugin determines the status by weekly segments: Monday to Friday 20:00–24:00, and Tuesday to Saturday 00:00–02:00. If the official definitions change, the maintainer can modify the PRESETS in client.js and release a new version. The README includes links to the original sources for DeepSeek, OpenCode Go, WorkBuddy, and Ollama Cloud.

Compatibility & Themes

Compatible with dsh 0.2.x (both dsh.bundle and dsh.client are declared in the manifest). Styles use the host’s --dsw-alias-* theme tokens and font size variables, following the theme and font size settings. The Host side is a placeholder implementation with no tools, network access, or file access.

Installation and Enablement

Install using the command provided in the README. Do not splice installation forms that are not documented:

dsh plugin add dsh-offpeak-badge
# Or install directly from the repository
dsh plugin --profile desktop add github:Keleven-11/dsh-offpeak-badge

After installation, refresh the page to see the badge. The current package version is 1.1.0, licensed under MIT.

Typical Usage

  1. Install the plugin and refresh the Harness page.
  2. Open Settings (Ctrl+Alt+,) and navigate to Peak/Off-peak Periods on the left.
  3. Confirm that Show Busy/Off-peak is enabled.
  4. In Vendor Periods, select the preset that matches your current route (or select Custom and fill in the peak hours window).
  5. Adjust Statutory Holidays Count as Off-peak as needed; the Current Status area will display the determination result and Beijing time in real-time.
  6. Observe the status bar badge during daily conversations; peak and off-peak boundaries update automatically at the hour mark.

Configuration is persisted in localStorage['dsh-offpeak-badge/config'] and is not uploaded or connected to the network.

Applicable Scenarios and Notes

Suitable for DSH users who frequently switch between multiple vendors and care about peak and off-peak billing. The badge only performs “local clock determination based on the selected definition” and does not detect which API you are actually connected to, nor does it replace bill verification.

The DSH ecosystem emphasizes “everything is a plugin.” Community directories like SkillHub are independent sites with no official affiliation with DeepSeek / Matrix. The plugin runs with the permissions of the current dsh process and its frontend environment. Before installation, it is recommended to review the repository source code and the MIT license to ensure they meet your security and compliance requirements.

Conclusion

dsh-offpeak-badge condenses the determination of peak and off-peak hours into a single line in the Composer status bar, reducing the cost of repeatedly checking pricing pages. Directory page: SkillHub · dsh-offpeak-badge; Source code and full description: GitHub · Keleven-11/dsh-offpeak-badge.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye