john-walks-slow/dsh-proactive--packages-dsh-proactive ↗★ 17
dsh-proactive
Host-level proactive wake-ups for DeepSeek Harness: let the model schedule its own alarms (once / interval / cron with random jitter), wake cold sessions on time, gate model-initiated follow-ups with quiet hours and a daily budget, and reclaim silent wake turns with tombstone compaction; ships a web panel for alarm and history management. dsh-proactive:为 DeepSeek Harness 提供 host 级主动唤醒——模型自订闹钟(单次/循环/cron+随机抖动),冷会话到点自动 resume,安静时段与每日投递预算约束自主跟进,静默唤醒折叠压缩不污染上下文,自带 Web 面板管理闹钟与唤醒历史。
同名套件的其他儲存庫
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-proactive說明文件
閱讀完整 README ↗全局配置(Configuration)
默认配置开箱即用。若需自定义,可编辑 $DSH_HOME/proactive/config.json:
{
"enabled": true, // 插件全局总开关
"maxDeliveriesPerDay": 50, // 每 UTC 日可见聊天文本投递限额(静默回合不扣额度)
"quietHours": { // 免打扰安静时段
"start": "23:00",
"end": "08:00",
"timeZone": "Asia/Shanghai"
},
"maxWakeupsPerHour": 60, // 全宿主每小时最大唤醒次数上限
"bootOverduePolicy": "fire", // 启动时在途过期闹钟处理策略:fire | notify-only | drop
"maxRetriesPerFire": 3, // 单次唤醒遇 busy/failed 时的重试上限
"maxPromptLength": 4000, // 闹钟 prompt 最大字符长度
"defaultPrompt": "这是一个 heartbeat reminder,…", // 新建闹钟表单的默认预填文案
"schedulePollSeconds": 60, // 文件表闹钟的轮询检查周期(秒,15..3600)
"silentWakeCompaction": true // 静默唤醒是否启用墓碑折叠压缩
}
- 环境变量覆盖:支持
DSH_PROACTIVE_ENABLED、DSH_PROACTIVE_MAX_DELIVERIES_PER_DAY、DSH_PROACTIVE_DATA_DIR。 - 双入口持久化:支持通过
proactive_update_settings工具热更新,也支持在 Web 设置面板修改保存,底层保证原子写入。