dsh-subagent-library 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,20 @@ This file documents user-facing changes. Format loosely follows [Keep a Changelo
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.4.1] — 2026-11-30
10
+
11
+ ### 变更 / Changed
12
+
13
+ - 角色和编队卡片支持直接启停,启用项置前,页签显示条目数与未保存状态。
14
+ - Toggle roles and groups directly from their cards. Enabled entries appear first, and tabs show counts and unsaved changes.
15
+ - 新增编队成员时可从角色 ID 建议代号,角色卡片显示模型选择来源。
16
+ - Suggest member slots from role IDs and show the source of the model selection on role cards.
17
+
18
+ ### 安全 / Security
19
+
20
+ - 子代理库设置的读取和修改均要求 DSH 所有者身份。身份验证服务不可用时,设置接口会拒绝访问。
21
+ - Reading or changing the subagent library settings requires an authenticated DSH owner. The settings API denies access when host authentication is unavailable.
22
+
9
23
  ## [0.4.0] — 2026-11-25
10
24
 
11
25
  ### 新增 / Added
@@ -166,7 +180,8 @@ This file documents user-facing changes. Format loosely follows [Keep a Changelo
166
180
 
167
181
  - 修复设置页保存 400(移除保存期工具名预检,委派期 `tools.restrict` 为准);新条目卡补齐缺失字段。
168
182
 
169
- [Unreleased]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.4.0...HEAD
183
+ [Unreleased]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.4.1...HEAD
184
+ [0.4.1]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.4.0...v0.4.1
170
185
  [0.4.0]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.3.6...v0.4.0
171
186
  [0.3.6]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.3.5...v0.3.6
172
187
  [0.3.5]: https://github.com/MaRi23333/dsh-subagent-library/compare/v0.3.4...v0.3.5
package/README.en.md CHANGED
@@ -12,19 +12,35 @@
12
12
  <img src="https://img.shields.io/badge/DeepSeek%20Harness-0.2.2--rc.5-4d6bfe?style=flat-square" alt="DeepSeek Harness 0.2.2-rc.5" />
13
13
  </p>
14
14
 
15
- ## Save a group for work you do often
15
+ ## Subagent Library
16
16
 
17
- When you review an announcement, you might want one assistant to spot missing details and another to suggest a rewrite. Save those roles, their assignments, and any shared instructions as a group. The next time you have an announcement, give it to the main agent and ask for that group by name.
17
+ Keep the assistants you use regularly in a named roster for DeepSeek Harness. Give each role a name, a description, and a prompt. Choose its usual model and reasoning effort, or let it follow the main conversation. Once a role is saved, you can ask for it by name in Desktop or Web.
18
18
 
19
- > Ask the review group to look at “The meeting has moved to Friday afternoon.” Have `grok-reviewer` use its default model to flag missing information. For this task, have `glm-adversary` use DeepSeek Flash to suggest a one-sentence rewrite.
19
+ For example, the roster below has an enabled role named `glm-adversary`. In the main conversation, you could ask:
20
20
 
21
- ![Two members dispatched in the same turn. Grok 4.7 flags the missing start time. The other role uses DeepSeek Flash for this dispatch and suggests a rewrite.](./assets/readme/group-dispatch.png)
21
+ > Ask `glm-adversary` to review this launch plan and flag the two assumptions we should check first.
22
22
 
23
- **Choose a model for one assignment.** Whether you name a role directly or pick a member from a group, you can ask for a model authorized in the current session. The role keeps its usual model for future dispatches.
23
+ The main agent uses `list_subagents` to find a saved role and `delegate` to give it the task. The role starts as a native DSH subagent. It reports back when it finishes, and you can send it follow-up questions.
24
24
 
25
- Groups work with Agent Teams switched off. The main agent dispatches one member per call. It can start independent assignments in the same turn or wait for one member’s findings and pass them to the next. Enabling Agent Teams also gives members access to the host’s shared task board.
25
+ ![The role roster in DSH Desktop. Each card shows the role’s name, assignment, model, and enabled state.](./assets/readme/screenshot-settings.png)
26
26
 
27
- Version 0.4.0 targets DSH `0.2.2-rc.5` and requires native subagents that can be addressed by name for follow-up messages. To upgrade from an earlier version, see the [migration guide](./MIGRATION.md) and [changelog](./CHANGELOG.md).
27
+ [Install](#install) · [Your first delegation](#your-first-delegation) · [Switch models for one task](#switch-models-for-one-task) · [Optional groups](#groups-and-slots) · [Configuration and migration](#configuration-and-migration)
28
+
29
+ ## Manage your roster
30
+
31
+ In **Settings → Subagent Library → Role roster**, filter by role ID, description, or model. Expand a card to edit its prompt, default model, and reasoning effort. Disable a role to set it aside and enable it again when you need it.
32
+
33
+ Each role has its own YAML file under `~/.dsh/subagents/` by default. Create roles in Settings, edit the files yourself, or ask a main agent with write access to that directory to configure one for you. Saved changes take effect on the next lookup or dispatch. Desktop and Web profiles can use different models for the same role.
34
+
35
+ Version 0.4.1 targets DSH `0.2.2-rc.5` and requires native subagents that can be addressed by name for follow-up messages. To upgrade from an earlier version, see the [migration guide](./MIGRATION.md) and [changelog](./CHANGELOG.md).
36
+
37
+ ## See each subagent’s model and reasoning effort
38
+
39
+ The DSH subagent list omits the model and reasoning effort by default. When you dispatch a role through Subagent Library, open the member list at the top of the conversation to see the model it started with. The reasoning effort appears alongside it when the host provides one.
40
+
41
+ In the screenshot, the same `glm-adversary` role used `deepseek-flash · high` to rewrite a meeting announcement and `glm-5.4 · max` to double-check the meeting time.
42
+
43
+ ![The DSH member list shows three dispatches with grok-4.7 · high, deepseek-flash · high, and glm-5.4 · max.](./assets/readme/member-model-effort.png)
28
44
 
29
45
  ## Install
30
46
 
@@ -86,22 +102,50 @@ dsh plugin --profile web add /absolute/path/to/dsh-subagent-library
86
102
 
87
103
  ## Your first delegation
88
104
 
89
- Open the Subagent Library in Settings, switch to the role roster, and create a role with ID `text-helper` and a description. Leave the route empty to use the session model. You can also create the equivalent `text-helper.yaml` in the roster directory (default `~/.dsh/subagents/`).
105
+ 1. Open **Settings → Subagent Library → Role roster → New role**. Enter `text-helper` as the ID and “Organize short passages from the main conversation” as the description. Leave the model empty to follow the main conversation, then save.
106
+ 2. In the conversation, ask: “Have `text-helper` turn apple, banana, and pear into a numbered list, in that order. Send me its result.”
107
+ 3. The start receipt from `delegate` gives you the member’s name. Once it reports back, you can ask the same member to put the list on one line.
108
+
109
+ Type `/subagent` in the command palette to browse your saved roles. The host’s `list_agents` tool shows members that have already been started.
110
+
111
+ <details>
112
+ <summary>Create a role with YAML or troubleshoot your first dispatch</summary>
113
+
114
+ To create the same role from a file, save `text-helper.yaml` in the roster directory. The filename sets the ID, the main agent sees the description, and the child receives the persona with its assignment.
90
115
 
91
116
  ```yaml
92
- description: Organize text supplied by the parent.
117
+ description: Organize short passages from the main conversation.
93
118
  persona: Preserve proper names from the source.
94
119
  ```
95
120
 
96
- Ask the main agent to call `list_subagents()`, then `delegate({library_id:"text-helper", prompt:"Number apple, banana and pear in their original order."})`. The receipt's `name` addresses the native member. The parent receives the result separately. You can also manage roles in Settings.
121
+ If a role is missing, refresh the roster and check that the role is enabled. If the main agent cannot see `list_subagents` or `delegate`, check that the plugin is enabled for the Desktop or Web instance you are using and that the session can access both tools. For a first test, leave the role model empty and use the working model from the main conversation.
122
+
123
+ </details>
124
+
125
+ ## Switch models for one task
126
+
127
+ Suppose `text-helper` usually follows the main model, but you want a second take today. Ask: “Have `text-helper` use DeepSeek Flash to edit this paragraph.” You can choose a model authorized in the current session for a single role or a group member. The next ordinary dispatch uses the saved role settings.
128
+
129
+ In the DSH sidebar, open **Plugins → built-in Subagent configuration → Model selection**. Enable agent model selection, select the allowed models, save, and start a new session. The main agent can call `list_subagent_models` to see the choices, pass `provider` and `model` to `delegate`, and optionally set `reasoning_effort`.
130
+
131
+ In a session without a recorded allowlist, an explicit selection is limited to the current parent provider and model. On a host that cannot read authorization, dispatch with the saved role settings remains available. Agent Teams is optional.
97
132
 
98
133
  ## Groups and slots
99
134
 
100
- Open the Groups tab, create a group with an ID and description, then select a role and give each member a unique code. A role can appear more than once, with a different assignment for each member. Save the group to make it available for dispatch.
135
+ Some tasks call for the same people each time. To review an announcement, you might want one person to flag missing information and another to suggest a rewrite. Open **Settings → Subagent Library → Groups → New group**, select existing roles, and save their individual assignments and any shared instructions. Next time, ask for the group by name.
136
+
137
+ ![An enabled two-member review group in Settings.](./assets/readme/group-settings.png)
101
138
 
102
- ![The Groups tab in Settings shows an enabled two-member review group.](./assets/readme/group-settings.png)
139
+ In the conversation below, the main agent dispatches two members in the same turn. `grok-reviewer` uses its usual model to spot the missing start time. For this task, `glm-adversary` uses DeepSeek Flash to suggest a rewrite.
140
+
141
+ ![Two review assignments in the same turn, with the first role on its default model and the second on DeepSeek Flash.](./assets/readme/group-dispatch.png)
142
+
143
+ Each `delegate` call starts one member. Independent assignments can start in the same turn. If an assignment depends on an earlier finding, the main agent can wait for that member to report back. Groups work with Agent Teams off. Turning it on also enables the host’s shared task board.
144
+
145
+ <details>
146
+ <summary>Group YAML example and tool calls</summary>
103
147
 
104
- To define the `facts` and `questions` example in YAML, use `_groups/text-review.yaml` under the roster directory. The YAML field `slot` holds the member code.
148
+ This `text-review` example reuses the `text-helper` role created above. The `facts` and `questions` slots give that role different assignments. Save it as `_groups/text-review.yaml` under the roster directory.
105
149
 
106
150
  ```yaml
107
151
  description: Extract facts and open questions from supplied material.
@@ -125,9 +169,7 @@ Browsing starts zero agents. The `questions` slot starts only on a separate call
125
169
 
126
170
  Use `/subagent groups text-review` to see which members have a configured model and which inherit the parent model. A role can inherit the model and set its own reasoning effort. After dispatch, the native subagent menu and `list_agents` show the launch model and known effort in the member description, for example `text-review/facts [model-a · high]`. Expand the `delegate` receipt for the full `provider`, `model` and `reasoningEffort` values when available.
127
171
 
128
- To change the model for one dispatch, open Plugins in the DSH sidebar, open the built-in Subagent configuration and enable Model selection. Select the allowed models, save, and start a new parent session. Ask the parent to use the role default for one member and an authorized model for the other. It can discover choices with the native `list_subagent_models` tool and pass both `provider` and `model` to `delegate`. The optional `reasoning_effort` selects an effort for that model. Omitting it uses the selected model's default. Subsequent dispatches use the saved role settings again.
129
-
130
- In a session without a recorded allowlist, an explicit selection is limited to the current parent provider and model. On a host that cannot read authorization, dispatch with the saved role settings remains available. Agent Teams is optional.
172
+ </details>
131
173
 
132
174
  ## Configuration and migration
133
175
 
@@ -155,16 +197,6 @@ Configure the base directory and default transport on the plugin row of the curr
155
197
 
156
198
  Include the role files, `_profiles/` and `_groups/` in backups. The Settings endpoint `/subagent-library/api` shares the DSH Web Host access boundary. Configure host or reverse-proxy authentication when exposing it to other devices.
157
199
 
158
- ## Development
159
-
160
- ```sh
161
- pnpm install
162
- pnpm run typecheck
163
- pnpm run build # host: lib/index.js; client: lib/client.js
164
- ```
165
-
166
- - Dev dependencies remain pinned to DSH `0.1.0-rc.6` (see package.json devDependencies); this is not the current runtime host version. If the interfaces drift on other versions, adjust against the corresponding tag of the [deepseek-harness repo](https://github.com/deepseek-ai/deepseek-harness).
167
-
168
200
  ## License
169
201
 
170
202
  [Apache-2.0](./LICENSE). Third-party license notices for code inlined into the build artifacts are in [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md).
package/README.md CHANGED
@@ -12,19 +12,35 @@
12
12
  <img src="https://img.shields.io/badge/DeepSeek%20Harness-0.2.2--rc.5-4d6bfe?style=flat-square" alt="DeepSeek Harness 0.2.2-rc.5" />
13
13
  </p>
14
14
 
15
- ## 把常用的分工存成编队
15
+ ## 子代理库
16
16
 
17
- 写公告时,你可能习惯让一位助手找出遗漏,再让另一位给出改写。把这两个角色、各自的分工和共用的要求保存为一个编队,下次把新公告交给主会话,点名这个编队就能沿用同一套分工。
17
+ 把常用的子代理保存在 DeepSeek Harness 的角色名册里。每个角色都有自己的名字、职责和提示词,可以指定模型与思考强度,也可以跟随主会话。配置一次,以后在桌面端或 Web 的对话里直接点名就能派活。
18
18
 
19
- > 请用复核组看看这句公告:“会议改到周五下午。”让 `grok-reviewer` 用默认模型找出缺少的信息,让 `glm-adversary` 这次用 DeepSeek Flash 改写一句。
19
+ 比如,下面这份名册启用了 `glm-adversary`。在主会话里可以直接说:
20
20
 
21
- ![主会话同一轮派出两名成员。grok-reviewer 用默认的 Grok 4.7 指出缺少开始时间,glm-adversary 临时用 DeepSeek Flash 给出改写。](./assets/readme/group-dispatch.png)
21
+ > 让 `glm-adversary` 看一下这份上线计划,挑出两个最需要提前确认的假设。
22
22
 
23
- **模型可以随任务换。** 无论单独点名一个角色,还是从编队中选人,都可以为这次派遣选用当前会话已授权的模型。角色保留原来的默认设置,下次照常派遣即可。
23
+ 主会话用 `list_subagents` 查看你保存的角色,用 `delegate` 把任务交给选中的那一位。角色会作为 DSH 的原生子代理启动,完成后向主会话汇报,你也可以继续追问。
24
24
 
25
- 关闭 DSH 的「智能体团队」也能使用编队。主会话每次点名一位成员,可以在同一轮分派互不依赖的任务,也可以等前一位汇报后,把它的结论交给下一位。开启智能体团队后,成员还可以使用宿主的共享任务板。
25
+ ![DSH 桌面端的角色名册。每张卡片列出角色名称、职责、模型和启用状态。](./assets/readme/screenshot-settings.png)
26
26
 
27
- 0.4.0 面向 DSH `0.2.2-rc.5`,需要宿主支持可按名称继续对话的原生子代理。从旧版升级请参阅[迁移指南](./MIGRATION.md)和[更新日志](./CHANGELOG.md)。
27
+ [安装](#安装) · [第一次委派](#第一次委派) · [临时更换模型](#临时更换模型) · [可选功能:编队](#编队成员与分工) · [配置与迁移](#配置与迁移)
28
+
29
+ ## 管理角色名册
30
+
31
+ 在 **设置 → 子代理库 → 角色名册** 中,可以按角色 ID、描述或模型筛选。展开角色卡片即可编辑提示词、默认模型和思考强度。暂时用不到的角色可以停用,配置会保留,随时可以重新启用。
32
+
33
+ 每个角色单独保存为一个 YAML 文件,默认目录是 `~/.dsh/subagents/`。可以在设置页创建,也可以自行编辑文件,或请有目录写入权限的主会话帮你配置。保存后,下次查询和派遣就会用到新配置。桌面端与 Web 可以为同一角色分别配置模型。
34
+
35
+ 0.4.1 面向 DSH `0.2.2-rc.5`,需要宿主支持可按名称继续对话的原生子代理。从旧版升级请参阅[迁移指南](./MIGRATION.md)和[更新日志](./CHANGELOG.md)。
36
+
37
+ ## 查看子代理的模型和思考等级
38
+
39
+ DSH 默认不会在子代理列表中标出模型和思考等级。用子代理库派遣角色后,展开对话顶部的成员列表,就能在角色名旁看到它这次启动用的模型。宿主提供思考等级时,也会一起显示。
40
+
41
+ 下图里,同一个 `glm-adversary` 派了两次:改写会议公告用的是 `deepseek-flash · high`,复核公告时间用的是 `glm-5.4 · max`。
42
+
43
+ ![DSH 成员列表,三次派遣分别显示 grok-4.7 · high、deepseek-flash · high 和 glm-5.4 · max。](./assets/readme/member-model-effort.png)
28
44
 
29
45
  ## 安装
30
46
 
@@ -85,22 +101,50 @@ dsh plugin --profile web add /absolute/path/to/dsh-subagent-library
85
101
 
86
102
  ## 第一次委派
87
103
 
88
- 打开 **设置 → 子代理库 → 角色名册**,点「新建角色」,填写角色 ID `text-helper` 和描述,保存即可。模型留空会继承会话模型。也可以在名册目录创建等效的 `text-helper.yaml`(默认位于 `~/.dsh/subagents/`)。
104
+ 1. 打开 **设置 → 子代理库 → 角色名册 → 新建角色**。把 ID 填为 `text-helper`,描述填为「整理主会话提供的短文本」。模型留空,保存后就会跟随主会话模型。
105
+ 2. 在对话里说:「请用 `text-helper` 把苹果、香蕉、梨按原顺序排成编号列表,整理好后把结果发给我。」
106
+ 3. 主会话派出角色后,`delegate` 的启动回执会给出成员名。等它汇报后,还可以让同一位成员把列表改成一行。
107
+
108
+ 想先看看自己有哪些角色,可以在命令面板输入 `/subagent`。这里显示保存好的名册。DSH 自带的 `list_agents` 则用来查看已经启动的成员。
109
+
110
+ <details>
111
+ <summary>用 YAML 创建角色,以及第一次派遣时的常见问题</summary>
112
+
113
+ 在名册目录创建 `text-helper.yaml` 可以得到同样的角色。角色 ID 取自文件名,`description` 会显示给主会话,`persona` 会随任务交给子代理。
89
114
 
90
115
  ```yaml
91
- description: 整理主会话给出的文字。
116
+ description: 整理主会话提供的短文本。
92
117
  persona: 保留原文中的专有名词。
93
118
  ```
94
119
 
95
- 让主会话查询 `list_subagents()`,再调用 `delegate({library_id:"text-helper", prompt:"把苹果、香蕉、梨按原顺序编号。"})`。回执中的 `name` 可直接交给官方控制工具。完整结果随后到达父会话。角色也可以从设置里的「子代理库」管理。
120
+ 找不到角色时,在名册中刷新并确认它已启用。主会话看不到 `list_subagents` 或 `delegate` 时,检查当前桌面或 Web 实例是否启用了插件,以及会话能否使用这两个工具。首次尝试可以把角色模型留空,先用主会话已能正常对话的模型派遣。
121
+
122
+ </details>
123
+
124
+ ## 临时更换模型
125
+
126
+ 假设 `text-helper` 平时跟随主会话,这次想看另一个模型会怎么改,可以直接说:「让 `text-helper` 用 DeepSeek Flash 整理这段文字。」独立角色和编队成员都可以选用当前会话授权的模型。下次照常点名,角色仍用原来的配置。
127
+
128
+ 在 DSH 侧栏打开 **插件 → 内置插件配置 → 子智能体 → 模型选择**,启用「允许 Agent 为子智能体选择模型」。勾选可用模型,保存并新建会话。主会话可用 `list_subagent_models` 查看选项,派遣时传入 `provider` 和 `model`,也可以用 `reasoning_effort` 指定思考强度。
129
+
130
+ 会话没有已记录的模型名单时,显式选模仅可指定父会话当前的渠道和模型。宿主无法提供授权状态时,仍可按角色默认配置派遣。智能体团队开关不影响这两种用法。
96
131
 
97
132
  ## 编队成员与分工
98
133
 
99
- 在 **子代理库 → 编队** 中点「新建编队」。编队描述帮助主代理选组,共享说明会随任务发给从这组选中的每位成员。选好角色后,可以直接用角色 ID 填写空白的成员代号,也可以为这项分工起个名字。下面两位都用 `text-helper`,其中 `facts` 负责提取事实,`questions` 负责列出待确认的问题。
134
+ 有些任务常常要找同一组人。比如审核公告,一位负责找出遗漏,另一位负责改写。打开 **设置 → 子代理库 → 编队 → 新建编队**,选入已有角色,为每位成员写好分工,也可以写一段大家共用的说明。下次点名这个编队,就能沿用这套分工。
135
+
136
+ ![编队设置中的“复审组”已启用,包含两名成员。](./assets/readme/group-settings.png)
100
137
 
101
- ![设置中的编队列表。“复审组”已启用,包含两名成员。](./assets/readme/group-settings.png)
138
+ 下面是一次实际派遣。主会话在同一轮请 `grok-reviewer` 用默认模型找出公告遗漏的信息,再请 `glm-adversary` 临时用 DeepSeek Flash 给出改写。
139
+
140
+ ![两位成员分别指出公告缺少开始时间,并给出带待填项的改写。](./assets/readme/group-dispatch.png)
141
+
142
+ 每次 `delegate` 启动一位成员。独立任务可以同轮分派,有先后依赖的任务可以等前一位汇报后再派。关闭 DSH 的「智能体团队」也能使用编队,开启后还可使用宿主的共享任务板。
143
+
144
+ <details>
145
+ <summary>编队 YAML 示例与工具调用</summary>
102
146
 
103
- 也可以在名册目录下的 `_groups/text-review.yaml` 中定义前面例子里的 `facts` 和 `questions` 两项分工。其中 `slot` 对应界面里的“成员代号”。
147
+ 下面的 `text-review` 示例复用上文创建的 `text-helper`。两个成员引用同一角色,分别用 `facts` 和 `questions` 标识各自的分工。将文件保存为名册目录下的 `_groups/text-review.yaml`。
104
148
 
105
149
  ```yaml
106
150
  description: 整理材料中的事实与待确认事项。
@@ -120,13 +164,11 @@ members:
120
164
  | 查看成员代号、模型配置和分工 | `list_subagents({group_id:"text-review"})` |
121
165
  | 派一人核对事实 | `delegate({group_id:"text-review", slot:"facts", prompt:"核对刚才这段文字。"})` |
122
166
 
123
- 查询不会启动成员。在上例中,`questions` 只有被另一次调用明确选中才会启动。直接按角色 ID 派遣只带角色人设与本次任务。从编队点名时,首条子代理消息还会带上编队说明和这位成员的分工。再次派遣时会重新读取当前角色和 profile 路由,已启动的成员继续使用原会话。人类也可以用 `/subagent` 查看名册和编队。
167
+ 查询不会启动成员。在这个示例中,`questions` 只有被另一次调用明确选中才会启动。直接按角色 ID 派遣只带角色人设与本次任务。从编队点名时,首条子代理消息还会带上编队说明和这位成员的分工。再次派遣时会重新读取当前角色和 profile 路由,已启动的成员继续使用原会话。人类也可以用 `/subagent` 查看名册和编队。
124
168
 
125
169
  用 `/subagent groups text-review` 可以看到哪些成员指定了模型,哪些跟随主会话。角色也可以跟随主会话模型、单独指定思考等级。派发后,顶部子代理列表和官方 `list_agents` 的成员描述显示启动时的模型与已知思考等级,例如 `text-review/facts [model-a · high]`。展开 `delegate` 回执可以查看完整的模型渠道(`provider`)、模型(`model`)和思考等级(`reasoningEffort`)。宿主未提供的值会省略。
126
170
 
127
- **临时换模型**时,可以直接告诉主会话:“派 facts 和 questions 分别复核,facts 照常,questions 这次用我授权的 B 模型。”打开 DSH 左侧的「插件」,在「内置插件配置 → 子智能体 → 模型选择」打开「允许 Agent 为子智能体选择模型」。勾选所需模型,点「保存」,再点左上角「新会话」。主代理可用官方 `list_subagent_models` 查询选项,调用 `delegate` 时一起传入 `provider` 和 `model`,也可以指定 `reasoning_effort`。省略档位会采用所选模型的默认值。下次按角色或成员代号派遣时仍用角色原配置。
128
-
129
- 会话没有已记录的模型名单时,显式选模仅可指定父会话当前的渠道和模型。宿主无法提供授权状态时,仍可按角色默认配置派遣。智能体团队开关不影响这两种用法。
171
+ </details>
130
172
 
131
173
  ## 配置与迁移
132
174
 
@@ -154,16 +196,6 @@ members:
154
196
 
155
197
  备份时一起保留角色、`_profiles/` 和 `_groups/`。设置接口 `/subagent-library/api` 使用 DSH Web Host 的访问边界。将宿主开放给其他设备时,在宿主或反向代理配置访问控制。
156
198
 
157
- ## 开发
158
-
159
- ```sh
160
- pnpm install
161
- pnpm run typecheck
162
- pnpm run build # host: lib/index.js;client: lib/client.js
163
- ```
164
-
165
- - 开发依赖仍锁定 DSH `0.1.0-rc.6`(见 package.json devDependencies),不等于当前使用宿主版本。其他版本如接口漂移请对照 [deepseek-harness 仓库](https://github.com/deepseek-ai/deepseek-harness) 相应 tag 调整。
166
-
167
199
  ## License
168
200
 
169
201
  [Apache-2.0](./LICENSE)。本仓库内联构建产物的第三方许可证声明见 [THIRD_PARTY_NOTICES.md](./THIRD_PARTY_NOTICES.md)。
@@ -25,11 +25,11 @@
25
25
  <text x="248" y="148" font-family="ui-monospace, 'Cascadia Code', Consolas, 'Courier New', monospace"
26
26
  font-size="42" font-weight="700" fill="#16204a" letter-spacing="-0.5">dsh-subagent-library</text>
27
27
  <text x="248" y="192" font-family="'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif"
28
- font-size="23" fill="#3d4468">DeepSeek Harness 子代理库</text>
28
+ font-size="23" fill="#3d4468">DeepSeek Harness 具名子代理库 · 设置页可视化管理</text>
29
29
  <text x="248" y="228" font-family="'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif"
30
- font-size="16" fill="#7c84a8">保存角色与编队,按任务选择模型</text>
30
+ font-size="16" fill="#7c84a8">list_subagents 选人 · delegate 派活 · 模型 / 角色提示词 / 深度可配</text>
31
31
  <text x="248" y="254" font-family="'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif"
32
- font-size="16" fill="#7c84a8">Reusable roles and groups for DeepSeek Harness</text>
32
+ font-size="16" fill="#7c84a8">A named subagent roster for DeepSeek Harness Desktop and Web</text>
33
33
 
34
34
  <!-- roster tree, right side -->
35
35
  <g stroke="#4d6bfe" fill="none" stroke-linecap="round">