omdsh-dev/dsh-cron1

dsh-cron

Scheduled tasks (cron) for DeepSeek Harness: five-field calendar rules and cross-session durable jobs that fire followup/inject into agent sessions

AI Analysis

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

Package
dsh-cron
Version
0.7.0
License
MIT
Last updated
Aug 16, 2026

Install

$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