dsh-subagent-idle-delivery
Run the following command in DeepSeek Harness:
dsh plugin install Momojie-S/dsh-subagent-idle-delivery
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install Momojie-S/dsh-subagent-idle-delivery in DeepSeek Harness to install; the source is available at https://github.com/Momojie-S/dsh-subagent-idle-delivery .
About this plugin
Background subagents finish their work, settle, and file reports, but the parent session is often still busy: the model is mid-output, tools are mid-execution. Dropping a subagent notice into the inbox at that moment pollutes the next input step, hijacks model attention, and derails whatever is in flight. dsh-subagent-idle-delivery fixes this timing mismatch by holding such notices until the parent session is fully idle, then delivering them as a fresh conversation turn--no interruption, no interleaving, no attention theft.
Under the hood, the plugin intercepts only two message kinds: subagent-settled (settlement notices) and subagent-report (proactive reports). User messages, steering interjections, and approval notifications are never touched. Held messages are pulled from the inbox and parked; the UI stops flashing queue previews. Once the current turn completes normally, the parked messages arrive as a new turn. If a hold exceeds the maxHoldMs release valve and the session is still busy, messages are released as a queue appended after the current turn, never spliced into an in-flight one.
This plugin is a drop-in fit for deployments that lean heavily on background continuable subagents: built-in subagent, subagent_model with backgroundMode enabled, schedspawn, and similar workflows all benefit immediately. No configuration is required after mounting, and the only requirement is DSH >= 0.1.0-rc.7, keeping existing workflows completely untouched.
Use Cases
- A background subagent settles while the parent session is mid-tool-call; the notice is held until idle
- Multiple continuable subagents finish in parallel; reports are delivered as sequential new turns once the parent is free
- In long-running goal sessions, the release valve times out and queues the release instead of holding indefinitely
Best For
- Multi-agent deployments that use background continuable subagents
- Workflow teams scheduling tasks via built-in subagent or schedspawn
- Sessions where the parent stays busy for long stretches and notifications would break focus
Related Plugins
A method pack that makes AI coding agents plan against your real baseline, prove completion with fresh evidence, and reduce reworks and unsafe changes.
Turns the DeepSeek Harness session into a captain that builds a durable sub-agent team, splits goals into dependency-aware tasks, and coordinates work via direct messages and a live Web UI.
Gives coding agents design judgment, letting Claude Code, Cursor, and 70+ agents generate and iterate high-quality UI, presentations, and graphics right from the terminal.
Run the Pi ecosystem's plugins on DeepSeek Harness, unmodified, via a compatibility layer that implements Pi's public extension ABI on DSH's native services.