mikasaxin529/dsh-nightshift0

dsh-nightshift

dsh third-party plugin: queue during peak hours, drain off-peak, report the savings.

包名
dsh-nightshift
版本
1.0.0
许可证
MIT
最近更新
2026年9月2日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mikasaxin529/dsh-nightshift

Configuration

All keys live under the nightshift entry in your loader config (defaults shown):

keydefaultmeaning
timeZoneAsia/ShanghaiIANA zone the windows are interpreted in
peakWindows09:00–12:00, 14:00–18:00[start, end) wall-clock windows; may cross midnight; [] = never peak
peakPricePerMTok2price per million tokens during peak (fill your real number)
offPeakPricePerMTok1price per million tokens off-peak
currency¥display only
tickMs30000window-check / dispatch tick
maxRetries3retries for error/interrupted turns
retryBaseMs / retryFactor / retryMaxMs60000 / 2 / 1800000exponential backoff base, factor, ceiling
continuationLimit3auto-「继续」sends per task on max-tokens
continuationPrompt继续the continuation prompt text
drainGapMs5000pause between dispatches
allowRunNowtruewhether the panel's run-now button is honored
reportRetentionDays30report pruning
exposeToolfalsereserved for v1.1 (nightshift_enqueue tool)