Introduction¶
The philosophy of DeepSeek Harness (DSH) is “everything is a plugin,” but the native schedule_* runs within a session and has deliverModelAnswers disabled by default, making scheduled reminders silent. dsh-im handles IM platform integration, session binding, proactive sending, and target management, while this plugin handles scheduling, execution, result collection, and bookkeeping. It adds scheduled tasks to @xmanrui/dsh-im, allowing you to create tasks in chat, run them on a schedule, and receive results back in the same chat.
Plugin Overview¶
- Name: dsh-im-cron
- Maintainer: mashago
- Category: Workflow
- GitHub: https://github.com/mashago/dsh-im-cron
- Directory Page: https://www.skillhub.cn/plugins/mashago/dsh-im-cron
- Stars: 0
It is a DSH plugin that adds scheduled notifications, scripts, and agent tasks to dsh-im, working in tandem with dsh-im to deliver scheduling and results within IM.
Core Features¶
Three Payload Types¶
| Payload | Purpose | Model Invocation |
|---|---|---|
notify |
Send a fixed text message on schedule | No model call |
command |
Execute a script on schedule, push stdout | No model call |
agent |
Run one agent turn on schedule, push the response | 1 model call |
notify / command never touch the model; agent only uses the model at execution time—delivery itself does not depend on the model.
Tools (global im-cron-tools line)¶
| Tool | Purpose |
|---|---|
imcron_remind |
Send a fixed text message on schedule |
imcron_run |
Execute a script on schedule |
imcron_ask |
Run one agent turn on schedule |
imcron_list |
List current chat tasks, next runs, and recent results |
imcron_update |
Update a task (id + schedule/text/notify/maxRuns, etc.) |
imcron_remove |
Remove a task (does not remove delivery targets) |
Routing and Channels¶
Routing is table-driven and follows dsh-im’s normalizeRoute. The default allowChannels covers all five channels:
| Channel | DM | Group | Route Key | Status |
|---|---|---|---|---|
qq |
✅ | ✅ | userOpenId / groupOpenId |
Tested on real device |
feishu |
✅ | — | openId |
Structural |
weixin |
✅ | — | toUserId |
Structural |
dingtalk |
✅ | ✅ | userId / openConversationId |
Structural |
wecom |
✅ | ✅ | chatId |
Structural |
Feishu groups/threads, WeChat groups, and other dsh-im channels (slack, telegram, etc.) are explicitly rejected. Only QQ has been tested on a real device; the others are covered by structural checks and unit tests.
Dependencies and Constraints¶
- Node.js: >= 24.9.0 (aligned with DSH)
- DeepSeek Harness: >= 0.2.2-rc.0 < 0.3.0 (enforced via
engines.dsh) - pnpm: Any recent version (
dsh pluginforwards arguments to pnpm) @xmanrui/dsh-im: >= 5.10.0 (contract validation is based on this version)- Platform: Tested on macOS; expected to work on Linux; Windows static checks only support
.exe/.com(no shell,.sh/.cmd/.batnot supported)
Execution and Delivery¶
agentpayloads run in a dedicated task session, independent of the chat session.- The delivery target is
botId + targetId, decoupled from the session; user’s/newdoes not affect delivery. - Without dsh-im, declared
jobs(including explicit targets) will still run and be logged toruns.jsonl, but delivery status remainspending, handled by the retry and backoff mechanism. - Changing the main line (
im-cron:timezone,scriptDir,activeHours,jobs,caps, etc.) requires restarting DSH; group chat toggles and agent task session settings take effect on the next agent run after being saved on the Plugins page.
Installation and Enablement¶
The following commands are taken verbatim from the README. Do not guess or concatenate them.
# ① Install pnpm (skip if already available)
npm install -g pnpm
# ② Install and configure dsh-im (at least one bot + receive target), and confirm send/receive works
dsh plugin --profile web add @xmanrui/dsh-im
# ③ Install this plugin
dsh plugin --profile web add dsh-im-cron
# Or install from repository
dsh plugin --profile web add github:mashago/dsh-im-cron
# Or local directory/tarball
dsh plugin --profile web add /path/to/dsh-im-cron
# ④ Restart dsh web to load the plugin
Confirm the line has been inserted:
dsh --profile web --dump-config | grep im-cron
The startup log should contain:
[im-cron] delivery=dshIm agent=on jobs=N stateDir=~/.dsh/im-cron
delivery=pending means dsh-im was not detected at startup; it will be re-detected on each use. notify / command will still run, with delivery remaining pending.
Typical Usage¶
The following examples are taken from the README quick start.
| You Say | Payload Created |
|---|---|
| “remind me about the meeting in 1 minute” | notify + at |
| “remind me to write the daily report every morning at 9” | notify + cron |
| “run stock-report.sh in 1 minute and tell me when it’s done” | command + at |
| “run the closing script at 15:30 every day, no notification” | command + cron + notify:never |
| “summarize the financial news at 9 every day” | agent + cron |
| “check the processes every 2 minutes, stop after 3 runs” | agent + every{minute,2} + maxRuns:3 |
For script-type payloads, make sure the script is placed in the script directory first.
Use Cases and Notes¶
Suitable for users who already have a dsh-im configuration and need to periodically execute scripts or agents in IM chat, or who want scheduled reminders and batch execution. The plugin runs with the current DSH process permissions; review the source code and license (MIT) before installing. Ensure it is used under the same DSH instance and the same profile—the plugin locates dsh-im via ctx.get('dshIm').
Summary¶
dsh-im-cron decouples scheduling from delivery, providing dsh-im with scheduled notifications, script execution, and agent task capabilities. Combined with dsh-im’s IM connection and session management, you can create, manage, and receive scheduled task results directly in chat. For more details, see the directory page and the GitHub repository.