john-walks-slow/dsh-wait-subagent

Adds a wait_subagent tool to DeepSeek Harness: block until a background subagent settles and retrieve its result in the same step.

Registers a wait_subagent tool that blocks until a background continuable subagent settles, then returns its stop reason and closing message in the same call. It fills the gap between run_in_background (which returns a subagentId immediately) and the async settlement notice (which delivers the outcome separately and not on demand). The tool accepts a subagent id, an optional timeout_ms, and an optional label for log clarity, and reports the stop_reason and closing_message on resolution.

Agent Capabilities ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add dsh-wait-subagent

Installs as a Cordis plugin into the web profile; restart is required. A github: form is also documented for source-pin installs: dsh plugin --profile web add github:john-walks-slow/dsh-wait-subagent.

Compatibility

The tool resolves only in-process subagents — those spawned with run_in_background inside the same DSH session. ACP, Codex, Claude Code, and dsh-sdk subagents are created outside the process and cannot be waited on with this tool. Subagents that have already settled before the call return immediately with stop_reason: unknown and a note that the closing message was delivered earlier as a settlement notice. An unknown or foreign subagent id is explicitly rejected with an error naming list_agents as the correct inspection tool. The README cautions against waiting and interrupting in the same agent step.

Details

Alternatives

omdsh-dev/dsh-data-agent · gy-bai/dsh-anchored-subagent · Chang-Tong/dsh-import-agents

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins