dsh-peak
DeepSeek API peak/off-peak pricing indicator: a live composer pill (red during peak, green off-peak) with a countdown to the next switch and the weekend/Chinese-holiday off-peak rules, plus a dsh_peak_status tool the agent can call to warn about cost. 适合需要监控DeepSeek API计价窗口以优化调用成本的用户。
同名パッケージの別リポジトリ
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:geokkjer/dsh-peakドキュメント
README 全文を読む ↗Usage
Ask the agent:
- "is it peak pricing right now?" → calls
dsh_peak_status - "run this long job off-peak" → the agent checks
dsh_peak_statusfirst and reports the window
The pill itself needs no interaction: it self-updates every 30s and flips color at each window boundary.
dsh_peak_status returns the summary an agent reads plus structured fields: peak, offPeakReason (weekend / holiday / none, the last when only the peak-window rule applies), holidayName (empty unless the day is a holiday), makeupWorkday, the UTC and Beijing clocks, nextSwitchUtc / nextSwitchInMinutes, and holidayCalendarThrough / holidayCalendarStale.
Tool schemas use the harness's JSON-schema subset, which takes a single type string per node — a type array disables the whole plugin entry at load, so offPeakReason carries the none sentinel instead of a nullable type.