dsh-scheduled-tasks: Cron-Scheduled Agent Prompts in DSH

Preface

In DeepSeek Harness (DSH), a common requirement when building agents is to “automatically execute the same prompt at regular intervals”—for example, daily report summarization, scheduled inspections, or periodic context organization. Relying solely on manually opening sessions or external cron jobs to call APIs can lead to forgotten tasks, entangled session states, or poor result comparisons.

Below is an introduction to the community plugin dsh-scheduled-tasks (npm package name @istarry/dsh-scheduled-tasks): it maintains a task list within the DSH process. When the scheduled time arrives, it binds to a specific Agent preset and prompt, opening a new session for each trigger to execute, while retaining execution records. The maintainer is iStarryDust, and it is categorized as a “Workflow” plugin in the directory.

What is this

In short: It adds a set of scheduled tasks to DSH—each task includes a name, a bound Agent preset, a prompt, a schedule (cron-style), and an enable switch. When the scheduled time arrives, the scheduling engine creates a new session to run the prompt and writes the execution time and result to history.

The plugin is released under the MIT license. The current main package version is 0.1.1 (see the repository’s package.json). The README specifies the tested environment as DSH 0.2.0-rc.2; peer dependencies include @deepseek-ai/cordis, @deepseek-ai/schemastery, etc. See the package.json of each sub-package for details.

Core Functions

Task Model

Each task possesses:

  • Name
  • Bound Agent preset
  • Prompt
  • Schedule (cron expression)
  • Enable switch

Execution Method upon Trigger

Every trigger starts a brand-new session rather than continuing from an old session. Therefore, the context remains clean, making it easier to compare and reproduce across multiple runs.

Execution Records

Each execution logs the time, result, and errors. The number of history entries is retained according to runHistoryLimit, defaulting to 500 entries.

Settings Page

Management is available through the companion UI package in DSH settings:

  • Task list
  • Run history
  • Create / Edit task dialogs

Package Structure

Package Responsibility
@istarry/dsh-scheduled-tasks Scheduling engine: Task storage, triggering, session creation
@istarry/dsh-client-ui-settings-scheduled-tasks Settings page: Task list, run history, edit dialogs

Installing the entry package aggregates the above dependencies; the engine integrates into the DSH plugin system via cordis.patch.yml.

Installation and Activation

Execute the following in an environment where the DSH CLI is installed:

dsh plugin add @istarry/dsh-scheduled-tasks

After installation, restart the DSH service, then create tasks in the settings page and toggle the enable switch.

Typical Usage

The README does not provide a standalone configuration file example; the actual operational path is: Install → Restart → Create new task in Settings Page. You can configure a task following these steps:

  1. Select the Agent preset to use (same as a normal manual session).
  2. Fill in the prompt to execute when the time arrives (make it complete and independently understandable, as it runs in a new session every time).
  3. Fill in the cron schedule (e.g., a common five-segment cron expression for 9 AM on workdays).
  4. Turn on Enable, save, and observe the first trigger in “Run History” to ensure it works correctly.

Upon successful triggering, you should see the corresponding time and result in the history; if it fails, error information will also be recorded in the same entry, facilitating the troubleshooting of prompt or preset issues.

Permissions, Storage, and Scheduling Boundaries

  • Task definitions and execution records are saved under the harness home (~/.dsh).
  • Each trigger creates a new session and consumes model quota; consumption will increase significantly with many tasks or dense schedules.
  • Scheduling is effective only when the DSH process is alive: tasks scheduled during process downtime will not be re-run.

Before installation, it is recommended to review the source code and MIT license of the GitHub repository; the plugin runs with the current DSH process permissions. The prompts in tasks and the selected Agent presets are equivalent to a manual session initiated via the UI.

Use Cases and Notes

Suitable for: Automation requiring fixed schedules and fixed prompts where executions should not pollute each other’s context (e.g., scheduled summaries, scheduled check workflows).

Points to note:

  • It relies on the DSH daemon; it is not suitable for strict SLA scenarios where “the machine must be shut down but tasks still need to run on time.”
  • Schedule and prompt design should be restrained to avoid unnecessary model calls caused by high-frequency tasks.
  • The community directory SkillHub plugin page has no official affiliation with DeepSeek or Hunyuan. Versions and stars are subject to the display at the time on each site (the directory clue star count is 0).

Conclusion

dsh-scheduled-tasks incorporates “Agent preset + prompt + cron” into a DSH plugin, executing via new sessions and leaving a trail. It is suitable for lightweight scheduled workflows within the Harness ecosystem. For further information, visit the plugin directory page and the repository:

  • Directory Page: https://www.skillhub.cn/plugins/iStarryDust/dsh-scheduled-tasks
  • GitHub: https://github.com/iStarryDust/dsh-scheduled-tasks
羽毛球分组比赛记分
小程序二维码

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

Xiaoye