dsh-loopx-plugin
loopx-project/loopxLoopX——面向长周期 Agent 的提供商中立、本地优先状态内核与控制平面:在 DeepSeek Harness 执行层之上持久化 Goal、Todo、门禁、证据、配额、恢复与交接状态;插件负责引导安装 CLI 与技能、准入有界的同会话续跑,并为精确绑定的工作循环提供本地 GoalBar。
设置页定时任务:支持准点或 DeepSeek 谷时段执行、单次/每日重复,并持久化任务状态。
为 DeepSeek Harness Web Profile 提供定时任务:支持仅一次执行或标准六字段 Cron 周期,并可选择准点执行或谷时段执行。
when_idle 仅在北京时间高峰 09:00-12:00、14:00-18:00 之外执行;高峰期内自动顺延至下一个谷时段。Daily Feed · {{scheduledAt:YYYY-MM-DD}}。ctx.storageDomain 持久化任务状态。running 再启动 Runner。host_interrupted 任务。{ kind: 'plugin', plugin: 'dsh-plugin-automations' },不伪装成直接人类输入。完整行为契约见 SDD.zh-CN.md。
dsh plugin add(推荐)将插件安装到 Web profile,安装后重启 DSH。
dsh plugin --profile web add github:Sev7een/dsh-plugin-automations
软件包发布到 npm 后使用:
dsh plugin --profile web add dsh-plugin-automations
如果通过 npx 运行 DSH,请使用:
npx @deepseek-ai/dsh plugin --profile web add github:Sev7een/dsh-plugin-automations
检查组合配置并重新启动 Web 应用:
dsh --profile web --dump-config
dsh web
启动后进入 设置 → 定时任务。
git clone https://github.com/Sev7een/dsh-plugin-automations.git
dsh plugin --profile web add ./dsh-plugin-automations
dsh plugin --profile web remove dsh-plugin-automations
| 模式 | 行为 |
|---|---|
on_time 准点执行 | 到期后创建独立 DSH Session 并立即执行。 |
when_idle 空闲执行 | 仅在北京时间谷时段执行;高峰期到期的任务等待到下一个谷时段。 |
| 调度类型 | 行为 |
|---|---|
once 仅一次 | 进入终态后不再执行。 |
cron | 每个 occurrence 进入终态后计算下一次匹配时间;失败的 occurrence 不自动重试。 |
POST /dsh-scheduled-tasks/api/v1/tasks
Content-Type: application/jsonX-DSH-Scheduled-Tasks: 1{ prompt, schedule, mode, sessionTitleTemplate? }GET /dsh-scheduled-tasks/api/v1/taskscurl -X POST http://127.0.0.1:3080/dsh-scheduled-tasks/api/v1/tasks \
-H 'Content-Type: application/json' \
-H 'X-DSH-Scheduled-Tasks: 1' \
-d '{
"prompt": "check project tests",
"schedule": { "type": "cron", "expression": "0 0 8 * * *" },
"mode": "on_time",
"sessionTitleTemplate": "Daily Feed · {{scheduledAt:YYYY-MM-DD}}"
}'
MVP 不提供编辑、删除、暂停、取消、重试或分页接口。
npm install --legacy-peer-deps
npm run check
npm test
npm run build
npm pack --dry-run
当前本地开发需要 --legacy-peer-deps,因为公开的 @deepseek-ai/dsh-storage-domain 仍携带旧版 peer range,而当前 DSH Web bundle 使用更新版本。
MIT