DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-subagent-idle-delivery

M

dsh-subagent-idle-delivery

Manifest valid

DSH plugin: hold busy-parent subagent notices, deliver as fresh turns when idle (hold-and-release)

hasBundlePatch

@momojie-s/dsh-subagent-idle-delivery

后台子 agent 的完成通知与主动汇报,在父会话忙碌时先扣留,等父会话完全空闲后作为新对话回合投递——不打断正在进行的工作,不劫持模型注意力。

环境要求

  • DSH >= 0.1.0-rc.7(已验证至 0.1.5-rc.1;依赖 agent/inbox/spliced 事件、Agent.inbox.remove()Agent.whenIdle()/followup()/inject()
  • 会用后台 continuable 子 agent 的部署(内置 subagentbackgroundMode: continuableschedspawn 等都受益)
  • 0.1.2-rc.1 起子 agent 的对话回复改走 send_messageagent-message kind),取代了旧的 report 工具——本插件 >= 0.1.1 默认拦截该类型

用法

挂载后无需任何操作。生效范围:

到达时机行为
父会话空闲时原生行为(立即开新回合处理)——不拦截
父会话忙碌时(模型输出/工具执行中)扣留:消息从收件箱取出暂存,不再混进下一步输入,界面也不再闪排队预览;当前回合正常收尾后,暂存消息作为新回合投递
扣留超过放水阀时限仍未空闲以"排队到当前回合之后"的方式释放(不穿插进进行中的回合,只排在它后面)

拦截的消息类型默认三类:subagent-settled(后台子 agent 结算通知)、subagent-report(旧版 report 工具汇报,DSH >= 0.1.2-rc.1 已删除该工具、此类消息不再产生,保留以兼容旧部署)与 agent-message(子 agent send_message 回复,rc.1 steer 统一后取代 subagent-report 成为回复载体)。用户消息、审批通知等一律不碰。

安装

dsh plugin --profile web add github:Momojie-s/dsh-subagent-idle-delivery
# 首次按 pnpm 提示在 profile 的 pnpm-workspace.yaml 加 allowBuilds 授权构建

本仓开发机:dsh plugin --profile web add <本目录路径>。重启 DSH 生效。

配置

patch config 字段:

字段类型默认说明
heldKindsstring[]['subagent-settled', 'subagent-report', 'agent-message']拦截的 source.kind 列表。扩展前先确认目标类型的全部来源(如 plugin 包含审批/任务完成通知,加进去会连带拦掉)
maxHoldMsnumber600000放水阀:扣留超过该毫秒数仍未空闲则以排队方式释放;0 = 严格扣留到空闲(连续驱动的 goal 会话可能长期不空闲,慎用 0)

验证

verbose 日志出现激活行即挂载成功:

dsh-subagent-idle-delivery: active (kinds [subagent-settled, subagent-report, agent-message], valve 600000ms)

全链路验证:让模型起一个后台子 agent(run_in_background),同时父会话继续干活;子 agent 完成时日志出现 holding N notice(s) ... until idle,而界面出现子 agent 消息;父会话当前工作完整交付、回合结束后,子 agent 汇报才作为新回合出现(日志 released ... (idle))。


设计取舍与机制详见 docs/design/overview.md

Comments

Loading…

Similar plugins

dsh-subagent-steer

by Momojie-S

DSH plugin: steer_subagent - insert a new instruction into a running background subagent's current turn (step-boundary steering) or hard-restart its turn; send_message queueing stays the default

Manifest valid

0

MIT

TypeScript

Sep 5, 2026

dsh plugin --profile web add @momojie-s/dsh-subagent-steer

by Dawn388887

DSH plugin: desktop toast + remote browser notifications when an agent finishes or errors

Terminal & ClientsManifest valid

0

381/wk

MIT

JavaScript

Sep 3, 2026

dsh plugin --profile web add dsh-notify

by weibaohui

DeepSeek Harness plugin: cron-driven scheduled items with a full-page management UI. Each item carries a title, a prompt, and a croner expression; executions spawn a fresh agent session in a bound wor

Manifest valid

0

JavaScript

Aug 19, 2026

dsh plugin --profile web add dsh-plugin-scheduled-items

by rizkirmdhnnn

DSH plugin: model-facing notify tool for DeepSeek Harness — send notifications to ntfy or generic webhooks when an agent task finishes.

Manifest valid

0

MIT

TypeScript

Aug 14, 2026

dsh plugin --profile web add dsh-tool-notify

by Frog755

DSH client plugin: auto-sends 「继续」 when a turn is interrupted/errored/overlong. No model/provider switching. Ships with a settings card.

Sessions & MessagesTerminal & ClientsDevelopment & InfrastructureManifest valid

3

102/wk

MIT

JavaScript

Sep 10, 2026

dsh plugin --profile web add @frog755/dsh-client-auto-retry

by aaravarr

DeepSeek Harness (DSH) plugin — a subagent_with_model tool plus a live multi-panel subagent viewer.

Terminal & ClientsManifest valid

3

62/wk

MIT

JavaScript

Aug 20, 2026

dsh plugin --profile web add @aaravarr/dsh-subagent-max