DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Subagent Library — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-subagent-library

Subagent Library

Named subagent library for DeepSeek Harness: a settings-driven roster of role subagents (model + persona + tool filter), exposed to every session through the list_subagents and delegate tools, a /subagent command, and a Settings page.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-subagent-library@0.2.8
READMECompatibilityVersions
设置页「子代理库」卡片:可视化编辑名册条目命令面板里的 /subagent 命令/subagent 输出:具名子代理名册一览

Compatibility and provenance

Subagent Library is published as dsh-subagent-library and currently resolves to version 0.2.8. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/20/2026

Versions

0.2.8stable
9/9/2026
0.2.7stable
9/9/2026
0.2.6stable
9/6/2026
Show 5 more versionsCollapse versions
0.2.5stable
8/28/2026
0.2.4stable
8/25/2026
0.2.3stable
8/24/2026
0.2.2stable
8/22/2026
0.2.0stable
8/22/2026

Related plugins

Loading related plugins…

Latest
0.2.8
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
886 kB
Files
12
Surface
web
License
MIT
Source
npm
GitHub
★ 4
Weekly downloads
136
Security scan
✓ v0.2.8 scan passed
Last push
9/9/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in agents-orchestration.

Headless@deepseek-ai/dsh-headlessThe dsh one-shot bundle: a direct core Agent/Session runner over dsh-base with no Host, HTTP, or browser layerExperimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profileExperimental Web profile layer for Agent Teams Remote and UI pluginsSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocolSubagent Claude Code@deepseek-ai/dsh-subagent-claude-codeOne-shot Claude Code subagent provider over the official Agent SDK

README

dsh-subagent-library

中文 | English

dsh-subagent-library — DeepSeek Harness 具名子代理库插件

English: dsh-subagent-library is a named subagent roster plugin for the DeepSeek Harness Web GUI — manage role entries (model / persona / tool filter / depth / background mode) from a settings page, hot-reloaded, then let any conversation pick one with list_subagents and dispatch work with delegate. See README.en.md for the full English version.

简介

DeepSeek Harness 的具名子代理库插件:把常用角色(代码审查、红队、多模态理解……)配成一份持久化的具名子代理名册(模型 + persona + 工具过滤),之后只需告诉主会话 agent「用 xxx 做这件事」——模型自己通过两个工具完成选人和派活:

  • list_subagents — 列出名册条目(id / 角色描述 / 模型),模型据此挑选;
  • delegate — 按 library_id 派活:前台等待、后台 one-shot 任务、或 continuable 可续聊子代理(按条目配置)。

任何会话(任意 agent preset)直接可用,不需要 slash 命令;/subagent 命令只是给人类在命令面板里快速查看名册用的。

新增条目也不用手写 YAML:直接让主会话 agent 帮你配(它编辑 $DSH_HOME/settings.yaml,热生效),或在设置页里可视化编辑。

与官方能力的区分:官方 subagent 工具是临时派活(每次现场描述任务),官方 list_agents 列的是正在运行的子代实例;本插件维护的是持久化的具名角色名册(设置页可视化编辑、热生效),模型用 list_subagents 选人、delegate 按 id 派活。

界面

设置页「子代理库」卡片:可视化编辑名册条目
设置页「子代理库」卡片:可视化增删改条目(模型 / 传输层 / 深度 / 禁用工具 / persona)

命令面板里的 /subagent 命令
/subagent 命令(快速查看子代理库名册)

/subagent 输出:具名子代理名册一览
名册输出示例:每个条目一句话角色描述 + 模型路由 + 可续聊标记

配置

$DSH_HOME/settings.yaml(热生效,无需重启):

subagent-library:
  entries:
    k3-reviewer:
      description: Kimi K3-256K 独立只读审核,支持图片视觉走查
      provider: kimi-coding
      model: k3-256k
      persona: |
        你是运行在 Kimi K3-256K 上的独立审核 agent……
      toolFilter:
        deny: [write, edit, todo_write, create_goal, update_goal, subagent, subagent_fork, send_message, interrupt_agent, workflow, ralph, list_subagents, delegate]
      maxDepth: 1
      backgroundMode: continuable

条目字段:

