DeepSeek Harness 插件

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)(英文原文)

跳到安装方式

来源信息

GitHub 仓库
weibaohui/dsh-plugin-scheduled-items
最近更新
2026年8月19日
分类
自动化与任务
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/weibaohui/dsh-plugin-scheduled-items
插件名:dsh-plugin-scheduled-items
作者:weibaohui

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器2 个文件
README.md来源说明 · 只读预览

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