dsh-courier
已验证 · 实测可装 haifeiWu
功能简介
DSH plugin: cross-session messaging with reliable delivery and role addressing (coding/review loop)
可用 — 实测通过,早期项目
DSH plugin: cross-session messaging with reliable delivery and role addressing (coding/review loop) 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-courier
dsh-courier is a DSH plugin for cross-session messaging: reliable message delivery and role addressing between multiple sessions in the same host process, powering the "coding ↔ review" workflow loop.
courier_send— wakes an online target session immediately (agent.followup); offline targets get persistent mailbox delivery (default~/.dsh/courier/mailbox.jsonl), auto-delivered on session resumecourier_register/courier_list— role ↔ session mapping persisted in~/.dsh/courier/roles.json(or statically seeded via config)- Review ledger at
.pi/review/ledger.md: issues tracked as R1..Rn withopen → fixed → verifiedstates (reopened if re-review fails)
以下为中文文档 / Chinese documentation below:
DSH 跨会话通信插件:为同一宿主进程内的多个会话提供可靠消息投递与角色寻址,
支撑"编码 ↔ 评审"循环工作流。
安装
- 安装进 web profile:
cd ~/.dsh/profiles/web && pnpm add file:/Users/chenzhiyun/work/opensource/dsh-courier - 在
~/.dsh/profiles/web/package.json的dsh.profile.bundles追加"dsh-courier" - 重启
dsh web - 验证:
dsh web --dump-config | grep -A4 "id: courier"
使用
- 打开两个会话(同一仓库 cwd)
- 会话 A 说:用 courier_register 把本会话注册为 coder
- 会话 B 说:用 courier_register 把本会话注册为 reviewer
- 会话 A 说:实现 X,完成后用 courier_send 通知 reviewer 评审
- 双方按注入的角色协议循环,直到 reviewer 发出 APPROVED
协议要点
- courier_send:目标在线立即唤醒(agent.followup);不在线进入持久化信箱(默认 ~/.dsh/courier/mailbox.jsonl),会话恢复时自动补投
- courier_register / courier_list:角色↔会话映射持久化在 ~/.dsh/courier/roles.json
- ledger:.pi/review/ledger.md,问题项 R1..Rn,状态 open → fixed → verified(复核不过 reopened)
- 角色可静态种子(配置 roles)或运行时注册(courier_register)
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-courier」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:haifeiWu/dsh-courier Headless(CLI)profile:
dsh plugin --profile headless add github:haifeiWu/dsh-courier 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。