dsh-offpeak-guard: Adding peak-valley rate off-peak scheduling to DeepSeek Harness

dsh-offpeak-guard is a DSH workflow plugin maintained by HATO-24 (MIT) that performs off-peak scheduling at the session layer according to DeepSeek's peak-valley pricing rules. Time-wise, it identifies peak price windows (09:00–12:00 and 14:00–18:00) on Beijing time weekdays (including synchronized holidays); at the model level, it makes precise judgments based on the actual provider/model of the session. During peak hours, running tasks can be paused immediately or allowed to complete the current round before pausing, while new tasks started during peak hours are stopped immediately. Upon the start of valley pricing, execution automatically resumes in the original session. The article provides the npm installation command, typical usage for the three tools (`offpeak_status`, `offpeak_plan`, and `offpeak_guard`), configuration of `cordis.patch.yml` and environment variables, presets, and data files, and explains edge cases such as sub-agent waiting, session exemption, and dynamic holiday fallback.

Read More