omdsh-dev/dsh-cron1

dsh-cron

DeepSeek Harness 的定时任务插件,支持五分段 Cron 规则和跨会话持久化作业,可自动向 Agent 会话注入后续指令。

AI 分析

核心用途是实现 Agent 任务的自动化定时执行(如每日汇报、定时监控)。适合需要大模型执行周期性、后台任务的用户。

包名
dsh-cron
版本
0.7.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:omdsh-dev/dsh-cron

Usage

Model-facing tools, registered globally in every agent:

  • cron_add — a prompt plus exactly one selector: cron (five fields, optional time_zone) or at (one-shot RFC 3339 with offset). Returns the job with its next three fire times; an identical active job is reused, not duplicated.
  • cron_list — every job with schedule, state, next fire time, and last run outcome.
  • cron_update — pause or resume.
  • cron_remove — remove by id.

The same store from the human side:

/cron list
/cron add 0 9 * * 1-5 Summarize overnight CI results
/cron add tz=Asia/Shanghai 0 9 * * 1-5 Prepare the morning standup
/cron add-at 2026-08-20T09:00:00+08:00 Prepare the release checklist
/cron pause cron-3
/cron resume cron-3
/cron remove cron-3

In the web profile, a ⏰ Cron action in the sidebar footer opens a panel with every job, its last run, and Run now / Pause / Delete actions, backed by a loopback /cron RPC channel. Other plugins can drive the store through the provided cron service.

Configuration

KeyDefaultMeaning
dataDirHarness-home cron directoryDirectory holding jobs.json (atomic writes; a corrupt file is quarantined aside)
defaultTimeZonehost local zoneIANA zone for schedules that omit one
maxJobs64Maximum number of active jobs
minIntervalMinutes1Minimum gap between two occurrences of one recurring job
coldWakefalseResume a due job's cold creating session so the task fires with no live session
busyDeliveryfollowupBusy-target delivery: followup queues the task as the next turn; inject rides the running turn as context