lynx-gt/dsh-subagent-cwd

DeepSeek Harness subagent delegation enhancement

Enhanced subagent delegation tools for DeepSeek Harness with per-call working-directory control: everything in dsh-subagent-tools (per-call model/provider/persona/toolFilter overrides, @preset: references, provider/model composite ids) plus a per-call cwd parameter, shipped with the two small provider patches that make cwd actually work. SubagentStartRequest has no cwd field, so both in-process child-creation paths are patched (foreground one-shot + background continuable — the second is a bundle trap, patch the bundle lib/index.js, not the source-shaped lib/types/continuation.js). Patch v2 makes preset + persona coexist: the per-call persona registers as delegation:role so router-style presets cannot strip it.

Agent Capabilities ★ 3 updated 2026-08-21 ⚠️ needs adapt
View on GitHub ↗

Install

dsh plugin --profile web add github:lynx-gt/dsh-subagent-cwd

Install per README (English): dsh plugin --profile web add github:lynx-gt/dsh-subagent-cwd (npm form documented but package not yet on the public registry as of 2026-08-28 — use github:), then apply the two provider patches (required for cwd): powershell -ExecutionPolicy Bypass -File patches\install.ps1 on Windows or ./patches/install.sh on POSIX. Web sessions also need the preset adapter (install-preset.ps1 / install-preset.sh). Restart dsh --profile web and start a NEW session.

Compatibility

DeepSeek Harness web profile (and headless). Per-call cwd needs the two provider patches; Web sessions need the preset adapter.

Details

Recent updates

subagent delegation + per-call cwd; model/provider/persona/toolFilter overrides; @preset: refs; two provider patches; preset×persona coexistence (patch v2).

FAQ

What does it add over stock subagents?
Everything in dsh-subagent-tools (per-call model/provider/persona/toolFilter overrides, @preset: references) plus a per-call cwd parameter.
Why does cwd need patches?
SubagentStartRequest has no cwd field, and both in-process child-creation paths (foreground and background) must be patched or the background path silently ignores cwd.
Does persona survive router presets?
With patch v2, when preset and persona are both given the persona registers as delegation:role, which router-style presets cannot strip — they coexist.

Alternatives

aaravarr/dsh-subagent-max · shaokeyibb/dsh-plugin-product-subagents · LeslieWylie/dsh-task-relay

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins