DeepSeek Harness plugin

dsh-plugin-scheduled-items

DeepSeek Harness plugin: cron-driven scheduled items. Each item carries a title, a prompt, and a croner expression; executions spawn a fresh agent session in a bound workspace (or the default cwd)

Jump to install

Source facts

Repository
weibaohui/dsh-plugin-scheduled-items
Latest update
Aug 19, 2026
Category
Workflow & Automation
GitHub stars
0
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/weibaohui/dsh-plugin-scheduled-items
Plugin: dsh-plugin-scheduled-items
Author: weibaohui

Check the source files

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

File explorer2 files
README.mdSource · read only

dsh-plugin-scheduled-items

DeepSeek Harness 插件:cron 定时事项。每个事项包含标题、提示词、croner 表达式,可绑定一个工作区;定时或立即执行时,在一个全新的 agent 会话中提交提示词(绑定工作区时会话跑在该工作区目录下并挂到该工作区分组)。带全屏管理界面(列表 + 增删改查 + 立即执行)。

安装

通过 dsh plugin add(推荐,GitHub 或 npm)

dsh plugin --profile web add github:<你的账号>/dsh-plugin-scheduled-items

或发布到 npm 后:

dsh plugin --profile web add dsh-plugin-scheduled-items

dsh plugin 会在 profile 目录转发给 pnpm,并将包调和进 profile 的 bundle 列表(dsh.profile.bundles)。包内 cordis.patch.yml(经 package.jsondsh.bundle.patch 声明)随后把插件行插入宿主组合;dsh.client 声明则让 web 外壳加载 client/bundle.js 作为管理界面。

作为组合插件(持久化,手动)

在你的 profile 的宿主组合(cordis.patch.yml)中添加:

- insert:
    - id: scheduled-items
      name: 'dsh-plugin-scheduled-items'

或不安装包、以相对路径指向本仓库。本插件属于 Host 平面:它读取 Host 的 storageDomainworkspaceRegistryagentsagentDefaultModelwebServer 服务,并注册设置页与全屏管理界面,因此应放在宿主组合中,而不是某个 agent preset 内。

作为动态插件(开发 / 会话级)

code.host 的函数体即 src/index.js 去掉 module.exports 包装;code.client 的函数体即 client/index.js 去掉包装。

功能

  • 事项 CRUD:标题、提示词、cron 表达式、启用开关、绑定工作区。
  • 立即执行 / 定时执行:执行时新建 agent 会话并提交提示词(croner 调度)。
  • 工作区归属:绑定工作区的事项,执行会话 cwd = 工作区路径,且 workspace.attachSession() 挂到该工作区分组。
  • 持久化:走 storage-domain(domain scheduled_items);web 组合可将其路由到 SQLite 后端。
  • 管理界面:侧边栏底部「定时事项」按钮打开全屏管理页;设置页也有同一管理面。

HTTP API

Host 半端在 /scheduled-items/api 注册一个 prefix route:

方法路径body返回
GET/scheduled-items/api{ items }
POST/scheduled-items/api{ title, prompt, cron, enabled, workspaceId? }{ item }
PATCH/scheduled-items/api{ id, ...patch }{ item }
DELETE/scheduled-items/api{ id }{ removed: true }
POST/scheduled-items/api/run{ id }{ item }

开发

npm install
npm run check    # 语法检查两个半端
npm test         # 离线测试套件
npm run build:client   # 从 client/index.js 构建 client/bundle.js

依赖

运行时只依赖普通 npm 包:croner(调度)、zod(记录 schema)。不依赖任何 @deepseek-ai/dsh-* 包——Host 半端通过 ctx.* 运行时服务访问 harness 能力,因此不受 npm 上 dsh 包发布进度影响。

License

MIT