Wang-Lin-Chang/dsh-schedule
Wang-Lin-Chang★ 0TypeScriptLast synced: 2026-08-16
Persistent scheduler for DeepSeek Harness: cross-restart reminders + scheduled jobs with dual remind/job actions, built on schedule-core. Every claim carries an experiment number.
README excerpt
dsh-schedule Part of the DSH plugin suite — six Apache-2.0 plugins for DeepSeek Harness. · DSH 插件套件之一:六个 Apache-2.0 插件。 Persistent scheduler for DeepSeek Harness: reminders and scheduled jobs that survive session restarts — SQLite archive, cross-session lease claiming, dual remind/job actions, full clock discipline. Built on schedule-core. Every claim carries an experiment number. 给 DeepSeek Harness 的持久调度: 跨会话跨重启存活 的提醒与定时任务——SQLite 档案馆、跨会话租约认领、remind/job 双模、完整时钟纪律。基于 schedule-core。每个能力声明都带实验编号。 为什么存在 / Why this exists 官方 dsh-schedule 是 会话内 提醒器:状态存在会话事件日志里,会话一死,调度跟着死。本插件把调度状态搬进 SQLite 档案馆: 维度 官方 dsh-schedule dsh-schedule 状态存放 会话事件日志(会话死调度死) SQLite 档案馆 + append-only 事件日志(跨会话) 到期产物 [SCHEDULE REMINDER] follow-up 双模:remind(兼容)/ job(定时执行命令,落任务档案) 派发主体 唯一 live owner 多会话租约认领(原子抢占 + 60s 租约过期重认领) 时间纪律 RFC3339 / IANA / DST 全盘继承,一字不改 跨重启 无 冷启动租约释放 + 到期翻转统一 sweep(EXP-1) 你能得到什么 / What you get - 跨重启调度 ——重启后 dispatcher 自动认领到期记录并派发(真机闭环:离线写入 → 重启 → 自动派发 → 任务归档 completed)。 - 定时任务自动归档 —— action: 'job' 到点 spawn 可恢复执行任务(detach-runner 托管 + exit 协议 + pid 收养),输出并入 jobs 档案,任何会话可读。 - 定时提醒 —— action: 'remind' 到点给创建会话发 [SCHEDULE REMINDER] follow-up;会话不 live 时保持 overdue 下周期重试(不丢提醒)。 - 多会话安全 ——单条条件 UPDATE 的租约抢占…
View full README on GitHub →