dsh-rolegroup 0.12.2 → 0.14.0

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
@@ -5,7 +5,55 @@
5
5
 
6
6
  > **历史注记**:`0.7.0` 发布前,npm 上的上一版本是 `0.6.1`;这期间开发中用过 0.6.2 / 0.6.3 / 0.8.0 等
7
7
  > 内部里程碑号但都没发布,所以 `0.7.0` 是**自 `0.6.1` 以来的累积变更**(按 semver 只升一个 minor,不跳号)。
8
- > 当前 npm 上的 latest 见 registry(2026-11-16 查 `dist-tags.latest` = `0.11.7`)。
8
+ > 当前 npm 上的 latest 见 registry(2026-11-30 查 `dist-tags.latest` = `0.13.0`)。
9
+
10
+ ---
11
+
12
+ ## [0.14.0] — 2026-11-30
13
+
14
+ ### Breaking
15
+
16
+ - 内置 `scribe` 并入 `coder`,默认角色从 8 个降为 7 个;`coder` 的 `kimi-coding/k3.1-pro` 主路由与原备用链不变。文档回填、报告、spec 维护也走 `coder`;纯文档任务以简报为规格,简报须给目标文件、事实来源与风格要求,不再要求独立计划文件。
17
+ - 升级到本变更后,零覆盖与「恢复官方推荐」回落到 7 个内置角色。已保存的旧整表不会被自动改写:其中的 `scribe` 作为自定义角色保留,路由、persona、summary 与备用链不变;旧 coder persona 不自动更新。本次不新增 `scribe` 永久废弃警告,也不自动迁移配置。
18
+
19
+ Built-in `scribe` is merged into `coder`, reducing the default roster from eight roles to seven while keeping coder's model route and fallback chain unchanged. Documentation work now uses `coder`; a documentation-only brief is the spec. Saved legacy tables are not rewritten: their `scribe` rows remain custom roles, and old coder personas stay intact.
20
+
21
+ ---
22
+
23
+ ## [0.13.0] — 2026-11-26
24
+
25
+ ### Changed
26
+
27
+ - 设置页改为「角色列表 + 单角色编辑区 + 常显保存栏」,切换角色保留整张草稿;配置来源、角色来源和未保存修改分开显示。
28
+ - 备用路由按配置顺序只读展示,空链有说明;主路由仍保留目录外的旧值。
29
+ - 新增角色后选中并聚焦工具名;逐行标记修改,自定义角色可从列表或编辑器删除,内置角色没有删除入口。
30
+ - `analyst` 内置绑定从 `qwen3.8-max` 更新为 `qwen4-max`;在本机 harness 完成事实核验与设计评审对照后换绑,未观察到质量回退。
31
+ - README 中英两版改用本地化品牌 banner + 徽章 + 目录 + 功能概览;设置面板截图裁掉左侧导航后放进 §5,`assets/banners` 与 `assets/screenshots` 随 npm 包发布。
32
+
33
+ ### Fixed
34
+
35
+ - 保存或恢复官方推荐失败时保留草稿并退出保存中状态;显式空 `fallbackModels` 在面板与 section 映射间不再被补成内置链。
36
+ - 设置面板 clean 状态的禁用保存/放弃增加高特异度 `not-allowed` 光标(不再被通用 `cursor: default` 覆盖)与悬停说明,提示改为「没有未保存修改;改任意字段后可保存」,避免把禁用误判为按钮失效。
37
+ - 新增、删除、重命名、外部快照更新后的选中项始终指向可见角色;补齐字段标签、错误关联、键盘焦点和窄屏布局。
38
+ - summary 使用独立阅读高度并保留纵向 resize 与滚动条 gutter;主路由按容器 auto-fit,避免窄右栏固定三列截断完整值。禁用保存按钮不再叠 50% 透明,修改徽标正文与 warn 边框分开使用宿主 token。
39
+ - 布局断点改为按**卡片容器宽度**(容器查询)而不是视口宽度。设置弹层正文只有约 600px,而视口约 1400px,原先按视口写的窄屏规则永不触发,编辑器被挤到约 290px。现在窄容器下改为「角色条在上、全宽编辑器在下」,角色标签隐藏冗余的「内置角色」chips、摘要按内容自适应高度(`field-sizing`,不支持时回落 140px)。
40
+
41
+ ### 验证
42
+
43
+ - `npm test` 200 passed(新增 README 图片引用断言);`npm run build:client` 在 UI 改动后成功,`git diff --check` 通过。新增 4 组行为回归,并在既有用例中补充 restore guard、嵌套 button 和真实 bundle 视觉结构断言。
44
+ - 2026-11-27 analyst 换绑门槛:`qwen3.8-max` / `qwen4-max` 各跑事实核验 1 次、设计评审 1 次;启动报告确认候选实际走 `qwen4-max`、无降级。两版判定与引用均合格,候选额外完成只读运行时复核,并识别零覆盖跟随与 `reasoningEffort` 清理路径。
45
+ - 24 个临时副本 mutation 均被对应断言拒绝,无 surviving。archive 旧实现复核在 T1-1 首个失败即终止,只作为 T1-1 证据;T2/T3/T4 的红来自此前分阶段运行。
46
+ - 现有 3080 / dsh 0.2.2-rc.5 验证了 8 角色切换、跨角色草稿与放弃、新增/聚焦样式/本地校验/重命名/删除、备用链、模型切回、中英和 light/dark;全程未做有效配置保存。
47
+ - 修复后 2891×1450 真机图确认 analyst/vision 摘要不再截成半行,provider 与模型标签完整显示;新增校验和 light/dark 保存栏的按钮、徽标可读性改善。测试后已放弃草稿并恢复 Light + 中文。
48
+ - 容器查询落地后,在 3080 真实设置弹层(正文约 600px)复核:8 个角色一行铺开、编辑器全宽,`qwen-token-plan-cn` / `Qwen3.8 Max` 完整可见,analyst 与 vision 摘要均完整无裁切;证据见内部验收档案(不随仓库公开)。
49
+ - UNVERIFIED:1280/768/390 视口与 DOM 几何测量、console、对比度数值、真实保存/恢复成功及真实写入失败/冲突;离线用例覆盖这些状态机路径。
50
+
51
+ The settings section now uses a role list, a single-role editor, and an always-visible save bar. Drafts survive
52
+ role switches and failed writes; source and modified states are separate. Fallback chains are read-only in
53
+ configuration order, explicit empty chains round-trip, and legacy routes remain available. Selection repair,
54
+ field accessibility, keyboard focus, and narrow layouts are covered by offline render tests. Summaries have
55
+ room to read, route fields wrap by container width, and disabled actions and modified badges stay legible.
56
+ The bilingual READMEs now use a localized hero banner, badges, a table of contents, and a cropped settings-panel screenshot in §5. Disabled Save/Discard actions now explain that an edit is required. The analyst built-in binding moves from qwen3.8-max to qwen4-max after a same-role fact and design comparison; the startup report confirms qwen4-max ran without fallback.
9
57
 
