Introduction¶
DeepSeek Harness (DSH) adopts a plugin-based architecture that allows developers to extend its functionality. In long-running conversations or batch tasks, identifying whether the current time is a peak or off-peak period helps control inference costs. The dsh-peakvalley plugin addresses the need to display real-time price multipliers and countdowns next to the input box, helping users adjust strategies based on price fluctuations.
Plugin Overview¶
This is a DeepSeek Harness client plugin maintained by blueziii, released under the MIT License. It intuitively displays whether the current period is Peak (1x) or Off-peak (0.5x) by showing a status badge on the far right of the toolbar below the input box. It also provides holiday countdowns and rule explanations.
Core Features¶
- Period & Price Display: Displays a Peak or Off-peak badge on the right side of the toolbar below the input box. Off-peak pricing is half that of Peak periods.
- Model Filtering: The badge only appears when the model name contains
deepseek(case-insensitive, e.g.,deepseek-account,DeepSeek-V3.2). Non-DeepSeek models automatically hide the badge. - Multi-mode Switching: Clicking the badge cycles through 7 display modes (default shows Period · Rate · Countdown; supports combinations like Period only, Rate only, etc.).
- Hover Information: Hovering the mouse over the badge displays full details, including current Beijing time, holiday name, countdown (d/h/m format), and the original rule text.
- Holiday Synchronization: Supports automatic online synchronization of Chinese holiday data (sourced from
holiday-cn) and includes a built-in 2026 holiday table as a fallback. - Local Preferences: Remembers the user’s preferred display mode via
localStorage. - Compatibility: Supports Windows “Reduce motion” settings by adjusting animation durations to prevent visual jumping.
Installation & Activation¶
This plugin is a local directory package. Installation requires cloning the source code and specifying an absolute path.
- Clone the repository to your local machine:
git clone https://github.com/blueziii/dsh-peakvalley.git
- Open DeepSeek Harness and navigate to the Plugins page in the sidebar.
- Click Add Plugin, enter the absolute path of the cloned directory, and press Enter or click Install:
<YourPath>\dsh-peakvalley
- Once installed, click Enable Now.
Note: The plugin manager parses input as a local absolute path. Although the
github:blueziii/dsh-peakvalleycommand is theoretically supported, the local path method is the one verified in the documentation.
Typical Usage¶
- Check Status: After switching to a DeepSeek model, a status badge appears immediately on the far right of the toolbar below the input box (Orange for Peak, Green for Off-peak).
- Switch Modes: Click the badge to cycle through 7 display contents, such as viewing only the countdown or only the rate.
- View Details: Hover the mouse over the badge to view specific holiday information, the countdown to the next switch, and the rules for the entire day.
Precautions¶
- Update Lag: After switching models, the badge updates within 1 second.
- Data Dependency: Holiday data requires an internet connection. If the connection fails, the built-in 2026 table or Gregorian calendar estimates are used. The Tooltip will indicate the current data source being used.
- Adjusted Workday Rules: As specified by requirements, adjusted workday weekends (e.g., 2026-10-10) are still treated as Off-peak periods.
- Permissions & Security: The plugin runs locally within the browser, with permissions restricted to the current DSH process. It is recommended to review the source code and license before installation.
Conclusion¶
Through local computation and automatic synchronization, dsh-peakvalley provides DeepSeek users with intuitive cost monitoring capabilities. For more technical details, please refer to the GitHub Repository or the Plugin Directory.