dsh-tick: Scheduling Timed Tasks within DSH Sessions

Introduction

When working with long-running sessions or automated workflows in DeepSeek Harness (DSH), a common need is to “have the model do something later”: for example, checking a build queue a few minutes from now, summarizing the day’s changes at a fixed time, or polling deployment status at regular intervals. Relying on manual memory and manual message sending each time is error-prone and doesn’t lend itself to letting the assistant execute the rhythm on its own.

The DSH ecosystem also offers host-level capabilities such as dsh-schedule, which focus on persistent reminders that can span sessions and wake up cold sessions. But if you simply want to inject a pre-written prompt into the current session at a specified time and have the model continue working — without task state leaking into other sessions — you need an in-session scheduling layer. This is exactly the scenario dsh-tick targets.

What Is This

dsh-tick (maintained by Saretheya) is a web-side plugin for DSH, categorized under workflow / automation. When the configured time arrives, it injects your pre-written prompt into the current session, waking the model to execute it. Task data is stored in the plugin’s own directory — it is not written into custom events in the DSH session log, and it does not occupy the positioning of the official dsh-schedule.

In one sentence: you say once “what to do and when,” and it triggers automatically inside the session at the appointed time, with no need to open another session.

Core Features

Three Timing Modes

Mode Typical Phrasing Behavior
Delay “Check the build queue in 2 minutes” Executes once when the countdown ends
Fixed time “Summarize work at 23:00 today” Executes once at that time
Repeat “Check deployment every 30 minutes” Triggers repeatedly at the interval until paused or deleted

Constraints from the documentation: delay is capped at 30 days (longer values are rejected; use a fixed time instead); there is no upper limit on the repeat period. Duration expressions support s / m / h (e.g. +30m, +2h30m) and also the Chinese words for seconds / minutes / hours; d (days) is not supported — for longer waits use a fixed time or h (e.g. +48h).

Three Management Paths

The same batch of tasks can be managed in the following ways:

  1. The panel above the input box (showDock, enabled by default): view remaining time, pause, edit, and delete;
  2. The /schedule command: create tasks and list them directly in the chat box;
  3. Model-side tools: the assistant can create, query, pause, and delete tasks (subject to configuration such as allowAiCreate).

Injected messages are marked with the plugin’s origin and are visually distinct from user messages in the session; the UI language follows the DSH settings and is independent of the language of the prompt injected to the model (serverPromptLanguage).

Timing and Lifecycle

  • Pause / resume freezes the remaining time: if 4 minutes remain when paused, resuming the next day still waits 4 minutes — it will not trigger immediately just because overnight has passed.
  • When DSH is closed, timing for delay and repeat modes freezes; after reopening, the relevant tasks are mostly already paused and will not suddenly inject while unattended. Fixed-time tasks whose time has already passed while DSH was closed are marked as expired, and clicking play means “execute immediately”.
  • No catch-up runs for missed history: repeat rounds missed while DSH was closed are not executed after reopening DSH.
  • A cross-session summary can be enabled at the bottom of the sidebar (showSidebarSummary, disabled by default), showing the total count of pending / expired tasks; since the session list row has no official slot, the plugin does not provide an inline icon (explained in the README).

Installation and Activation

Requires DSH 0.1.5-rc.2 or later (the README notes that both 0.1.5 and 0.2.0 have been tested). The plugin does not modify settings.yaml, and uninstalling simply removes the plugin directory.

Run in the terminal:

dsh plugin --profile web add dsh-tick

After installation, restart DSH. The current npm package version is 1.0.2, licensed under MIT.

Typical Usage

/schedule Examples

The following commands come from the project README and can be reproduced directly in a session:

/schedule +30m 检查构建队列
/schedule +2h30m 汇总今天的改动
/schedule every 10m 看一眼部署状态
/schedule @2026-09-21T09:00:00+08:00 早会前汇总未完成项
/schedule list

Configuration File

Configuration lives in the plugin’s own directory (it is not written into DSH’s settings.yaml); changes take effect immediately with no restart required. The defaults are conservative and can be raised according to your habits:

{
  "serverPromptLanguage": "en",
  "maxTasksPerSession": 50,
  "maxActivePerSession": 10,
  "maxInjectionsPerMinute": 1,
  "heartbeatMs": 15000,
  "graceMs": 60000,
  "showDock": true,
  "showSidebarSummary": false,
  "allowAiCreate": true
}

serverPromptLanguage can be "en" (default), "zh", or "custom" (custom template). By default, at most 1 injection is allowed per minute (maxInjectionsPerMinute); if the repeat interval is shorter, it will be rate-limited and you need to raise this value accordingly.

Use Cases and Notes

Who it’s for: developers who need delayed reminders, point-in-time summaries, or periodic polling within a single DSH session; scenarios where you want to create tasks via natural language or /schedule and manage them uniformly through the panel or model tools.

Boundary with the official scheduler: dsh-tick handles in-session tasks; the official dsh-schedule is a host-level, cross-session reminder system. Both can be installed simultaneously, but you will be facing two systems, so it’s recommended to understand each one’s positioning before use.

Runtime and security: the plugin runs with the permissions of the current DSH process; it injects prompts into the session and exposes a web management interface and model tools. Before installing, you should read the GitHub source and the MIT license, and confirm that the “three gates” — maxTasksPerSession, allowAiCreate, and others — match your trust boundary.

Known limitations (excerpted from the README): delay and repeat modes rely on DSH staying running to advance in real time; the timing of periodic tasks freezes while DSH is closed; using d to express days is not supported.

Conclusion

dsh-tick brings three kinds of scheduling — “delayed / point-in-time / periodic” — into the current session. Combined with the panel, /schedule, and model tools, it’s ideal for embedding “have the AI do the next step when the time comes” into your workflow without state leaking across sessions.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye