LittleBlackTong/dsh-plugin-heartbeat ↗★ 3
dsh-plugin-heartbeat
Heartbeat plugin for DeepSeek Harness: wakes the agent on a configurable interval so it proactively reports progress, risks, or blockers — and makes small talk when there is nothing to report. 适合需要Agent在长时间无交互时主动检查项目状态、反馈风险或保持活跃的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LittleBlackTong/dsh-plugin-heartbeat配置
| 键 | 默认 | 含义 |
|---|---|---|
enabled | true | 总开关(用户层存在 /heartbeat.json) |
intervalSeconds | 600 | 初始心跳周期(钳制在 30–86400 秒);退避后续档自动 ×2、×3 |
pauseAfterMissed | 3 | 硬停阈值:连续 N 拍无真人回复 → 拆定时器彻底停止;用户下一条消息复活并回初始档重新计时。0 = 关闭 |
backoffSeconds | 未设 | 显式退避档位数组(如 [600, 900, 1800],仅 composition) |
compactBeforeBeat | true | 投递前先压缩历史为 checkpoint 摘要(仅 composition,无 compaction 服务时自动跳过) |
maxBeatsPerHour | 0 | 每 60 分钟滑动窗口的心跳上限(0=关闭,仅 composition) |
prompt | 内置 | 每拍投递的指令模板,{{time}} 会替换为当前时间(仅 composition 配置) |
configFile | /heartbeat.json | 用户配置文件路径(enabled / intervalSeconds / pauseAfterMissed) |
自定义心跳提示词(composition 配置,不带 insert,避免与 bundle 层重复):
- id: dsh-heartbeat
config:
prompt: |
【心跳】当前时间 {{time}}。看一眼最近的对话和待办:
有进展说进展、有风险说风险;都没有就一句话带过。
总长不超过 5 句,中文。
为什么不用 settings 面板的通用 namespace?DSH 的 settings wire 只服务一张 硬编码白名单(
WEB_SETTINGS_NAMESPACES),插件无法把自有 namespace 暴露给 浏览器写入。本插件因此在 host 自建了GET/POST /api/heartbeat/config路由,设置面板里的「心跳 Heartbeat」区块直连该路由,写入即热应用。