LeslieWylie/dsh-task-relay
DSH跨会话任务接力板:task_push/list/claim/done + handoff_write/read
Project Overview项目介绍
dsh-task-relay is a purpose-built plugin for DeepSeek Harness (DSH) that adds persistent cross-session and multi-agent task handoff capabilities to DSH. DSH’s default design treats each session as an independent unit of work, with no built-in way to share task context between different sessions or sub-agents, and this plugin fills that gap. To install the plugin, users can run a simple DSH CLI command targeting the GitHub repository, or manually add an entry for the plugin to their cordis.yml configuration file. The plugin registers 7 different tools to interact with the shared task queue and handoff summary system.
This plugin is designed for DSH users who need to split large development tasks across multiple sessions or delegate work to sub-agents. A common cross-session workflow starts with the user pushing a new task with a title, priority, and tags to the shared queue from their current session. When they open a new session later, they can query the queue for open, high-priority tasks, claim the task they want to work on, and mark it as done once they finish the work with a result summary. They can also write handoff summaries at the end of a session and read them when starting a new session to stay updated on prior progress.
The plugin is released under the open-source MIT license, and all task and handoff data is stored locally on the user’s machine, by default at $HOME/.dsh/task-relay/queue.json. It uses atomic write operations to prevent data corruption, and supports custom storage paths via plugin configuration. The plugin runs entirely locally, does not make any external network calls, and does not execute external commands. It includes input validation for all user-provided data, enforces session ownership checks for task operations, and sets directory permissions to 700 to keep user data secure.
这是一款专为DeepSeek Harness(DSH)开发的原生插件,实现了基于持久化共享队列的跨会话、多Agent任务接力功能。它填补了DSH默认会话生命周期独立、不同会话无法共享工作上下文的空白,支持任意会话、子Agent向共享队列投递任务、认领并完成开放任务,还支持记录和读取会话交接摘要。可通过DSH CLI命令安装,也可手动在cordis.yml中添加配置条目完成安装。
该插件面向需要在DSH中拆分大任务给不同会话或子Agent处理的开发用户。典型工作流程为:在当前会话推送待处理任务到共享队列,后续打开新会话或启动子Agent后,先查询所有开放的高优先级任务,认领需要处理的任务,完成后标记任务并记录处理结果。还可以在会话结束时写入交接摘要,新会话启动后读取之前的工作进展。
该插件采用MIT开源许可,所有任务和交接数据默认存储在用户主目录下的~/.dsh/task-relay/目录,采用原子写入防止数据损坏,也支持自定义存储路径。插件本身纯本地运行,不联网也不执行外部命令,对各类输入做了长度校验和归属校验,目录权限设为700保证数据安全,同时适配了DSH多版本依赖范围,安装成功率高。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-task-relay(LeslieWylie/dsh-task-relay)
仓库:https://github.com/LeslieWylie/dsh-task-relay
本站详情页:https://www.yhbd.top/plugins/lesliewylie-dsh-task-relay/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-18 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:LeslieWylie/dsh-task-relay
把 LeslieWylie/dsh-task-relay 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
📋 dsh-task-relay
DSH 跨会话任务接力板插件 —— 基于持久队列的跨会话/子agent 任务接力 + 交接摘要。
为什么
DSH 的会话生命周期是独立的:会话 A 做完的工作,会话 B 默认不知道。dsh-task-relay 填补了这个空白——它提供一个跨会话共享任务队列,任何会话(包括子 agent)都可以:
- 投递任务给未来的自己 / 其他会话 / 子 agent
- 认领和完成开放任务
- 记录会话交接摘要,供后续会话查看
工具一览
| 工具 | 能力 | 描述 |
|---|---|---|
task_push |
推送任务 | 投递新任务到共享队列,指定标题/描述/优先级/标签 |
task_list |
查询任务 | 按状态/优先级/标签筛选,返回降序列表 |
task_claim |
认领任务 | 认领一个开放任务,标记为 claimed |
task_done |
完成任务 | 标记任务为已完成,记录结果 |
task_cancel |
取消任务 | open 则删除,claimed 则退回 open |
handoff_write |
写交接摘要 | 记录当前会话的工作进展和待办事项 |
handoff_read |
读交接摘要 | 按会话 ID 或最近 N 条读取 |
安装
# 安装到 web profile
dsh plugin --profile web add github:LeslieWylie/dsh-task-relay
# 安装到 headless profile
dsh plugin --profile headless add github:LeslieWylie/dsh-task-relay
或者在 cordis.yml 中追加:
- id: task-relay
name: 'dsh-task-relay'
使用示例
跨会话任务接力
会话 A:推送一条任务
task_push title="修复登录页 Bug" priority="high" tags=["bug","frontend"]
→ { "id": "T1723647600000-1", "title": "修复登录页 Bug", "status": "open", ... }
会话 B:查看并认领
task_list status="open" priority="high"
→ 共 1 条任务,显示 1 条
task_claim id="T1723647600000-1"
→ { "id": "T1723647600000-1", "status": "claimed", "claimedBy": "session-b", ... }
会话 B:完成后通知
task_done id="T1723647600000-1" result="已修复,commit abc123"
→ { "id": "T1723647600000-1", "status": "done", "result": "已修复,commit abc123", ... }
会话交接
会话结束时:
handoff_write summary="完成了功能 A 的开发,剩余功能 B 和 C 待做。功能 B 的前端组件已搭好框架,后端 API 需要从 session-x 的交接中获取接口文档。"
→ { "sessionId": "session-a", "summary": "...", "openTasks": 2, ... }
新会话启动时:
handoff_read
→ 共 3 条交接摘要,显示最近 5 条
数据存储
所有数据存储在 $HOME/.dsh/task-relay/queue.json,使用原子写入(temp file + rename)防止数据损坏。
改用别的目录,在 bundle 行加 config.root:
- id: task-relay
name: 'dsh-task-relay'
config:
root: '~/.dsh/task-relay-staging'
| 配置项 | 默认值 | 说明 |
|---|---|---|
root |
$HOME/.dsh/task-relay |
队列文件所在目录。不同 profile 指向不同目录即可各自独立。 |
架构
dsh-task-relay/
├── src/
│ ├── index.ts # 插件入口:注册 7 个工具
│ ├── store.ts # 持久化存储层(JSON 文件 + 原子写入)
│ ├── tools.ts # 工具定义(defineTool)
│ ├── types.ts # 类型定义
│ └── invariant.ts # 输入验证
├── tests/
│ ├── store.spec.ts # 存储层单元测试(18 个)
│ └── tools.spec.ts # 工具注册与执行测试(8 个)
├── cordis.patch.yml # DSH bundle patch
├── LICENSE # MIT
├── README.md # 中文文档
├── README.en.md # English docs
└── package.json
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
huxint/dsh-team
hanxuanliang/dsh-chaos
loopx-project/loopx
omdsh-dev/DSH-better-sidebar