Plugin directory / Developer / dsh-agent-delegate
dsh-agent-delegate
Verified · install-tested on dsh xingyingyuzhui
What it does
Delegation broker for DeepSeek Harness. 委派深度、角色、worktree。
Works — verified, early-stage project
Delegation broker for DeepSeek Harness. 委派深度、角色、worktree。 It installs cleanly and boots without issues in our testing. It's early-stage but functional.
“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.
README
dsh-agent-delegate · 委派 Broker
治理套件 Phase 3:在官方 ctx.subagents 上加一层委派边界。不提供控制面 UI。
- 按父链真实计数委派深度,超过
policy.delegation.maxDepth的subagent调用直接拒绝 - 可点名角色(
role/[research]标签 /role: reviewer提示词)。child = parent ∩ 角色预设;不在delegation.roles里的角色直接拒绝(developer 默认只能派research/reviewer) - 默认最多 4 个未结束的 child / 并行写入任务;超出
delegation.maxChildren拒绝。handoff 默认截到 64KiB - Parent 按 task + generation 收结果;同一任务更新一代之后,旧 child 的
report/ 返回值作废 - child 策略 = parent ∩ child(更紧的赢);写入型 child 的
files.write: all会收到workspace - 仅写入型 child 与后台写入任务分配独立 Git worktree;主会话和前台 bash 继续写项目根。创建时会把父工作区未提交改动和非忽略的未跟踪文件拷进 worktree。结束前把 child 相对种子提交的 diff 写成
~/.dsh/agent-delegate/handoffs/<id>.patch,状态为pending。不会自动 merge。父任务验收后调用delegate_handoff(accept/reject/list)。accept对父仓git apply(必要时--3way);合不上则标conflicted,父树保持原样。 research/reviewer/public(或sandbox.requireEnforcement: full)在 sandbox 报告partial时拒绝文件动作,不降级放行
卸掉本插件后不再建 worktree、不再做深度/衰减拦截,回落到 DSH 原有子代理行为(以及仍装着的 dsh-agent-gate)。
安装
dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-delegate
建议同时安装 dsh-session-permissions 与 dsh-agent-gate。装完重启 dsh web。
本地开发:
dsh plugin --profile web add link:/abs/path/to/dsh-agent-delegate
卸载
dsh plugin --profile web remove dsh-agent-delegate
License
MIT
Install
Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:
dsh plugin add dshbase-catalog Then say "install dsh-agent-delegate for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.
This plugin is GitHub source (not published to npm) — install it straight from the repo:
Web profile:
dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-delegate Headless (CLI) profile:
dsh plugin --profile headless add github:xingyingyuzhui/dsh-agent-delegate Test report
Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.