DSH Plugins
返回列表
⚙️

dsh-report-fix

工作流 更新于 2026.11.01

在终端中运行以下命令:

dsh plugin install JohnnnSinaaa/dsh-report-fix

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 中执行 dsh plugin install JohnnnSinaaa/dsh-report-fix,或按 profile 插件方式添加后从 https://github.com/JohnnnSinaaa/dsh-report-fix 获取 bundle 与配置说明。

插件介绍

在 DSH 里,session_call 的 task_dispatch 本质上是「只投递」:呼叫方最多等约 300 毫秒完成握手,却无从得知被叫方是否已用 task_report 回传结果。多步 Agent 工作流一旦依赖「派活—执行—汇报」闭环,轮次可能在未汇报时就结束,上游无法可靠地进入下一步。

dsh-report-fix 不新增工具、也不改 dsh-call-session 内部逻辑,而是监听宿主已有的 agent/pre-step、tools/post-execute、agent/turn-stopping 三个生命周期钩子:识别入站的 task_dispatch 并登记「欠账」,在成功的 task_report 后清账;若轮次即将结束仍有欠账,则通过 agent.steer 重新打开轮次,促使模型调用 session_call(task_report)。可选的首步提醒、maxNudges 上限与多呼叫方各自欠账等机制,在「必须汇报」与「避免死循环」之间取得平衡。

适合在 profile 里已使用 dsh-call-session、需要被叫会话在 dispatch 驱动轮次中必须完成回执后再结束的场景——例如跨会话编排、任务分派与结果汇总。若你只关心单次对话、从不通过 task_dispatch 派活,则通常用不上本插件。

使用场景

  • 跨会话派活后必须收到 task_report 才能继续上游步骤
  • 被叫 Agent 容易直接作答却忘记 session_call 回传结果
  • 同一轮次内多个 caller 各自 dispatch,需逐一汇报才放行

适合人员

  • 已在 profile 中使用 dsh-call-session 的 DSH 用户
  • 搭建多 Agent 派单与汇报闭环的插件或工作流作者
  • 需要 dispatch 驱动轮次「有回执才结束」的集成开发者