DeepSeek Harness Plugin

ltmroberthk915/dsh-session-telecom

Stars ★ 1 Downloads (30d) 2,007 Category Sessions & Messages Added 2026-10-16 npm dsh-session-telecom

Call between DSH sessions in different working directories or projects: message any session (next-step delivery or a new turn), end a blocking tool call on request, and read transcripts and usage without waking the target. Resume the initiating chat after a Windows Desktop restart, with confirmation when other chats are active.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-session-telecom

# from a prebuilt release tarball

dsh plugin --profile web add -w "https://github.com/ltmroberthk915/dsh-session-telecom/releases/download/v1.5.0/dsh-session-telecom-1.5.0.tgz"

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:ltmroberthk915/dsh-session-telecom

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

This plugin publishes its README in Chinese only.

你的前端会话在 A 目录,后端会话在 B 目录。现在它们可以像同一个团队一样互发消息、来回多轮。


📂 为什么需要它

DSH 的每个会话都属于各自的 workspace / cwd;宿主内置的 send_message 只覆盖有归属关系的会话——父子 agent、或同一队 teammates。

两个不同目录、不同项目的独立会话之间,模型没有可用的通道:看不到对方的 session ID,也没法给对方发消息。

本插件补的就是这条缝:按 session ID 寻址,任意两条会话直接对话——cwd 不同、项目不同,都能像内置通话一样收发。

✨ 它能做什么

  • 📂 跨目录 / 跨项目通话 —— 项目 A 的会话 ↔ 项目 B 的会话,A→B→A→B 来回多轮;不用把上下文搬来搬去,也不用人工复制消息。
  • 🗣 与内置 send_message 同一条规则 —— 目标正在运行 → 消息在它的下一个 step 领取;目标空闲 → 直接为它开一轮新 turn;平等会话,没有谁是谁的爸爸。
  • ⚡ 卡在长工具里也能立刻送达 —— 目标正跑着 sleep / 构建 / 脚本?一条 wake:"tool" 就结束它当前那一次工具调用(工具收到诚实的 abort),消息下一秒进入对方上下文。默认不打断,什么时候下手由发送方决定。
  • 👀 只读查看,不吵醒对方 —— 会话清单(标题 / cwd / 最近活动 / 在线回答摘要 / token 与缓存命中)+ 只读 transcript(summary / tail / raw)。不唤醒目标、不占它的上下文。
  • 💬 回信不迷路 —— expectReply 自动附上可直接复制的回信通道,多轮对话也知道该回给谁。
  • 🧹 不给菜单添乱 —— 右键菜单里只留一行「发送消息到会话…」;「复制会话 ID」交给宿主官方菜单。

🎬 30 秒上手

dsh plugin --profile desktop add dsh-session-telecom

装好后重启宿主。之后:

  • 右键任意会话 → 发送消息到会话…(带会话清单与用量)
  • 或让模型直接调用工具 session_telecom
{"action":"list","limit":20}
{"action":"read","sessionId":"目标会话完整 ID","last":5,"mode":"summary"}
{"action":"send","targetSessionId":"目标会话完整 ID","text":"请继续这项工作"}
{"action":"send","targetSessionId":"目标会话完整 ID","text":"先把结论给我","wake":"tool"}

典型场景:前端会话 ↔ 后端会话联调;调研会话 ↔ 实现会话交接;A 项目的 agent 把结论直接甩给 B 项目的 agent——跨目录、跨项目,一条工具调用搞定。

重启桌面后继续原会话

在 Windows 打包版 DSH Desktop 中,凡是当前任务需要重启桌面再继续,模型都可以调用 session_telecom_restart,用 text 写下回来后要做的第一步。升级、配置变更和多轮测试均可使用。

{"text":"检查桌面加载的插件版本,然后重跑刚才失败的测试,记录实际结果。"}

宿主的 plugin_manager 在实际变更后返回 application: "restart-required" 时,插件会自动调用同一工具。其他工具可以通过输出定义的 presentationMeta 返回 { dshRestart: { target: "desktop", resume: true, text: "下一步" } }。在受支持的 Shell 工具中,指向当前桌面的简单、字面量“停止进程再启动”命令也会被接管。单独终止当前进程或混有其他操作的已识别命令会被拦截并提示调用专用工具。外部脚本、终端交互和未声明的工具应先使用专用工具保存续接点。