字段必填说明
id(dict 键)是[a-z0-9][a-z0-9-]*,如 k3-reviewer
description是角色描述,list_subagents 展示给模型
provider否LLM 路由(如 deepseek-official、kimi-coding);缺省用调用方默认
model否LLM 模型 id;缺省用调用方的会话默认模型
subagentProvider否子代理传输层(spawn 等 ctx.subagents provider);默认取插件级默认 spawn
maxTokens否子代理输出上限
persona否子代理角色提示词。注意 persona 走严格的 {{…}} 模板插值(与部署 persona 同语义)——出现未注册的变量(如 {{user}})会让子代理激活失败
toolFilter否allow/deny 工具名单(只读角色用 deny 禁写类工具)。只读/受限角色建议把 list_subagents/delegate 也列入 deny,防止子代理被全局提示词教去链式再派活。名单在委派时按调用方会话的可限制集合解析(不是"可见"):不可应用的名字被忽略,并在派活结果与 list_subagents 目录里标注原因(本会话不存在 / 本会话专属工具)——共享条目不会因为某个会话缺该工具而整次派活失败。allow 名单若在本会话全部不可应用则拒绝委派(否则"只留这些"会变成"什么都不留")。旧注册表无 view() 时退回可见性判定,此时 scope-local 名仍会让委派明确报错。保存阶段不做校验
maxDepth否委派深度上限;缺省 = 传输层支持 depthLimit 时默认 3(与官方 subagent 工具对齐,防链式递归派活;harness 自身无全局深度上限),不支持 depthLimit 的传输层则不设上限
backgroundMode否one-shot(默认)/ continuable(可续聊)

注意区分两个 provider 概念:provider 指 LLM 路由(agentOptions.provider), subagentProvider 指子代理传输层(ctx.subagents 注册名,如 spawn/fork/acp)。

安装

一条命令,从 npm 安装(推荐):

npx @deepseek-ai/dsh plugin --profile web add dsh-subagent-library

然后重启 dsh web(关掉终端重新运行 dsh web)并刷新页面。

其他安装方式:

# 从 GitHub 安装(git-hosted 插件;仓库已提交 lib/ 构建产物,安装无需本地构建)
npx @deepseek-ai/dsh plugin --profile web add github:MaRi23333/dsh-subagent-library

# 从本地目录安装
git clone https://github.com/MaRi23333/dsh-subagent-library.git
cd dsh-subagent-library
pnpm install && pnpm run build
npx @deepseek-ai/dsh plugin --profile web add /absolute/path/to/dsh-subagent-library

仓库已提交 lib/ 构建产物,git 安装无需本地构建;改源码后运行 pnpm run build 再重启即可。 库内条目的增删改($DSH_HOME/settings.yaml)热生效,无需重启。

设置页

Settings → 设置 里新增「子代理库」卡片:可视化增删改条目(描述 / Provider / 模型 / 传输层 subagentProvider / 输出上限 maxTokens / 禁用工具 / 深度 / 后台模式 / 角色提示词),写回 $DSH_HOME/settings.yaml,热生效。 新增卡与条目卡字段一致(ID / 描述 / Provider / 模型 / 传输层 / 输出上限 / 禁用工具 / 深度 / 后台模式 / 角色提示词),一次配置完整角色。

安全提示:子代理库的设置接口(/subagent-library/api)遵循 DSH Web Host 的本地可信边界,插件自身不含独立身份验证层。若将 DSH Web 绑定到局域网 / 公网 / 反向代理,请在外层配置认证与访问控制,不要把该接口暴露给不可信客户端——子代理 persona 与配置可能包含内部工作规则。

设计说明

  • 工具注册在 host 平面:不依赖任何 agent preset,切 preset 不会丢;
  • 派发走标准 ctx.subagents 缝(spawn 等 provider),子代理沿用 harness 语义:审批固定 never、沙箱继承父会话、深度上限、continuable 支持;
  • 条目解析每次操作实时读取 settings,热编辑立即生效。

开发

pnpm install
pnpm run typecheck
pnpm run build   # host: lib/index.js;client: lib/client.js
  • 开发依赖仍锁定 DSH 0.1.0-rc.6(见 package.json devDependencies),已由用户在最新 DSH 0.1.2-rc.1 实际验证正常;其他版本如接口漂移请对照 deepseek-harness 仓库 相应 tag 调整。

License

MIT。本仓库内联构建产物的第三方许可证声明见 THIRD_PARTY_NOTICES.md。

本插件是独立社区项目,与 DeepSeek 无任何隶属或背书关系;DeepSeek Harness 名称仅用于标明兼容平台。