mikasaxin529/dsh-nightshift0

dsh-nightshift

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

AI 分析

核心用途是通过错峰执行任务来降低 API 消耗成本。适合有大量非紧急任务、希望利用非高峰期低价 token 节省开支的用户。

パッケージ
dsh-nightshift
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/09/02

インストール

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

ドキュメント

README 全文を読む ↗

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)