DeepSeek Harness 插件

dsh-subagent-roles

Role-based model routing for DSH subagent delegation.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
trynewthin/dsh-subagent-roles
最近更新
2026年8月16日
分类
自动化与任务
GitHub stars
1
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/trynewthin/dsh-subagent-roles
插件名:dsh-subagent-roles
作者:trynewthin

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器2 个文件
README.md来源说明 · 只读预览

DSH Subagent Roles

> A DeepSeek Harness plugin for routing delegated work through named roles while each user keeps control of the model behind every role.

!7 default roles !6 contract tests ![DeepSeek Harness plugin](https://github.com/deepseek-ai/deepseek-harness)

Main agent
  └─ subagent_roles              inspect configured roles and routes
       └─ delegate_role(scout)   start a continuable child with scout's model

scout → your configured provider / model / reasoning effort

A multi-model setup usually fails at the handoff: the lead agent can create a child, but has no durable vocabulary for why that child should use a particular model. This plugin adds role names, role descriptions, a settings surface, and two model-facing tools so delegation can express that decision.

The role is stable; the model is yours

Seven OMP-inspired role presets give the lead a selection vocabulary. scout, designer, reviewer, security-reviewer, librarian, task, and sonic each carry a short selection description. Reset restores those names and descriptions.

Model routes are personal configuration, not plugin defaults. Every user chooses the provider, model, and reasoning effort for each role in Settings. Reset restores the presets while retaining routes for matching role IDs; it never hardcodes someone else's models.

The handoff keeps the chosen model attached to the child. delegate_role starts a continuable child with the selected route and records the role and reasoning effort in its label, so a later child turn uses the same selection.

The lead receives a delegation warning. The plugin adds system guidance to inspect roles and prefer delegate_role when creating a child. It is guidance, not enforcement: native subagent tools remain available.

What it does not claim

Roles currently select a model route and provide lead-agent guidance. They do not impose sandbox permissions, tool restrictions, filesystem access rules, or a role-specific child system prompt. A role named scout is not technically read-only unless the surrounding DSH profile enforces that separately.

Install

dsh plugin --profile web add github:trynewthin/dsh-subagent-roles

Restart dsh web, then open Settings → 子代理角色 and select a model route for each role you intend to delegate to.

Delegate through a role

The main agent can use two tools:

ToolUse
subagent_rolesList roles, their selection descriptions, and configured model routes.
delegate_roleStart a continuable child with a selected role, complete task, and optional label.

A role without both a provider and model remains visible but cannot be delegated. The tool reports the configuration gap instead of guessing a model.

Reset behavior

The Settings page places a two-step 重置 action beside 添加角色. Click once to request confirmation; if it is not clicked again within three seconds, it returns to normal. Confirming restores the seven built-in role names and descriptions, preserves existing routes for matching IDs, and removes custom roles.

Deleting an individual role uses the same two-step, three-second confirmation behavior.

Compatibility

Built against DeepSeek Harness 0.1.0-rc.6 and Cordis 4.0.1.

pnpm install
pnpm typecheck
pnpm build
pnpm test

License

MIT