10
58
  ---
11
59
 
package/MODELS.en.md CHANGED
@@ -4,12 +4,11 @@ This page lists the officially recommended model for each role.
4
4
 
5
5
  | Role | Recommended model |
6
6
  |---|---|
7
- | `analyst` | `qwen3.8-max` |
7
+ | `analyst` | `qwen4-max` |
8
8
  | `planner` | `k3.1-pro` |
9
9
  | `coder` | `k3.1-pro` |
10
10
  | `reviewer` | `qwen3.8-flash` |
11
11
  | `scout` | `deepseek-flash` |
12
- | `scribe` | `qwen3.8-flash` |
13
12
  | `vision` | `qwen3.8-flash` |
14
13
  | `fallback` | `deepseek-flash` |
15
14
 
package/MODELS.md CHANGED
@@ -4,12 +4,11 @@
4
4
 
5
5
  | 角色 | 推荐模型 |
6
6
  |---|---|
7
- | `analyst` | `qwen3.8-max` |
7
+ | `analyst` | `qwen4-max` |
8
8
  | `planner` | `k3.1-pro` |
9
9
  | `coder` | `k3.1-pro` |
10
10
  | `reviewer` | `qwen3.8-flash` |
11
11
  | `scout` | `deepseek-flash` |
12
- | `scribe` | `qwen3.8-flash` |
13
12
  | `vision` | `qwen3.8-flash` |
