DeepSeek Harness plugin

cronjob-dsh-plugin

Machine-level cron jobs for DeepSeek Harness: configure scheduled tasks in the Web settings page; the host fires internally-driven agent requests into a dedicated session, hands-off.

Jump to install

Source facts

Repository
peng-huiyang/cronjob-dsh-plugin
Latest update
Aug 16, 2026
Category
Workflow & Automation
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/peng-huiyang/cronjob-dsh-plugin
Plugin: cronjob-dsh-plugin
Author: peng-huiyang

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.en.mdSource · read only
README language

cronjob-dsh-plugin

中文 | English

Machine-level cron jobs for DeepSeek Harness: configure scheduled tasks directly in the Web settings page; the host fires internally-driven agent requests into a dedicated session — hands-off.

Features

  • Real cron expressions (5/6/7-field, IANA timezone) via croner
  • Web settings page Cron Jobs / 定时任务: create, edit, enable/disable,

delete, fire-now, live next-run preview

  • Machine-level durable job table (ctx.settings namespace,

~/.dsh/settings.yaml)

  • Internally-driven firing: at the due time the host wakes the dedicated

session with the job's prompt ([CRON JOB] user message); the agent executes and replies in that session's transcript

  • Model tools cron_create / cron_list / cron_delete so the agent can

manage its own jobs

  • Host HTTP routes /cronjob/* (list/create/update/toggle/delete/fire) with

same-origin protection on mutations

Architecture

Single package with two halves (same pattern as the dshmarket plugin):

PathHalfRole
src/index.tsHostPlugin entry: store + scheduler + routes + tools wiring
src/store.tsHostDurable job table over the cronjob settings namespace
src/schedule-util.tsHostcroner-based validation + next-occurrence computation
src/scheduler.tsHostWall-clock scheduler (single armed timer, clock re-read on wake)
src/fire.tsHostFires jobs into the dedicated session (whenIdle + runMaintenance + followup)
src/routes.tsHost/cronjob/* HTTP routes for the Web UI
src/tools.tsHostcron_create / cron_list / cron_delete model tools
src/client/ClientSettings section UI (browser bundle via tsdown)

Documentation

  • [使用指南(Chinese)](docs/usage.zh.md) — install, configure, first job, model tools
  • [开发指南(Chinese)](docs/development.zh.md) — structure, build, test, local dev, release
  • [故障排查(Chinese)](docs/troubleshooting.zh.md) — common issues and fixes

Install

dsh plugin --profile web add cronjob-dsh-plugin
# restart dsh web, open Settings -> Cron Jobs

Zero configuration: the dedicated firing session is created in $DSH_HOME/cron-job (usually ~/.dsh/cron-job, auto-created by the plugin), isolated from whatever workspace you work in — no path setup needed. The plugin accounts the session into that directory's workspace row, so it never lands in "Ungrouped" and its row supports ordinary rename.

To override the location or set an initial title, configure the plugin in your profile patch (~/.dsh/profiles/web/cordis.patch.yml):

- id: cronjob
  name: cronjob-dsh-plugin
  config:
    dedicatedSessionCwd: 'D:\DeskTop\harness-test'   # optional override (absolute, existing)
    dedicatedSessionName: 'Cron Jobs'               # optional initial title

Changing dedicatedSessionCwd rotates the session automatically on the next fire — no need to delete the old one.

Development

npm install
npm run typecheck
npm test
npm run build   # host tsc -> lib/, client tsdown -> client/client.js

Known limitations

  • The scheduler lives inside the dsh web process: it stops when the host is

down and recomputes the next run from the current time on restart (missed occurrences are skipped).

  • Each fire injects one user-role message into the dedicated session and

consumes model tokens; the session log grows over time (use the built-in /compact command to compress it).

  • The task text is treated as untrusted content by the firing framing.

License

Apache-2.0