DeepSeek Harness plugin

dsh-agent-delegate

Delegation broker for DeepSeek Harness. 真实委派深度、角色衰减、并发预算、陈旧结果丢弃、写入型 child / 并行任务的 Git worktree,以及 sandbox partial 拒绝。

Jump to install

Source facts

Repository
xingyingyuzhui/dsh-agent-delegate
Latest update
Aug 19, 2026
Category
Workflow & Automation
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/xingyingyuzhui/dsh-agent-delegate
Plugin: dsh-agent-delegate
Author: xingyingyuzhui

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-agent-delegate · 委派 Broker

治理套件 Phase 3:在官方 ctx.subagents 上加一层委派边界。不提供控制面 UI。

  • 按父链真实计数委派深度,超过 policy.delegation.maxDepthsubagent 调用直接拒绝
  • 可点名角色(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_handoffaccept / 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-permissionsdsh-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