14
13
  | `fallback` | `deepseek-flash` |
15
14
 
package/README.en.md CHANGED
@@ -1,23 +1,48 @@
1
- # dsh-rolegroup
2
-
3
- A role-based delegation plugin for dsh. Define a role once (name, bound model, persona), then delegate by role
4
- name instead of writing `provider`/`model` every time. Each role gets its own host `dsh-tool-subagent`
5
- instance, so the tool name is the role name.
1
+ <p align="center">
2
+ <img src="assets/banners/rolegroup-en.webp" alt="dsh-rolegroup: bind each kind of work to a model once, then delegate by role name" width="100%">
3
+ </p>
4
+
5
+ <p align="center">
6
+ <a href="README.md">简体中文</a> ·
7
+ <a href="#contents">Contents</a> ·
8
+ <a href="CHANGELOG.md">Changelog</a> ·
9
+ <a href="MODELS.en.md">Models</a> ·
10
+ <a href="LICENSE">MIT</a>
11
+ </p>
12
+
13
+ <p align="center">
14
+ <a href="https://www.npmjs.com/package/dsh-rolegroup"><img src="https://img.shields.io/badge/version-0.14.0-4D6BFE" alt="version 0.14.0"></a>
15
+ <a href="https://www.npmjs.com/package/dsh-rolegroup"><img src="https://img.shields.io/npm/dm/dsh-rolegroup?label=downloads" alt="npm downloads"></a>
16
+ <a href="LICENSE"><img src="https://img.shields.io/npm/l/dsh-rolegroup" alt="MIT"></a>
17
+ <img src="https://img.shields.io/badge/dsh-%E2%89%A50.2.1--rc.1-4D6BFE" alt="dsh >= 0.2.1-rc.1">
18
+ <img src="https://img.shields.io/badge/roles-7-0f766e" alt="7 roles">
19
+ </p>
20
+
21
+ > A community-maintained DeepSeek Harness (dsh) plugin, not an official DeepSeek product.
22
+ >
23
+ > This README describes **0.14.0**. Requires dsh **≥ 0.2.1-rc.1** (verified on 0.2.2-rc.5). The settings-page nav icon only shows on dsh ≥ 0.2.2-rc.5; everything else works on older releases.
6
24
 
7
- The role/category binding is inspired by
8
- [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent) ("omo"); see §9.
25
+ ## Contents
9
26
 
