
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-custom-subagents
Advanced tools
Custom reusable Subagent Definitions with a Settings page and one delegate_agent tool for DeepSeek Harness
为 DeepSeek Harness(dsh) 提供可复用的专业子 Agent:把「代码审查员」「文档撰写」「网络调研」这类常用角色保存成一份定义,主 Agent 用一个
delegate_agent工具随时把它们叫出来干活。
不需要写代码,也不需要了解 DSH 内部机制——所有操作都在 设置 → 子 Agent 页面完成,就像填一张简短的表单。
# 一行安装
dsh plugin --profile web add dsh-custom-subagents
两种方式任选,都要求先装好 DSH。
dsh plugin --profile web add dsh-custom-subagents
dsh plugin --profile web add ./dsh-custom-subagents-<版本>.tgz
profile 名 通常是
web(dsh web就是dsh --profile web的别名)。其他可用名字可在~/.dsh/profiles/(Windows 为%USERPROFILE%\.dsh\profiles\)目录下查看。
安装后开箱即用:根 Agent 立刻获得 delegate_agent 工具,不需要手工配置、软链或复制 Preset,默认 Agent Preset 也不会被改动。重启 dsh web 后生效。
Windows 和 Linux/macOS 的命令相同。仅有的平台差异:
npm i -g @deepseek-ai/dsh 全局安装 DSH,再执行上面的命令(避免 npx 临时缓存与全局版本不一致)。EADDRINUSE: address already in use 127.0.0.1:3080,是默认端口被占用,换个端口即可:dsh web --port 4000。shell 工具令牌按宿主平台解析:Windows 上映射为 pwsh,Linux/macOS 上为 bash。已在 DSH 0.1.1-rc.2(当前 npm latest)上验证。peer 依赖声明为 >=0.1.1-rc.2 <0.2.0-0 || >=0.1.2-0 <0.2.0-0,后续 RC 一般可直接使用;DSH 处于快速迭代期,若遇到版本相关错误,确认宿主与插件版本一致后重试。
首次安装自带一个内置 Explorer(只读探索代码库),可以直接吩咐主 Agent 委派:
让 Explorer 看一下
src/里的模块是怎么组织的。
也可以自己定义角色:
打开 设置 → 子 Agent,点击 新建。
填写表单:名称、描述和系统 Prompt 是必填项;模型、上下文、工具都有安全的默认值,可以先不改。
点击 保存,然后在对话里直接吩咐主 Agent,例如:
用「代码审查员」检查一下
src/最近改动的代码。
主 Agent 会通过 delegate_agent 工具找到你保存的定义,创建一个对应的子 Agent 来执行任务。
read、glob/grep、write/edit、Shell (bash / pwsh)、web_search、skill 等原始工具名,勾什么给什么;或选择「继承父 Agent 工具」直接用父会话的工具。| 字段 | 含义 |
|---|---|
| 名称 | 角色的名字,主 Agent 靠它来认人。必须唯一。 |
| 描述 | 写给主 Agent 看的「什么时候该用我」。例如:「在需要检查代码正确性、安全性和可维护性时使用」。 |
| 系统 Prompt | 角色的身份与工作方式,例如「你是一名细心的代码审查员」。DSH 的安全指令不受影响。 |
| 模型 | 默认 父模型:和主 Agent 用同一个模型;也可以指定 DSH 里其他已配置的模型。 |
| 上下文来源 | 全新上下文:子 Agent 从空白开始;继承对话:子 Agent 能看到父对话中已完成的内容。 |
| 可用模式 | 标准模式始终可用;高级用户可额外勾选 PTC 模式、创造模式。 |
| 工具 | 二选一:继承父 Agent 工具(默认),或自定义可用工具。 |
| 勾选项 | 含义 |
|---|---|
read | 读取文件 |
glob / grep | 查找文件、搜索文件内容 |
write / edit | 创建和修改文件 |
Shell (bash / pwsh) | 运行命令 |
web_search | 联网搜索 |
skill | 使用技能 |
小提示:子 Agent 能用的工具永远不会超过父 Agent 拥有的;若父会话缺少定义勾选的某个工具,委派会明确失败,而不是偷偷少给。
subagent、subagent_fork、delegate_agent 都会被拦截),只有根 Agent 可以。即时生效,重启后保持。# 升级(已保存的定义和「禁止嵌套委派」设置都会保留)
dsh plugin --profile web add dsh-custom-subagents@<新版本>
# 卸载(清理插件产生的全部内容,不影响其他插件)
dsh plugin --profile web remove dsh-custom-subagents
EADDRINUSE? 默认端口 3080 被占用,换端口:dsh web --port 4000。架构、设计决策与测试说明见 docs/specs/ 与 CONTEXT.md。
FAQs
Custom reusable Subagent Definitions with a Settings page and one delegate_agent tool for DeepSeek Harness
We found that dsh-custom-subagents demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.