dsh-session-guard
Peak-hour auto session gate: weekend mode + global peak auto-pause + session-level freeze/resume + backend auto-retry, auto-resume on off-peak.
高峰自动会话门:周末模式 + 高峰自动暂停(全局)+ 会话级冻结/恢复 + 后端自动重试;错峰自动续跑。
How to install
dsh plugin add dsh-session-guard About
dsh-session-guard 高峰时段自动暂停运行中的会话、低峰/周末自动续跑;配合 input-traffic 的冻结按钮做到**会话级**锁定;后端**自动重试**在冻结/门控期间让路。核心基于**自研会话门**(agent.cancel keepInbox + goals.pause + session/event 安全边界 + followup 续跑),不再依赖 dsh-task-control。 无需修改 dsh 源码、无需提 PR:dsh plugin 命令组装 + bundle patch 装配的 cordis 插件。 💡 **为什么推荐**:DeepSeek 已于 2026-08-17 实行**峰谷计费**——高峰时段(北京时间 9:00-12:00、14:00-18:00)单价为闲时(含午间、夜间、周末与节假日)的 **2 倍**。本插件在高峰自动停住运行会话、退峰自动续跑,错峰长跑最多可省 **50%**;手动冻结(配 input-traffic 按钮)可进一步按会话精确控停。 功能一览 **周末模式**:识别周末(基于配置时区 Intl.DateTimeFormat,不踩裸 getUTCDay() 的北京边界 8 小时 bug)→ 周末无视峰谷、畅快跑。 **高峰自动暂停(全局)**:进入高峰(且非周末)时,对所有 running root sessi…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 3
- mo. downloads
- 1.7K
- Last push
- 2026-09-24
- Created
- 2026-08-25
Links
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- deepseek-harness, dsh, dsh-plugin, dsh-plugin-market, dsh-plugins, javascript
Related plugins
DSH-EasyRewrite
Renzic-Stone/DSH-EasyRewrite
Inline-edit and recall your own user messages in dsh web — lazily and seamlessly, with a version pager and per-session draft persistence.
dsh-web
zhu1090093659/dsh-web-ui/tree/main/packages/dsh-chat-recovery
Chat recovery for DSH: edit the last finished user message and explicitly retry failed turns, both via session-fork branches that leave the original conversation untouched.
dsh-nested-followups
sluminositys/dsh-nested-followups
Keep branching from any completed answer at any depth while the main session stays untouched.
dsh-session-sync
PerryLink/dsh-session-sync
Cross-device session sync for DeepSeek Harness — syncs sessions and settings between machines through git.