其他会话正在工作时,桌面会弹出确认框,列出受影响的会话。默认聚焦「本次不重启」。选择「仍然重启」只对本次列出的会话生效。关闭、按 Esc、两分钟未回答或弹窗不可用都会取消。要更改默认按钮,可在 设置 → 通用 → 有其他活动会话时重启 DSH 中选择。每次冲突都需要用户作答。

活动包括正在生成回复、等待下一步或下一轮的消息,以及会话拥有的运行中或停止中的后台作业。发起请求的会话会先收尾,未归属会话的后台作业也会等到结束。插件在退出前再次检查新增的活动会话,保存发起会话后,由进程外助手通过 Windows Restart Manager 请求退出。助手会等旧桌面和 Host 都退出,再按原启动参数拉起桌面。

新 Host 核对原会话、分组、模型和推理等级后,用同一个请求 ID 开启下一轮。恢复消息进入原会话并落盘后,插件清除待办。每个桌面 profile 同时受理一次重启。

交接记录位于当前桌面 profile 的 state/dsh-session-telecom/。临时故障会以同一请求 ID 重试,持续失败时保留 pending.json 供下次加载恢复。会话已删除或模型选择改变时,原因和交接文字保存在 last-failure.json。外部助手遇到退出或启动错误时写入 supervisor-error.txt。

🧠 和官方 send_message 的关系

不是替代,是补位:

  • 有归属关系的会话(子代理 / 同队)→ 继续用官方 send_message;
  • 互相独立、cwd 不同的会话 → 用本插件,规则与官方一致(运行中下一步、空闲开新轮、多轮平等)。

它补得也克制:只用宿主公开服务,不安装第二份 DSH 内核;投递走宿主官方 sessionController.prompt 通道,工具级唤醒复用宿主官方 tools/execute 中间件——宿主升级不带着插件一起翻车。

🛡 边界与安全

  • 仅限同一宿主可见的会话(不支持跨主机远程通话);子代理 / teammate 会话由内核统一拒收(session/agent-busy),不越界;
  • wake:"tool" 只结束工具调用:不中止整轮、不丢 inbox、不伪造结果;目标模型看到真实的 tool call aborted,是否重试由它决定;
  • 拿不到目标 inbox 投影时绝不打断(宁可晚到也不误杀);目标空闲 / 冷会话 / 自己发给自己时不登记;
  • 投递失败返回结构化错误,不自动重试、不重复投递;
  • 会话之间是平等的,插件不会替任何一方做决定。

🧪 兼容与开发

  • DSH 0.2.x(本机实测 0.2.2-rc.1,Windows / desktop profile)
  • 桌面重启与原会话续接在 Windows 打包版 DSH Desktop 0.2.2-rc.5 上验收。
  • 运行 npm ci 和 npm test 可执行回归测试及内核契约对照。
  • 构建客户端:npm run build:client

📝 更新日志

  • 1.5.0 将桌面重启续接扩展到任意任务,增加活动会话确认弹窗、按桌面 profile 保存的默认按钮,以及结构化重启请求与 Shell 拦截。
  • 1.4.0 增加 session_telecom_restart,支持外部拉起 Windows 桌面并在发起会话自动继续验收。
  • 1.3.2 —— 文案更新:强调跨目录 / 跨项目的会话内置通话;无代码变更。
  • 1.3.1 —— 移除「复制会话 ID」右键菜单行(宿主官方菜单已自带);客户端减重。
  • 1.3.0 —— 新增 wake:"tool" 工具级唤醒:目标卡在长工具里也能立刻送达。
  • 1.2.0 —— 默认投递方式改为 steer:运行中下一步领取、空闲直接开新轮,不再排到下一轮。
  • 1.1.0 —— 新增 read / peek 只读查看与 expectReply 回信通道。
  • 1.0.0 —— 首个公开版本:会话清单、跨会话投递、用量展示。

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.