10
- > Version **0.12.2** | dsh **≥ 0.2.1-rc.1** (verified on 0.2.2-rc.5) | MIT
11
- >
12
- > The settings-page nav icon only shows on dsh ≥ 0.2.2-rc.5 (the official `settings.section.icon`
13
- > slot exists from that version); everything else works on older releases.
27
+ - [1. Overview](#1-overview)
28
+ - [2. Quick start](#2-quick-start)
29
+ - [3. Built-in roles](#3-built-in-roles)
30
+ - [4. Configuration](#4-configuration)
31
+ - [5. Settings panel](#5-settings-panel)
32
+ - [6. Diagnostics](#6-diagnostics)
33
+ - [7. Development](#7-development)
34
+ - [8. Credits](#8-credits)
35
+ - [9. License](#9-license)
14
36
 
15
- ---
37
+ ## 1. Overview
16
38
 
17
- ## 1. Why rolegroup
39
+ dsh-rolegroup takes the question "which model should this kind of work use?" out of each delegation and turns it into a role: name, provider/model, persona. Define it once, then call the role name.
18
40
 
19
- Every delegation asks the same question: is this job worth an expensive model, or is a cheap one enough? If
20
- the answer lives in the call, it is easy to get wrong and hard to reuse.
41
+ - **The role is the tool name**: seven built-in roles, `analyst` / `planner` / `coder` / `reviewer` / `scout` / `vision` / `fallback`; call the role name instead of writing `provider`/`model`.
42
+ - **Bind once, reuse everywhere**: a role carries its primary route, reasoning effort, fallback chain, and persona; changing the model is a configuration change, not a call-site change.
43
+ - **Two configuration layers**: the built-in table (factory defaults) and optional panel overrides; a panel save applies to new sessions, not in-flight work.
44
+ - **Fallbacks and diagnostics**: built-in roles carry DeepSeek fallback chains; `/rolegroup doctor` lists each effective route, availability, and repair hints.
45
+ - **Delegation only, no orchestration**: one-off specialist delegation; DAGs, multi-round collaboration, and state stay with Agent Teams or other plugins.
21
46
 
22
47
  | | Input | It handles | Limit |
23
48
  |---|---|---|---|
@@ -25,33 +50,34 @@ the answer lives in the call, it is easy to get wrong and hard to reuse.
25
50
  | **Agent Teams** (official; 智能体团队) | task DAG / roster | who does what, dependencies, multi-round work | teammates inherit the root model; no per-member model binding |
26
51
  | **dsh-rolegroup** | roles, defined once | which model this kind of work uses | one-off specialist delegation; no orchestration |
27
52
 
28
- They solve different problems. Agent Teams coordinates the work; rolegroup picks the model for a single
29
- delegation. The two can coexist in one deployment. A common pattern is to split expensive and cheap work:
30
- `reviewer` on a cheap model, `coder` on a strong one, with Agent Teams still doing the coordination.
53
+ They solve different problems. Agent Teams coordinates the work; rolegroup picks the model for a single delegation. The two can coexist in one deployment. A common pattern is to split expensive and cheap work: `reviewer` on a cheap model, `coder` on a strong one, with Agent Teams still doing the coordination.
31
54
 
32
- ### Scope: what we deliberately do not do
55
+ <details>
56
+ <summary><b>Scope: what we deliberately do not do</b></summary>
33
57
 
34
58
  | We do not | Why |
35
59
  |---|---|
36
60
  | **Register an MCP server** | Dozens of tools inflate the tool list, the permission surface, and the prompt budget |
37
61
  | **Write a project-level state directory** (`.rolegroup/`) | We route work; we are not a runtime state machine — state belongs to the orchestration layer |
38
- | **Take over the main session's Agent Preset** | An explicit preset **replaces** the parent composition (§4); taking over means choosing for the user |
62
+ | **Take over the main session's Agent Preset** | An explicit preset replaces the parent composition; taking over means choosing for the user |
39
63
 
40
64
  When you need orchestration, state, or an MCP tool chain, compose other plugins — they do not replace this one.
41
65
 
66
+ </details>
67
+
42
68
  ## 2. Quick start
43
69
 
70
+ Requires dsh ≥ 0.2.1-rc.1; the commands below use the `web` profile.
71
+
44
72
  ### Official plugin manager
45
73
 
46
74
  ```sh
47
75
  dsh plugin --profile web add dsh-rolegroup
48
76
  ```
49
77
 
50
- You can also open the Plugins page, click "Add plugin", choose "Install a third-party plugin", enter
51
- `dsh-rolegroup`, and click "Install". Restart `dsh web` after installing.
78
+ You can also open the Plugins page, click "Add plugin", choose "Install a third-party plugin", enter `dsh-rolegroup`, and click "Install". Restart `dsh web` after installing.
52
79
 
53
- If a third-party market rewrite drops the plugin, add it again. You can also search for
54
- `dsh-rolegroup` in the Plugin Market and install it — same flow underneath.
80
+ If a third-party market rewrite drops the plugin, add it again. You can also search for `dsh-rolegroup` in the Plugin Market and install it — same flow underneath.
55
81
 
56
82
  ### From source
57
83
 
@@ -65,14 +91,10 @@ npm run link:deps
65
91
  dsh plugin --profile web add "link:$PWD"
66
92
  ```
67
93
 
68
- `--omit=peer` installs the esbuild devDependency without pulling the peer
69
- `@deepseek-ai/schemastery` in as a real copy; `link:deps` then symlinks the deployment's schemastery into
70
- this repo, which the Settings panel needs for source installs. The reverse order breaks: a plain
71
- `npm install` puts a real copy there first, and `link:deps` **does not overwrite** an existing real
72
- directory. If you already have one, delete `node_modules/@deepseek-ai/schemastery` and rerun `link:deps`.
94
+ `--omit=peer` installs the esbuild devDependency without pulling the peer `@deepseek-ai/schemastery` in as a real copy; `link:deps` then symlinks the deployment's schemastery into this repo, which the Settings panel needs for source installs. The reverse order breaks: a plain `npm install` puts a real copy there first, and `link:deps` **does not overwrite** an existing real directory. If you already have one, delete `node_modules/@deepseek-ai/schemastery` and rerun `link:deps`.
73
95
 
74
- You can also mount it on the home layer (use this only to survive profile rewrites; for regular
75
- development use the `link:` install above):
96
+ <details>
97
+ <summary>Alternative install: mount on the home layer (only to survive profile rewrites)</summary>
76
98
 
77
99
  ```sh
78
100
  ln -sfn "$PWD" ~/.dsh/profiles/web/node_modules/dsh-rolegroup
@@ -83,8 +105,9 @@ cat >> ~/.dsh/cordis.patch.yml <<'YAML'
83
105
  YAML
84
106
  ```
85
107
 
86
- The home layer survives profile rewrites, but it does not show up under "Installed" and has no toggle. Pick
87
- one; do not use both.
108
+ The home layer survives profile rewrites, but it does not show up under "Installed" and has no toggle. Pick one; do not use both.
109
+
110
+ </details>
88
111
 
89
112
  ### Verify
90
113
 
@@ -92,8 +115,7 @@ one; do not use both.
92
115
  dsh --profile web --dump-config | grep -A1 dsh-rolegroup # should show - id: dsh-rolegroup
93
116
  ```
94
117
 
95
- Restart `dsh web` and open a new session. The eight role tools should be in the tool list; you can also run
96
- `/rolegroup doctor` from the new session.
118
+ Restart `dsh web` and open a new session. The seven role tools should be in the tool list; you can also run `/rolegroup doctor` from the new session.
97
119
 
98
120
  ### Delegate by role
99
121
 
@@ -103,35 +125,27 @@ Type:
103
125
  /rg <task>
104
126
  ```
105
127
 
106
- The plugin injects the task plus a "delegate by role" directive into the main session; the main model then
107
- picks from the roles registered on this machine, writes briefs, and dispatches. `/rolegroup work <task>` is
108
- the long alias. `/rg` is main-session only — child sessions get an error. It only triggers; whether to
109
- dispatch is still the main model's call.
128
+ The plugin injects the task plus a "delegate by role" directive into the main session; the main model then picks from the roles registered on this machine, writes briefs, and dispatches. `/rolegroup work <task>` is the long alias. `/rg` is main-session only — child sessions get an error. It only triggers; whether to dispatch is still the main model's call.
110
129
 
111
130
  After changing code, restart and open a new session. For panel saves, see §5.
112
131
 
113
132
  ## 3. Built-in roles
114
133
 
115
- With no configuration, the plugin registers eight roles. The models below are initial values;
116
- the panel can override them.
134
+ With no override, the plugin registers these seven roles. The table shows the built-in initial values; the panel can override them.
117
135
 
118
- The table names models only: one model usually has several routes (subscription plan, pay-as-you-go, gateway),
119
- and the provider is up to your configuration. The built-in default points at the built-in table's providers (the
120
- author's subscriptions) — on your machine run `/rolegroup init` to generate routes that actually work, or edit
121
- them in the panel. Model ids and the effective routes are whatever `/rolegroup doctor` prints.
136
+ The table names models only: one model usually has several routes (subscription plan, pay-as-you-go, gateway), and the provider is up to your configuration. The built-in default points at the built-in table's providers (the author's subscriptions) — on your machine run `/rolegroup init` to generate routes that actually work, or edit them in the panel. Model ids and the effective routes are whatever `/rolegroup doctor` prints.
122
137
 
123
138
  | Role | Built-in model | Responsibility |
124
139
  |---|---|---|
125
- | `analyst` | Qwen3.8 Max | Requirement clarification, path classification, plan review (do it / how), architecture decisions |
140
+ | `analyst` | Qwen4 Max | Requirement clarification, path classification, plan review (do it / how), architecture decisions |
126
141
  | `planner` | Kimi K3.1 Pro | Plan design: file layout, task breakdown, interface contracts, writing the plan document |
127
- | `coder` | Kimi K3.1 Pro | Implementation: follow the steps of the plan/spec document supplied in the brief and report evidence per step |
142
+ | `coder` | Kimi K3.1 Pro | Implementation plus documentation backfill, reports, and spec maintenance: code/tests follow a plan/spec path; documentation-only work uses the brief as its spec |
128
143
  | `reviewer` | Qwen3.8 Flash | Closing review: check acceptance criteria against evidence (was it actually done) |
129
144
  | `scout` | DeepSeek V4.1 Flash | Exploration and bulk search (returns `file:line` evidence) |
130
- | `scribe` | Qwen3.8 Flash | Documentation backfill, reports, spec maintenance |
131
145
  | `vision` | Qwen3.8 Flash | Vision: image analysis, UI review, prototype reading, OCR (**the bound model must accept images**) |
132
146
  | `fallback` | DeepSeek V4.1 Flash | Catch-all for unclassified lightweight tasks |
133
147
 
134
- ### Recommended bindings (official suggestion)
148
+ ### Recommended bindings
135
149
 
136
150
  See **[MODELS.en.md](./MODELS.en.md)** for the built-in default model per role.
137
151
 
@@ -140,20 +154,15 @@ See **[MODELS.en.md](./MODELS.en.md)** for the built-in default model per role.
140
154
  Roles do not inherit the parent session's conversation history or the bodies of skills already loaded there. The role preset recomposes the project `AGENTS.md` instructions and skill catalog for the child session's cwd, so the brief still needs to be self-contained. The more specific the brief, the more usable the result. The plugin gives the main model a fixed template in the system prompt:
141
155
 
142
156
  - A brief should state: background, goal, constraints, acceptance, known facts (`file:line`), claims to verify;
143
- - Factual conclusions need verifiable evidence: `file:line` for code, command and output for runtime results,
144
- region/coordinates for images, and original sources for external facts;
145
- quote verbatim, and unreproducible facts are marked UNVERIFIED;
146
- - Do not prescribe the expected verdict distribution ("should be all true / should find problems"). The
147
- 2026-11-16 comparison showed this wording makes `analyst` compress partially-true claims into `TRUE` and
148
- fabricate quotes; the neutral briefs quoted verbatim.
149
- - A subagent's conclusion is input, not a verdict. Spot-check quotes; do not adopt a confident report that
150
- cannot show evidence.
157
+ - Factual conclusions need verifiable evidence: `file:line` for code, command and output for runtime results, region/coordinates for images, and original sources for external facts; quote verbatim, and unreproducible facts are marked UNVERIFIED;
158
+ - Do not prescribe the expected verdict distribution ("should be all true / should find problems"). The 2026-11-16 comparison showed this wording makes `analyst` compress partially-true claims into `TRUE` and fabricate quotes; the neutral briefs quoted verbatim.
159
+ - A subagent's conclusion is input, not a verdict. Spot-check quotes; do not adopt a confident report that cannot show evidence.
160
+
161
+ Fallback chains apply only when a role configuration provides fallbackModels; an explicitly configured role without that field does not inherit the built-in chain. The degraded and model-unadvertised warnings can coexist, and preflight risk names the actual fallback route.
151
162
 
152
- Fallback chains apply only when a role configuration provides fallbackModels; an explicitly configured role
153
- without that field does not inherit the built-in chain.
154
- The degraded and model-unadvertised warnings can coexist, and preflight risk names the actual fallback route.
163
+ Use `scout` for code location and fact-finding, `reviewer` for acceptance-criteria closing review, and `analyst` for design judgement. For code and tests, use `coder` when a structured plan or spec already exists (with its path supplied in the brief); if no implementation plan has been formed, you may delegate to `planner` first.
155
164
 
156
- Use `scout` for code location and fact-finding, `reviewer` for acceptance-criteria closing review, and `analyst` for design judgement. For implementation, use `coder` when a structured plan or spec already exists (with its path supplied in the brief); if no plan has been formed, you may delegate to `planner` first.
165
+ Documentation backfill, reports, and spec maintenance also go to `coder`; a documentation-only brief is the spec, no separate plan file is required, and the brief must name target files, factual sources, and style requirements. Do not route documentation-only work through `planner` first. It must not change code; mixed work stays within the files allowed by the plan or brief.
157
166
 
158
167
  #### Working with specification-driven workflows
159
168
 
@@ -165,45 +174,58 @@ These are usage conventions, not a built-in OpenSpec integration.
165
174
 
166
175
  ## 4. Configuration
167
176
 
168
- Two layers: the built-in table (factory defaults) and panel overrides (optional).
177
+ Two layers: the built-in table (factory defaults) and panel overrides (optional). A panel save applies to new sessions; `rolegroup.jsonc` is no longer a configuration source.
178
+
179
+ | Layer | What it is | When to use it |
180
+ |---|---|---|
181
+ | Built-in table | The seven factory bindings | Works with no configuration |
182
+ | Panel override | The table saved under Settings → 角色配置 | Change provider/model/persona |
183
+
184
+ With no overrides, or after "Restore official defaults" writes `enabled=true` + `roles=[]`, the current built-in table contains seven roles. A previously saved full table is not rewritten automatically: its `scribe` row remains a custom role with its route, persona, summary, and fallback chain intact; an old coder persona is not updated automatically.
169
185
 
170
186
  ### Fallback chains
171
187
 
172
- Built-in roles ship a chain that only targets the two DeepSeek providers dsh bundles: **`deepseek-account`
173
- (account login) first**, since that is what most users have, then `deepseek-official` (API key):
188
+ Built-in roles ship a chain that only targets the two DeepSeek providers dsh bundles: **`deepseek-account` (account login) first**, since that is what most users have, then `deepseek-official` (API key):
174
189
 
175
190
  ```jsonc
176
191
  "analyst": {
177
192
  "provider": "qwen-token-plan-cn",
178
- "model": "qwen3.8-max",
193
+ "model": "qwen4-max",
179
194
  "fallbackModels": ["deepseek-account/deepseek-flash", "deepseek-official/deepseek-flash", "deepseek-official/deepseek-v4-pro"]
180
195
  }
181
196
  ```
182
197
 
183
198
  ## 5. Settings panel
184
199
 
185
- Edit roles and model bindings (add or remove roles) under Settings → 角色配置; a save applies to new
186
- sessions, and in-flight sessions are unaffected.
200
+ - **Entry**: Settings → 角色配置.
201
+ - **Layout**: role list on the left, one-role editor on the right; one role at a time.
202
+ - **Drafts**: switching roles keeps every draft; only Save writes the table, and saved routes apply to new sessions.
203
+ - **Disabled state**: Save and Discard are disabled while there are no unsaved changes; edit any field to enable them. Use the X in the top-right to close the panel.
204
+ - **Custom roles**: removable from the list or the editor; built-in roles have no remove control.
205
+ - **Fallback routes**: read-only in configured order, with an explicit empty-chain message; they show saved configuration, not the route actually used at runtime.
206
+ - **Failures**: validation, write, and conflict failures keep the draft so you can fix it and retry, or discard it explicitly.
207
+
208
+ <p align="center">
209
+ <img src="assets/screenshots/rolegroup-settings-panel.png" alt="Settings → 角色配置: role list on the left, one-role editor on the right, persistent save bar at the bottom" width="820">
210
+ </p>
211
+
212
+ <sub><i>Settings → 角色配置: one role at a time; switching keeps every draft, and the save bar stays visible.</i></sub>
187
213
 
188
214
  ## 6. Diagnostics
189
215
 
190
- `/rolegroup doctor` reads the `$DSH_HOME/plugins/dsh-rolegroup/last-startup.json` snapshot and compares it
191
- with the live llm service. It lists each role's name, bound model, provider, and whether the model is
192
- available, with repair hints when something is wrong. When a built-in fallback is in effect it says so
193
- ("primary X unavailable, using built-in fallback Y").
216
+ `/rolegroup doctor` reads the `$DSH_HOME/plugins/dsh-rolegroup/last-startup.json` snapshot and compares it with the live llm service. It lists each role's name, bound model, provider, and whether the model is available, with repair hints when something is wrong. When a built-in fallback is in effect it says so ("primary X unavailable, using built-in fallback Y").
194
217
 
195
- - `/rolegroup doctor`: diagnose.
196
- - `/rolegroup init`: export the **current effective bindings** as JSONC text (printed, nothing written). As of
197
- v0.11 it is a record/comparison tool only — `rolegroup.jsonc` is no longer a configuration source.
218
+ | Command | What it does |
219
+ |---|---|
220
+ | `/rolegroup doctor` | Diagnose the current bindings and availability |
221
+ | `/rolegroup init` | Print the current effective bindings as JSONC (nothing written) |
222
+ | `/rg <task>` | Inject the delegate-by-role directive (main session) |
198
223
 
199
- > On a fresh machine, run `/rolegroup doctor` first to see which roles' primary routes are unavailable; change
200
- > bindings in the panel.
224
+ > On a fresh machine, run `/rolegroup doctor` first to see which roles' primary routes are unavailable; change bindings in the panel.
201
225
 
202
226
  Example:
203
227
 
204
- > If a role's provider is not registered, an error block is appended below the table and the provider is
205
- > marked ❌. The role is not registered. This matters most for a fallback role: a skipped fallback route does
206
- > not exist. The built-in `fallback` role uses `deepseek-official` because that provider is always registered:
228
+ > If a role's provider is not registered, an error block is appended below the table and the provider is marked ❌. The role is not registered. This matters most for a fallback role: a skipped fallback route does not exist. The built-in `fallback` role uses `deepseek-official` because that provider is always registered:
207
229
 
208
230
  ```
209
231
  ❌ fallback:provider "example-provider" 当前未注册(在用:deepseek-official, kimi-coding, qwen-token-plan-cn)
@@ -211,15 +233,14 @@ Example:
211
233
  ```
212
234
 
213
235
  ```
214
- dsh-rolegroup doctor — 8 个在册角色
215
- analyst qwen-token-plan-cn/qwen3.8-max ✅ ✅
236
+ dsh-rolegroup doctor — 7 个在册角色
237
+ analyst qwen-token-plan-cn/qwen4-max ✅ ✅
216
238
  planner kimi-coding/k3.1-pro ✅ ✅
217
239
  …
218
240
  ✅ 无异常
219
241
  ```
220
242
 
221
- Also: a snapshot older than 7 days, or one that looks hand-edited, gets a ⚠️ but the table is still printed;
222
- when the llm service is down the availability column shows ➖.
243
+ Also: a snapshot older than 7 days, or one that looks hand-edited, gets a ⚠️ but the table is still printed; when the llm service is down the availability column shows ➖.
223
244
 
224
245
  ## 7. Development
225
246
 
@@ -230,11 +251,7 @@ npm test # offline smoke suite (plain Node); pretest runs link:d
230
251
  npm run build:client # after editing src/client/** or lib/roles.js
231
252
  ```
232
253
 
233
- For the install order and why, see §2 "From source". Without `npm install`, `npm test` fails with
234
- `ERR_MODULE_NOT_FOUND: esbuild`. Without `link:deps`, dsh prints
235
- `无法使用部署树的 @deepseek-ai/schemastery …` at startup and the plugin runs host-only: role tools still
236
- work, but the Settings section is missing. `pretest` runs `link:deps` automatically, but it likewise does
237
- not overwrite an existing real copy.
254
+ For the install order and why, see §2 "From source". Without `npm install`, `npm test` fails with `ERR_MODULE_NOT_FOUND: esbuild`. Without `link:deps`, dsh prints `无法使用部署树的 @deepseek-ai/schemastery …` at startup and the plugin runs host-only: role tools still work, but the Settings section is missing. `pretest` runs `link:deps` automatically, but it likewise does not overwrite an existing real copy.
238
255
 
239
256
  Layout:
240
257
 
@@ -248,11 +265,10 @@ Layout:
248
265
 
249
266
  ## 8. Credits
250
267
 
251
- The role (category) to model binding, the persona convention, and the rule that role subagents cannot
252
- delegate again are inspired by [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent) ("omo"). The
253
- model pairings are not copied from omo; this plugin's bindings are decided by its own configuration and
254
- evaluation.
268
+ The role (category) to model binding, the persona convention, and the rule that role subagents cannot delegate again are inspired by [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent) ("omo"). The model pairings are not copied from omo; this plugin's bindings are decided by its own configuration and evaluation.
269
+
270
+ More dsh plugins: [Awesome DSH Plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin).
255
271
 
256
272
  ## 9. License
257
273
 
258
- MIT
274
+ MIT © Zhou.XiaoNing. See [LICENSE](LICENSE).