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多版本依赖范围,安装成功率高。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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

English

DSH 跨会话任务接力板插件 —— 基于持久队列的跨会话/子agent 任务接力 + 交接摘要。

License

为什么

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 →

← 上一个 Prev dsh-hiboard-push 下一个 Next dsh-usage-plugin →