dsh-super-code 0.3.8 → 0.3.10
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/README.en.md +169 -0
- package/README.md +105 -175
- package/client/index.js +594 -260
- package/cordis.patch.yml +3 -7
- package/docs/Acknowledgements.md +38 -67
- package/docs/Changelog.md +176 -88
- package/docs/Compatibility.md +133 -278
- package/docs/EvaluationResults.md +176 -150
- package/docs/UsageGuide.md +218 -223
- package/docs/en/Acknowledgements.md +76 -0
- package/docs/en/Changelog.md +176 -0
- package/docs/en/Compatibility.md +181 -0
- package/docs/en/EvaluationResults.md +240 -0
- package/docs/en/UsageGuide.md +321 -0
- package/docs/images/agent-tree-preview.png +0 -0
- package/docs/images/agent-tree.png +0 -0
- package/docs/images/install-tgz-preview.png +0 -0
- package/docs/images/install-tgz.png +0 -0
- package/docs/images/preset-settings-preview.png +0 -0
- package/docs/images/preset-settings.png +0 -0
- package/docs/images/task-status-preview.png +0 -0
- package/docs/images/task-status.png +0 -0
- package/lib/connection/approvals.d.ts +21 -0
- package/lib/connection/approvals.d.ts.map +1 -0
- package/lib/connection/approvals.js +83 -0
- package/lib/connection/approvals.js.map +1 -0
- package/lib/connection/client.d.ts +8 -0
- package/lib/connection/client.d.ts.map +1 -0
- package/lib/connection/client.js +34 -0
- package/lib/connection/client.js.map +1 -0
- package/lib/connection/guidance.d.ts +10 -0
- package/lib/connection/guidance.d.ts.map +1 -0
- package/lib/connection/guidance.js +27 -0
- package/lib/connection/guidance.js.map +1 -0
- package/lib/connection/http.d.ts.map +1 -1
- package/lib/connection/http.js +83 -16
- package/lib/connection/http.js.map +1 -1
- package/lib/connection/service.d.ts +3 -1
- package/lib/connection/service.d.ts.map +1 -1
- package/lib/connection/service.js +8 -0
- package/lib/connection/service.js.map +1 -1
- package/lib/connection/store.d.ts.map +1 -1
- package/lib/connection/store.js +2 -0
- package/lib/connection/store.js.map +1 -1
- package/lib/connection/tasks.d.ts +41 -1
- package/lib/connection/tasks.d.ts.map +1 -1
- package/lib/connection/tasks.js +154 -31
- package/lib/connection/tasks.js.map +1 -1
- package/lib/connection/types.d.ts +71 -2
- package/lib/connection/types.d.ts.map +1 -1
- package/lib/connection/types.js +5 -3
- package/lib/connection/types.js.map +1 -1
- package/lib/connection-cli.d.ts +3 -0
- package/lib/connection-cli.d.ts.map +1 -0
- package/lib/connection-cli.js +40 -0
- package/lib/connection-cli.js.map +1 -0
- package/lib/core/deletion-command.d.ts.map +1 -1
- package/lib/core/deletion-command.js +2 -1
- package/lib/core/deletion-command.js.map +1 -1
- package/lib/core/windows-runtime.d.ts +16 -0
- package/lib/core/windows-runtime.d.ts.map +1 -0
- package/lib/core/windows-runtime.js +123 -0
- package/lib/core/windows-runtime.js.map +1 -0
- package/lib/dsh/budget-settings.d.ts +2 -0
- package/lib/dsh/budget-settings.d.ts.map +1 -1
- package/lib/dsh/budget-settings.js +9 -3
- package/lib/dsh/budget-settings.js.map +1 -1
- package/lib/dsh/budgets.d.ts +2 -0
- package/lib/dsh/budgets.d.ts.map +1 -1
- package/lib/dsh/budgets.js +6 -0
- package/lib/dsh/budgets.js.map +1 -1
- package/lib/dsh/connection-approval.d.ts +5 -0
- package/lib/dsh/connection-approval.d.ts.map +1 -0
- package/lib/dsh/connection-approval.js +72 -0
- package/lib/dsh/connection-approval.js.map +1 -0
- package/lib/dsh/connection-history.d.ts +6 -0
- package/lib/dsh/connection-history.d.ts.map +1 -0
- package/lib/dsh/connection-history.js +52 -0
- package/lib/dsh/connection-history.js.map +1 -0
- package/lib/dsh/connection-host.d.ts +36 -3
- package/lib/dsh/connection-host.d.ts.map +1 -1
- package/lib/dsh/connection-host.js +97 -19
- package/lib/dsh/connection-host.js.map +1 -1
- package/lib/dsh/connection.d.ts.map +1 -1
- package/lib/dsh/connection.js +4 -1
- package/lib/dsh/connection.js.map +1 -1
- package/lib/dsh/index.d.ts.map +1 -1
- package/lib/dsh/index.js +4 -0
- package/lib/dsh/index.js.map +1 -1
- package/lib/dsh/official-windows-shell.d.ts +4 -0
- package/lib/dsh/official-windows-shell.d.ts.map +1 -0
- package/lib/dsh/official-windows-shell.js +128 -0
- package/lib/dsh/official-windows-shell.js.map +1 -0
- package/lib/dsh/windows-shell.d.ts +53 -0
- package/lib/dsh/windows-shell.d.ts.map +1 -0
- package/lib/dsh/windows-shell.js +182 -0
- package/lib/dsh/windows-shell.js.map +1 -0
- package/package.json +28 -16
- package/presets/super-code/agent.cordis.yml +3 -7
- package/runtime/windows/README.md +45 -0
- package/runtime/windows/arm64-busybox.exe.gz +0 -0
- package/runtime/windows/bash.exe.gz +0 -0
- package/runtime/windows/grep.exe.gz +0 -0
- package/runtime/windows/licenses/BusyBox-LICENSE.txt +348 -0
- package/runtime/windows/licenses/GPL-3.0.txt +674 -0
- package/runtime/windows/licenses/LGPL-3.0.txt +165 -0
- package/runtime/windows/licenses/MSYS-COPYING.LIB +165 -0
- package/runtime/windows/licenses/MSYS-COPYING.RUNTIME +674 -0
- package/runtime/windows/licenses/PCRE-LICENCE.txt +93 -0
- package/runtime/windows/licenses/ncurses-COPYING.txt +29 -0
- package/runtime/windows/manifest.json +236 -0
- package/runtime/windows/msys-2.0.dll.gz +0 -0
- package/runtime/windows/msys-iconv-2.dll.gz +0 -0
- package/runtime/windows/msys-intl-8.dll.gz +0 -0
- package/runtime/windows/msys-pcre-1.dll.gz +0 -0
- package/runtime/windows/sources/busybox-w32-FRP-6354-g5f09fb446.tgz +0 -0
- package/runtime/windows/sources.json +45 -0
- package/runtime/windows/x64-busybox.exe.gz +0 -0
package/docs/UsageGuide.md
CHANGED
|
@@ -1,326 +1,321 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 使用说明
|
|
2
2
|
|
|
3
|
-
[
|
|
3
|
+
中文 · [English](en/UsageGuide.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
首次使用请先阅读 [README](../README.md) 的安装与使用部分。本文说明各项功能的细节。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- [模型](#模型)
|
|
8
|
+
- [找不到预设](#找不到预设)
|
|
9
|
+
- [设置页](#设置页)
|
|
10
|
+
- [预设版本与重装](#预设版本与重装)
|
|
11
|
+
- [侧边栏](#侧边栏)
|
|
12
|
+
- [批量工具调用](#批量工具调用)
|
|
13
|
+
- [运行预算](#运行预算)
|
|
14
|
+
- [Windows 命令环境](#windows-命令环境)
|
|
15
|
+
- [删除保护](#删除保护)
|
|
16
|
+
- [MCP 连接](#mcp-连接)
|
|
17
|
+
- [前端 Skill](#前端-skill)
|
|
8
18
|
|
|
9
|
-
|
|
19
|
+
## 模型
|
|
10
20
|
|
|
11
|
-
|
|
21
|
+
插件不单独配置模型。已有可用模型时直接使用;若没有,请在 Harness「设置 → 模型」中添加提供方,再在输入框下方选择模型和推理等级。
|
|
12
22
|
|
|
13
|
-
|
|
23
|
+
子 Agent 默认使用父 Agent 的模型。权限和工具由 Harness 管理。
|
|
14
24
|
|
|
15
|
-
|
|
25
|
+
## 找不到预设
|
|
16
26
|
|
|
17
|
-
|
|
27
|
+
请先确认插件已启用,再对照[兼容性](Compatibility.md)核实宿主版本,然后按宿主版本处理:
|
|
18
28
|
|
|
19
|
-
|
|
29
|
+
**Harness 0.1.7 及以后(声明式预设)**:预设由插件声明、宿主加载。请在「设置 → Super Code 模式」中点击「安装预设」。宿主未开放管理接口时,页面会直接提示。
|
|
20
30
|
|
|
21
|
-
|
|
31
|
+
**Harness 0.1.5 / 0.1.6(目录预设)**:插件首次加载时会自动安装一份用户预设。若未出现,请在「设置 → Super Code 模式」中手动安装。
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
- 默认标识符 `super-code` 被占用时,可改用其他标识符,原有预设不会被覆盖。
|
|
34
|
+
- 主动删除该副本后,重启不会自动重新安装,需要再次手动安装。
|
|
24
35
|
|
|
25
|
-
|
|
36
|
+
插件 0.2.0 以前,设置入口位于「插件 → 插件配置」。
|
|
26
37
|
|
|
27
|
-
##
|
|
38
|
+
## 设置页
|
|
28
39
|
|
|
29
|
-
Super Code
|
|
40
|
+
「设置 → Super Code 模式」包含五个标签页:
|
|
30
41
|
|
|
31
|
-
|
|
42
|
+
| 标签页 | 内容 |
|
|
43
|
+
|---|---|
|
|
44
|
+
| 首页 | 预设状态与版本、删除保护等级、MCP 开关、在线与历史对话数 |
|
|
45
|
+
| 预设配置 | 安装、重装、重命名、Windows 命令环境 |
|
|
46
|
+
| 上下文配置 | [运行预算](#运行预算) |
|
|
47
|
+
| 删除保护 | [删除保护](#删除保护) |
|
|
48
|
+
| 连接 | [MCP 连接](#mcp-连接) |
|
|
32
49
|
|
|
33
|
-
|
|
50
|
+
切换标签页不会丢失未保存的输入。
|
|
34
51
|
|
|
35
|
-
|
|
52
|
+
### 名称与语言
|
|
36
53
|
|
|
37
|
-
|
|
54
|
+
- 标识符用于选择预设;显示名称可单独修改,支持中文和空格,最多 120 字。
|
|
55
|
+
- 默认名称和描述跟随 Harness 的中英文设置。用户修改过的字段,插件不会改动。
|
|
56
|
+
- 切换语言只影响显示字段,不改变预设内容和版本。
|
|
57
|
+
- 旧版 Harness 会缓存预设列表,因此文案变化后页面会自动刷新一次。
|
|
58
|
+
- 同一宿主的预设文件只能使用一种语言,多个客户端无法同时显示不同语言。
|
|
59
|
+
- 安装目录只读或 YAML 无法安全识别时可能同步失败,可在设置页刷新后重试。
|
|
38
60
|
|
|
39
|
-
|
|
61
|
+
## 预设版本与重装
|
|
40
62
|
|
|
41
|
-
|
|
63
|
+
设置页分别显示**插件版本**和**预设版本**。
|
|
42
64
|
|
|
43
|
-
|
|
65
|
+
- 两者一致:表示预设与已安装的插件同步,不代表 npm 上没有更新版本。
|
|
66
|
+
- 旧预设未记录版本:显示「未记录版本」,不视为最新。
|
|
67
|
+
- 插件升级不会自动更新已安装的预设。如需使用新预设,请重新安装。
|
|
44
68
|
|
|
45
|
-
|
|
69
|
+
**重装流程**:点击「重新安装预设」→ 确认框列出将被替换的预设及新名称、标识符 → 核对后确认。
|
|
46
70
|
|
|
47
|
-
|
|
71
|
+
- 可从列表中移除条目,但不能在列表清空后确认。取消或按 Esc 不会产生任何改动。
|
|
72
|
+
- 重装会覆盖旧预设内容,请先自行备份自定义内容。
|
|
73
|
+
- 已有会话继续使用旧预设,新会话使用新预设。
|
|
48
74
|
|
|
49
|
-
|
|
75
|
+
**安全措施**:
|
|
50
76
|
|
|
51
|
-
|
|
77
|
+
- 只替换能够核实由本插件安装的预设(目录式核对安装记录、UUID、路径和目录身份;声明式核对来源标记或安装记录)。未标记的旧副本和同名声明不会被改动。
|
|
78
|
+
- 旧内容备份在 `.super-code-backup-*`:目录式位于用户预设根目录下,声明式位于当前 profile 下(安装记录为 `.super-code-presets.json`)。
|
|
79
|
+
- 安装失败时自动恢复;进程意外中断时,可从备份手动恢复。
|
|
52
80
|
|
|
53
|
-
|
|
54
|
-
| --- | --- |
|
|
55
|
-
| 关闭 / Off | 不添加删除保护提示,不额外拦截命令。No deletion instructions or extra command interception. |
|
|
56
|
-
| 宽松 / Relaxed(默认 / default) | 默认使用 `trash`,脚本中也建议使用;用户明确要求时可使用 `rm`,无需本插件额外二次确认。Prefer recoverable trash, including in scripts; explicit user requests may use `rm` without additional plugin confirmation. |
|
|
57
|
-
| 严格 / Strict | 脚本也禁止直接使用 `rm`;识别到永久删除命令时,仅临时文件或构建产物清理可经用户逐次二次确认放行。Scripts must also avoid `rm`; recognized permanent deletion requires one-time confirmation for each temporary-file or build-artifact cleanup. |
|
|
81
|
+
## 侧边栏
|
|
58
82
|
|
|
59
|
-
|
|
83
|
+
在右侧边栏选择「Super Code」,三个部分互斥展开,默认展开任务;点击当前标题可全部收起。切换后保留阅读位置、筛选条件和草稿。界面跟随 Harness 的中英文设置。
|
|
60
84
|
|
|
61
|
-
|
|
85
|
+
### 任务
|
|
62
86
|
|
|
63
|
-
|
|
87
|
+
只读,展示会话中已有的记录:
|
|
64
88
|
|
|
65
|
-
|
|
89
|
+
- **目标**:已记录的任务目标;未记录时显示用户原话。
|
|
90
|
+
- **步骤**:模型记录的待办事项,显示「已完成/总数」。没有步骤时不会生成计划或进度。
|
|
91
|
+
- **工具调用**:按工具汇总成功、失败与运行状态。
|
|
92
|
+
- **文件**:已成功执行、且能从工具参数或 diff 确认的文件改动,包括 PTC 中的嵌套调用。
|
|
66
93
|
|
|
67
|
-
|
|
94
|
+
注意事项:
|
|
68
95
|
|
|
69
|
-
|
|
96
|
+
- 运行停止不等于任务完成。
|
|
97
|
+
- 文件列表并非完整的 Git diff:终端或外部脚本造成的间接修改可能未被记录;历史改动也不代表文件当前仍有差异。失败、未完成、只读操作以及子 Agent 继承的历史均不计入。
|
|
98
|
+
- 列表全部展开并采用虚拟滚动,长列表也能流畅显示。超出显示上限时会提示,完整内容可在详情中查看。
|
|
99
|
+
- 不修改提示词、模型请求或工具定义,也不向模型上下文写入内容。
|
|
70
100
|
|
|
71
|
-
|
|
101
|
+
### 协作执行
|
|
72
102
|
|
|
73
|
-
|
|
103
|
+
Agent 执行树,显示每个 Agent 的状态、用量和缓存率。
|
|
74
104
|
|
|
75
|
-
|
|
105
|
+
- 拖动空白处可平移,使用滚轮或按钮可缩放。
|
|
106
|
+
- 点击节点会在侧边栏新标签页中打开详情,主对话不切换。
|
|
107
|
+
- 详情按对话展示:用户任务、Agent 回复、可展开的工具调用及结果。顶部显示状态、Token 和缓存,展开「详情」可查看更多用量、任务记录和记忆使用记录。
|
|
108
|
+
- 运行动画遵循系统的「减少动态效果」设置。
|
|
76
109
|
|
|
77
|
-
|
|
110
|
+
[任务](images/task-status.png)和[执行树截图](images/agent-tree.png)使用当前插件、官方前端组件及演示数据渲染,仅展示界面,不代表模型效果。
|
|
78
111
|
|
|
79
|
-
|
|
112
|
+
### 记忆库
|
|
80
113
|
|
|
81
|
-
|
|
114
|
+
先选择「当前项目」或「全局偏好」,再按主题浏览或搜索(主题、摘要、标识符),点击条目可查看详情和来源。支持新增、编辑和删除(需确认)。手动修改的条目标记为「手动维护」,只保留当前内容,不保留版本历史。
|
|
82
115
|
|
|
83
|
-
|
|
116
|
+
记忆分为三层:
|
|
84
117
|
|
|
85
|
-
|
|
|
118
|
+
| 层级 | 内容 | 范围 |
|
|
86
119
|
|---|---|---|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
90
|
-
官方预设开关默认关闭,不影响自定义预设;开启后也只修改通用预算,不改变官方预设的工具和提示词。修改保存后对新建 Agent 生效,运行中的 Agent 保留原配置。切换顶部标签不会丢失尚未保存的输入。
|
|
91
|
-
|
|
92
|
-
The official-preset switch is off by default and leaves custom presets untouched. When enabled, it changes only common budgets, preserving official tools and prompts. Saved changes apply to new Agents; running Agents keep their configuration. Switching tabs retains unsaved input.
|
|
93
|
-
|
|
94
|
-
留空沿用插件默认预算;“恢复默认”会清除界面的覆盖,回到插件加载配置,未配置的字段使用旧预算。用户已保存的配置优先生效。保存失败时保留输入,若提示预算已在别处修改,先重新读取再调整。
|
|
95
|
-
|
|
96
|
-
Leave fields blank to inherit plugin defaults. “Reset to defaults” clears UI overrides and restores the plugin configuration, using the older budgets for unconfigured fields. Saved user values take precedence. Failed saves retain your input. If budgets changed elsewhere, reload before editing again.
|
|
97
|
-
|
|
98
|
-
也可以通过插件的 `budgets` 配置调整通用预算;将 `applyToOfficialPresets` 设为 `true` 可同时应用到上述四种官方预设。保存预算不会重启 Agent。
|
|
99
|
-
|
|
100
|
-
You can also set common budgets in the plugin's `budgets` configuration. Set `applyToOfficialPresets: true` to include the four official presets above. Saving budgets does not restart Agents.
|
|
101
|
-
|
|
102
|
-
旧宿主未提供 `ptcRuntime` 时,“批量工具执行”的时限输入框会禁用;压缩预算和任务记忆容量仍可设置。
|
|
103
|
-
|
|
104
|
-
On older hosts without `ptcRuntime`, batch-tool deadline inputs are disabled; compression and task-memory budgets remain configurable.
|
|
105
|
-
|
|
106
|
-
下面是插件已默认使用的旧预算,无需再将它手动添加到 `name: dsh-super-code` 的加载配置中。需要自定义时,可以在界面或加载项的 `config.budgets` 中修改对应字段。
|
|
107
|
-
|
|
108
|
-
The plugin already uses these older budgets by default; there is no need to add them manually to the `dsh-super-code` entry. Customize individual fields in the UI or the entry's `config.budgets` when needed.
|
|
109
|
-
|
|
110
|
-
```yaml
|
|
111
|
-
budgets:
|
|
112
|
-
pressureBasis: window
|
|
113
|
-
thresholdRatio: 0.8
|
|
114
|
-
retainRatio: 0.16
|
|
115
|
-
summaryMaxTokens: 8192
|
|
116
|
-
compactionRetries: 1
|
|
117
|
-
maxOverflowRetries: 1
|
|
118
|
-
ptcTimeoutMs: 600000
|
|
119
|
-
ptcMaxTimeoutMs: 600000
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
`pressureBasis: window` 为插件默认,按完整上下文窗口计算;选择 `host` 则按当前宿主策略计算。`retainRatio` 必须小于 `thresholdRatio`。PTC 两项的单位是毫秒,包含工具等待时间;显式更短的调用期限仍然生效,上限不会超过宿主允许值。PTC 时间覆盖需要提供 `ptcRuntime` 的新版宿主;旧版的 CPU 忙碌计时与新版总耗时计时不能等同。这些配置不改变执行后端、权限或取消行为。
|
|
123
|
-
|
|
124
|
-
`pressureBasis: window` is the plugin default and uses the full context window; choose `host` to follow the current host budget policy. `retainRatio` must be lower than `thresholdRatio`. PTC values are milliseconds, including tool waits; explicit shorter call deadlines still apply, and the host ceiling remains authoritative. PTC overrides require a newer host with `ptcRuntime`. The old busy-CPU timer and the new elapsed timer are different. These settings preserve the host execution backend, permissions, and cancellation.
|
|
125
|
-
|
|
126
|
-
Super Code 专属的 `maxTasks`(默认 32)和 `maxContextBytes`(默认 32,768),分别控制会话中活跃任务记录数量和任务记忆上下文的字节预算。增加预算会占用更多上下文;通常保持默认即可。
|
|
127
|
-
|
|
128
|
-
Super Code also has `maxTasks` (default 32) and `maxContextBytes` (default 32,768), which bound the active task records and task-memory context bytes per conversation. Larger budgets use more context; the defaults are usually sufficient.
|
|
129
|
-
|
|
130
|
-
## 找不到预设 · Can't Find the Preset?
|
|
131
|
-
|
|
132
|
-
先确认插件已启用,并按[兼容矩阵](Compatibility.md)核对宿主版本与实际依赖。插件按宿主提供的预设机制选择以下两条路径。
|
|
133
|
-
|
|
134
|
-
First confirm the plugin is enabled and check the host version and installed dependencies against the [compatibility matrix](Compatibility.md). The plugin uses the preset mechanism provided by the host.
|
|
135
|
-
|
|
136
|
-
### Harness 0.1.7 / 0.2.0 / 0.2.1:声明式预设 · Declarative Presets
|
|
137
|
-
|
|
138
|
-
Super Code 由插件 bundle 声明,宿主负责加载。从 0.3.1 起,未安装时可以在“设置”→ **Super Code** 安装预设;已安装时提供“重新安装预设”,确认后按所填名称和标识符替换。声明保存在当前 profile 的补丁层,通过宿主公开接口加载,不需要用户预设目录。宿主未开放管理接口时,页面会明确提示。
|
|
139
|
-
|
|
140
|
-
The plugin bundle declares Super Code and the host loads it. From 0.3.1, use “Settings” → **Super Code** to install a missing preset or confirm reinstallation of an installed preset with the entered name and identifier. Declarations persist in the current profile's patch layer and load through public host APIs; no user preset directory is needed. Hosts without management APIs show an explicit notice.
|
|
141
|
-
|
|
142
|
-
声明式预设的默认名称和描述从 0.3.1 起跟随中英文设置,已自定义的字段保留。语言变化只调整展示字段,不更新旧预设的内容或版本;确认重装才使用当前插件随包的组合。
|
|
143
|
-
|
|
144
|
-
From 0.3.1, default declarative preset names and descriptions follow Chinese/English settings while custom fields remain intact. Language changes update display fields only, retaining the older preset's content and version. Confirmed reinstallation uses the composition shipped with the current plugin.
|
|
145
|
-
|
|
146
|
-
插件管理中的展示信息独立于预设声明:0.2.1 通过导出的语言资源提供 `Super Code 模式` / `Super Code` 和对应描述,支持新版宿主读取根路径及子路径的展示信息。
|
|
147
|
-
|
|
148
|
-
Plugin management metadata is separate from the preset declaration. Version 0.2.1 exports locale resources for `Super Code 模式` / `Super Code` and their descriptions, allowing newer hosts to read metadata for the root and plugin subpaths.
|
|
120
|
+
| 任务状态 | 当前目标、约束、进展、验证记录 | 当前会话 |
|
|
121
|
+
| 项目记忆 | 有来源的项目事实、经验和约定 | 同一工作区路径,按主题划分 |
|
|
122
|
+
| 全局偏好 | 用户明确要求跨项目遵守的偏好 | 同一 Harness 存储目录 |
|
|
149
123
|
|
|
150
|
-
|
|
124
|
+
- 如需长期保留某项约定,可直接告知 Agent。是否保存成功,以工具返回成功且记忆库中可见为准。
|
|
125
|
+
- Agent 保存项目记忆时必须关联真实的工具结果;保存全局偏好时必须有用户原话和跨项目意图。
|
|
126
|
+
- 不同路径的项目或 Git worktree 不共享项目记忆。
|
|
127
|
+
- 记忆保存在本机宿主中,不写入项目文件,也不会整库发送给模型。每次最多自动带入当前主题的 4 条摘要(≤2 KiB)和全局偏好的 4 条摘要(≤1 KiB),详情需由 Agent 主动读取。
|
|
128
|
+
- 记忆不能覆盖当前指令,不能用于授权,也不能证明代码仍与记录时一致。
|
|
129
|
+
- 历史会话的记忆可直接查看,无需恢复 Agent 或调用模型。
|
|
151
130
|
|
|
152
|
-
|
|
131
|
+
### Agent 的记忆使用记录
|
|
153
132
|
|
|
154
|
-
|
|
133
|
+
在执行树中点击节点 → 展开「详情」→ 展开「记忆使用记录」。记录区分带入上下文、读取摘要、读取详情、保存和删除,点击记录可跳转到记忆库中的对应条目。
|
|
155
134
|
|
|
156
|
-
|
|
135
|
+
- 这是宿主记录的动作,不代表模型已理解或遵守。
|
|
136
|
+
- 子 Agent 继承的父会话历史不计为其自身的读取;失败的调用不计为成功读取。
|
|
137
|
+
- 最多显示最近 100 条,完整记录见会话日志。
|
|
138
|
+
- 条目之后被修改或删除时,记录仍保留,但记忆库只显示当前内容。
|
|
157
139
|
|
|
158
|
-
|
|
140
|
+
## 批量工具调用
|
|
159
141
|
|
|
160
|
-
|
|
142
|
+
Super Code 使用 Harness 原生 PTC:在一次模型调用中组合多个工具操作,例如同时读取多个互不相关的文件,获得结果后再决定下一步。无需另选模式。
|
|
161
143
|
|
|
162
|
-
|
|
144
|
+
- 相互独立的读取并行执行;写入、测试、状态变更和存在依赖的步骤按顺序执行。
|
|
145
|
+
- 部分失败时保留成功的结果,只重试失败或过期的读取。
|
|
146
|
+
- 插件声明自身任务和记忆工具中可并行的动作,未识别的动作默认不并行。其他工具以其在 Harness 中的声明为准。
|
|
147
|
+
- 权限确认、取消和结果保存由宿主管理。
|
|
163
148
|
|
|
164
|
-
|
|
149
|
+
批量调用减少的是模型与工具之间的往返次数,不保证每个操作都更快。
|
|
165
150
|
|
|
166
|
-
##
|
|
151
|
+
## 运行预算
|
|
167
152
|
|
|
168
|
-
|
|
153
|
+
位于「上下文配置」标签页。插件默认已使用效果更好的旧预算,通常无需修改。括号内显示宿主自身的默认值,便于对比。
|
|
169
154
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
From 0.3.3 onward, newly installed or reinstalled Super Code presets include this integration. Existing user copies or custom declarations need reinstallation through “Settings” → **Super Code** after saving any customizations. Updating the plugin preserves the old preset version, and Settings flags any mismatch. Existing presets and global skill directories are not rewritten automatically. Project/user skills with the same name retain their normal host precedence.
|
|
175
|
-
|
|
176
|
-
浏览器验证方法会指导 Agent 复用可用会话,保留已完成步骤,并从实际失败阶段恢复。它是方法指导;本身不实现强制防循环,也不会自动写入长期记忆。是否提升前端成品质量需要单独的实际任务评测,不能用安装测试或 SWE 成绩代替。
|
|
177
|
-
|
|
178
|
-
Browser guidance reuses working sessions and confirmed progress, recovering at the actual failed stage. It is workflow guidance, with no enforced loop detector or automatic long-term memory writes. Frontend quality improvements require separate real-task evaluation; installation checks or SWE scores do not establish them.
|
|
179
|
-
|
|
180
|
-
## 名称与语言 · Names and Language
|
|
181
|
-
|
|
182
|
-
0.3.1 的名称同步和自定义安装名称同时支持目录式与声明式预设。
|
|
183
|
-
|
|
184
|
-
Version 0.3.1 supports display-language synchronization and custom installation names for directory and declarative presets.
|
|
185
|
-
|
|
186
|
-
标识符和显示名称是两回事:标识符用于选择预设,显示名称可以单独修改。默认名称会跟随 Harness 的中英文语言设置;自定义名称可以包含中文和空格,例如 `Super Code 模式`,最多 120 个字符。插件只更新仍保持默认值的名称和描述,不会改动你的自定义内容。
|
|
187
|
-
|
|
188
|
-
The identifier selects the preset, while its display name can be changed separately. The default name follows Harness's Chinese/English language setting. Custom names can include Chinese characters and spaces, such as `Super Code 模式`, up to 120 characters. The plugin updates a name or description only while it still has the default value; your custom text stays as it is.
|
|
189
|
-
|
|
190
|
-
旧版 Harness 会缓存预设列表,因此文案改变后页面会自动刷新一次,没有变化就不会刷新。同一宿主的预设文件共用一种展示语言,多个客户端不能同时显示不同语言的预设名称。只读安装目录或无法安全识别的 YAML 可能导致同步失败;可以在插件配置中刷新重试。
|
|
191
|
-
|
|
192
|
-
Older Harness versions cache the preset list, so the page refreshes once if the wording changes, but not otherwise. Preset files on one host share one display language: multiple clients can't show preset names in different languages at the same time. A read-only installation directory or YAML the plugin can't safely recognize may prevent synchronization; retry from the plugin configuration.
|
|
193
|
-
|
|
194
|
-
## 重装与备份 · Reinstallation and Backup
|
|
195
|
-
|
|
196
|
-
目录副本与声明式预设均支持此流程;插件只替换能够核实归属的预设。
|
|
197
|
-
|
|
198
|
-
This workflow supports directory copies and declarative presets. The plugin replaces only presets whose ownership can be verified.
|
|
199
|
-
|
|
200
|
-
已安装用户预设时,可以点“重新安装预设”。确认框会列出将被替换的预设及新名称、标识符,先核对再确认。可以从列表中移除条目,但全部移除后不能确认;取消或按 Escape 不会改动预设。重装会重置旧副本的内容,所以自定义内容请先自行留存。
|
|
201
|
-
|
|
202
|
-
If a user preset is already installed, you can choose “Reinstall preset”. The confirmation dialog shows which preset will be replaced, along with its new name and identifier. Check the list before confirming. You can remove entries, but can't confirm an empty list; Cancel or Escape leaves everything unchanged. Reinstallation resets the old copy's contents, so save any custom changes you want to keep.
|
|
203
|
-
|
|
204
|
-
为避免误删,插件只会替换安装记录、目录内 UUID、路径及目录身份都能核对上的副本,不会自动删除旧版无标记副本。重装前的目录会保留在用户预设根目录的 `.super-code-backup-*/<旧标识符>` 下,且不会出现在预设列表中。安装失败时会自动恢复旧目录;若进程意外中断,也可从备份手动恢复。
|
|
205
|
-
|
|
206
|
-
To avoid removing the wrong files, the plugin replaces only copies whose installation record, UUID, path, and directory identity all match. It never automatically deletes unmarked legacy copies. The previous directory stays under `.super-code-backup-*/<old-id>` in the user preset root and won't appear in the preset list. An installation failure restores the old directory; after an unexpected interruption, you can recover it manually from the backup.
|
|
207
|
-
|
|
208
|
-
声明式宿主通过 bundle 来源标记,或匹配的安装记录、声明标识符和 UUID 核实归属;同名的无标记声明不会自动认领。旧声明及原 profile 补丁保存在当前 profile 的 `.super-code-backup-*` 中,安装记录位于 `.super-code-presets.json`。失败时尝试恢复原补丁和记录;若进程中断,可从备份恢复。已有会话继续使用宿主保留的旧预设组合,新会话使用重装后的版本。
|
|
209
|
-
|
|
210
|
-
Declarative hosts verify a bundle source marker or matching installation record, entry identity and UUID. Unmarked same-name declarations are not adopted automatically. The previous declaration and profile patch stay in `.super-code-backup-*` under the current profile; `.super-code-presets.json` stores ownership records. Failures attempt to restore the original patch and record; backups allow recovery after interruption. Existing sessions retain their old composition through the host; new sessions use the reinstalled version.
|
|
211
|
-
|
|
212
|
-
## Agent 执行树 · Agent Execution Tree
|
|
155
|
+
| 类型 | 包含 | 作用范围 |
|
|
156
|
+
|---|---|---|
|
|
157
|
+
| 通用预算 | 压缩比例、摘要上限、PTC 时限、重试次数 | 默认仅 Super Code;开启「同时应用到官方预设」后也作用于标准、PTC、极简和创造预设 |
|
|
158
|
+
| Super Code 专属 | 活跃任务记录上限、任务记忆容量 | 仅 Super Code |
|
|
213
159
|
|
|
214
|
-
|
|
160
|
+
- 「同时应用到官方预设」默认关闭,只修改预算,不修改官方预设的工具和提示词,也不影响自定义预设。
|
|
161
|
+
- 保存后对新建的 Agent 生效,运行中的 Agent 不受影响,也不会重启。
|
|
162
|
+
- 留空即使用插件默认值;「恢复默认」会清除界面上的覆盖值。
|
|
163
|
+
- 保存失败时保留输入;若提示预算已在别处修改,请先重新读取。
|
|
164
|
+
- 旧宿主没有 `ptcRuntime` 时,PTC 时限输入框不可用,其他预算仍可设置。
|
|
215
165
|
|
|
216
|
-
|
|
166
|
+
插件默认值如下(无需手动写入配置,仅填写需要修改的项):
|
|
217
167
|
|
|
218
|
-
|
|
168
|
+
```yaml
|
|
169
|
+
budgets:
|
|
170
|
+
pressureBasis: window # 按完整上下文窗口计算;host 表示沿用宿主策略
|
|
171
|
+
thresholdRatio: 0.8 # 用量达到 80% 时开始压缩
|
|
172
|
+
retainRatio: 0.16 # 保留最近 16% 的原文,必须小于 thresholdRatio
|
|
173
|
+
summaryMaxTokens: 8192 # 摘要上限
|
|
174
|
+
compactionRetries: 1 # 压缩追加尝试次数
|
|
175
|
+
maxOverflowRetries: 1 # 溢出重试次数
|
|
176
|
+
ptcTimeoutMs: 600000 # PTC 默认时限(毫秒,含工具等待)
|
|
177
|
+
ptcMaxTimeoutMs: 600000 # PTC 时限上限,不超过宿主上限
|
|
178
|
+
applyToOfficialPresets: false
|
|
179
|
+
maxTasks: 32 # Super Code:活跃任务记录数
|
|
180
|
+
maxContextBytes: 32768 # Super Code:任务记忆上下文字节数
|
|
181
|
+
```
|
|
219
182
|
|
|
220
|
-
|
|
183
|
+
- 调用中显式指定的更短时限仍然有效。
|
|
184
|
+
- 旧宿主的 PTC 按 CPU 忙碌时间计时,新宿主按总耗时计时,两者不可直接比较。
|
|
185
|
+
- 调大 `maxTasks`、`maxContextBytes` 会占用更多上下文,一般保持默认即可。
|
|
221
186
|
|
|
222
|
-
|
|
187
|
+
## Windows 命令环境
|
|
223
188
|
|
|
224
|
-
|
|
189
|
+
验证范围见[兼容性记录](Compatibility.md)。
|
|
225
190
|
|
|
226
|
-
|
|
191
|
+
Windows 宿主默认在 Super Code 预设中使用内置 GNU Bash、BusyBox 和 GNU grep,运行常见 Bash 命令无需额外安装 Git。Git、Node、Python 等开发工具仍需自行安装。macOS、Linux 沿用宿主原有环境。
|
|
227
192
|
|
|
228
|
-
|
|
193
|
+
在「预设配置 → 命令环境」关闭「使用内置 Bash(Windows)」,新启动的会话将改用宿主的 PowerShell。设置自动保存,运行中的 Agent 保留原有环境,子 Agent 继承会话环境和工具限制;已安装的旧预设需要先重新安装,才能使用新的命令环境入口。判断依据是 DSH 服务端系统,浏览器所在系统不影响选择。仅检测为 Windows 时可修改这里的开关;其他平台显示为灰色,悬浮提示「仅 Windows 生效」。
|
|
229
194
|
|
|
230
|
-
|
|
195
|
+
开启同一位置的「同时应用到官方预设」,也可让官方标准、PTC、创建模式使用内置 Bash,默认关闭。此选项与预算和删除保护的适用范围独立;关闭 Bash 总开关后,官方预设也使用原有 Shell,已保存的适用范围选择会保留。极简模式保留原有持久终端,自定义预设不自动修改。官方预设无需安装 Super Code 副本即可使用此设置。
|
|
231
196
|
|
|
232
|
-
|
|
197
|
+
运行时随插件提供,首次使用时离线准备到 `%LOCALAPPDATA%\dsh-super-code\shell`,不更改系统 PATH。设置页显示准备状态;准备失败时显示原因,关闭开关后可用宿主环境。命令失败不会换 Shell 重放。审批、删除保护和进程管理继续使用 DSH 的工具链。
|
|
233
198
|
|
|
234
|
-
|
|
199
|
+
官方 Windows 限权沙箱会阻止 MSYS 创建内部命名管道,因此 `read-only`、`workspace-write` 下的 Bash 调用会在命令执行前明确报错。确需运行时,Agent 可为**同一条命令**请求 DSH 的 `sandbox_permissions="danger-full-access"` 单次审批,并说明原因。只有批准的这次调用可以执行;拒绝、取消或禁用审批时不执行,也不会自动修改会话权限或切换 Shell。PTC 的 `run_code` 本身若需更大权限,仍须经过宿主对该程序的独立审批,Bash 的批准不授予外层程序权限。
|
|
235
200
|
|
|
236
|
-
|
|
201
|
+
这仍是 Windows 环境:BusyBox 不包含所有 GNU 选项,`.cmd` 的引号及原生程序的 `/` 参数也不等同于 Linux。MSYS 会自动转换部分路径;确需传递原样参数时,可仅对该次调用设置 `MSYS2_ARG_CONV_EXCL`,不要全局关闭转换。内置工具不包含 `trash`,也不会把永久删除伪装成回收站操作。ARM64 Windows 上的 Bash、grep 和 MSYS DLL 使用 x64 兼容执行。验证范围见[兼容性](Compatibility.md),组件来源与许可证见[运行时说明](../runtime/windows/README.md)。
|
|
237
202
|
|
|
238
|
-
|
|
203
|
+
## 删除保护
|
|
239
204
|
|
|
240
|
-
|
|
241
|
-
|---|---|---|
|
|
242
|
-
| 任务状态 / Task state | 当前目标、约束、进展与验证记录 / Goal, constraints, progress, and checks | 当前会话 / Current conversation |
|
|
243
|
-
| 项目记忆 / Project memory | 有来源的项目事实、经验与约定 / Sourced facts, experience, and agreements | 同一规范化工作区路径,并按任务主题区分 / Canonical workspace path, organized by task topic |
|
|
244
|
-
| 全局偏好 / Global preferences | 用户明确要求跨项目遵守的偏好 / Explicit cross-project user preferences | 同一 Harness 存储根目录 / Same Harness storage root |
|
|
205
|
+
位于「删除保护」标签页,默认为**宽松**模式。
|
|
245
206
|
|
|
246
|
-
|
|
207
|
+
| 模式 | 行为 |
|
|
208
|
+
|---|---|
|
|
209
|
+
| 关闭 | 不提示,不拦截 |
|
|
210
|
+
| 宽松(默认) | 提示 Agent 删除时默认使用可恢复的 `trash`,脚本中同样适用。用户明确要求使用 `rm` 时允许使用,插件不再二次确认 |
|
|
211
|
+
| 严格 | 脚本中也不允许直接使用 `rm`。识别到永久删除命令时,每次都需用户确认,仅放行临时文件或构建产物的清理 |
|
|
247
212
|
|
|
248
|
-
|
|
213
|
+
宽松模式提供给 Agent 的规则原文:**删除文件或目录默认用 `trash <path>`(可恢复);仅清理临时文件、构建产物且我已确认时才用 `rm`。**
|
|
249
214
|
|
|
250
|
-
|
|
215
|
+
- 默认仅保护 Super Code。「同时应用到官方预设」默认关闭(与预算中的同名开关相互独立)。
|
|
216
|
+
- 保存后对之后的命令生效。
|
|
217
|
+
- 旧配置 `true` 视为严格,`false` 视为关闭。
|
|
251
218
|
|
|
252
|
-
|
|
219
|
+
严格模式在终端命令执行前检查 `rm`、常见包装命令、内联 shell 脚本和 PowerShell 删除命令(如 `Remove-Item`),PTC 中的终端调用同样检查。
|
|
253
220
|
|
|
254
|
-
|
|
221
|
+
- 只有用户同意宿主弹出的一次性确认后才会放行;拒绝、取消或出错均会拦截。每次确认仅对当次有效。
|
|
222
|
+
- 没有 `trash` 时,Agent 应改用其他可恢复的方式或停止操作。
|
|
223
|
+
- 它不是系统沙箱:不检查外部脚本文件、混淆过的程序或各语言的删除 API。如需进程级隔离,请使用宿主沙箱。
|
|
255
224
|
|
|
256
|
-
|
|
225
|
+
宽松模式仅通过提示引导,不拦截命令,宿主原有的权限检查照常生效。
|
|
257
226
|
|
|
258
|
-
|
|
227
|
+
## MCP 连接
|
|
259
228
|
|
|
260
|
-
|
|
229
|
+
允许外部 MCP 客户端(如其他 AI 编码工具)将任务委派给 DSH 执行。默认关闭,仅监听本机 `127.0.0.1`,使用 Streamable HTTP 和凭证认证。
|
|
261
230
|
|
|
262
|
-
|
|
231
|
+
### 开启
|
|
263
232
|
|
|
264
|
-
|
|
233
|
+
在「连接」标签页中:
|
|
265
234
|
|
|
266
|
-
|
|
235
|
+
1. 勾选允许的工作目录(含子目录)。
|
|
236
|
+
2. 按需修改端口和最大连接数。
|
|
237
|
+
3. 打开开关。修改会自动保存。
|
|
267
238
|
|
|
239
|
+
「允许 MCP 新增对话」默认开启;关闭后只能明确复用已有对话。新对话归入已有工作区,目录尚未登记时创建无后缀的同名工作区,标题以 `[MCP]` 开头。
|
|
268
240
|
|
|
269
|
-
|
|
241
|
+
「允许调用方审批」默认关闭。开启后,指定 MCP 任务的一次工具审批可交给调用方,通过交互表单或 `dsh_approve` 决定;宿主权限策略和目录申请的用户确认保持有效。
|
|
270
242
|
|
|
271
|
-
|
|
243
|
+
目录说明:
|
|
272
244
|
|
|
273
|
-
|
|
245
|
+
- 每次进入连接页都会重新读取 DSH 工作区。首次配置时会预选已有工作区,之后新增的工作区**不会**自动获得授权。
|
|
246
|
+
- 可通过目录选择器添加目录。取消勾选即撤销授权;取消最后一个目录会同时关闭 MCP。
|
|
274
247
|
|
|
275
|
-
|
|
248
|
+
连接数说明:
|
|
276
249
|
|
|
277
|
-
|
|
250
|
+
- 最大连接数默认为 3,最多 32,同时也是任务并发上限。
|
|
251
|
+
- 可在连接页断开客户端;空闲 10 分钟后自动断开。断开不会取消已接收的任务。
|
|
252
|
+
- 首页的「在线对话」表示关联的 MCP 连接仍在线,与任务是否完成无关;断开后计为历史对话。
|
|
278
253
|
|
|
279
|
-
|
|
254
|
+
端口冲突时会直接报错。地址以页面显示为准。
|
|
280
255
|
|
|
281
|
-
|
|
256
|
+
### 配置客户端
|
|
282
257
|
|
|
283
|
-
|
|
258
|
+
1. 复制连接页中的「连接 Prompt」,提供给支持 Streamable HTTP MCP 的客户端。其中包含地址、认证方式和工具说明,**不含**真实凭证。
|
|
259
|
+
2. 单独复制凭证,在客户端中配置为 `Authorization: Bearer <凭证>`。请勿将凭证写入仓库或共享的提示词。
|
|
260
|
+
3. 保持 DSH 运行。更换凭证后旧凭证立即失效,请同步更新客户端。
|
|
284
261
|
|
|
285
|
-
|
|
286
|
-
2. 单独复制连接凭证,在客户端安全保存并配置为 `Authorization: Bearer <连接凭证>`。不要把实际凭证写进仓库或共享提示词。
|
|
287
|
-
3. 保持提供连接的 DSH Web 服务或桌面应用运行。更换凭证后同步更新客户端;旧凭证立即失效。客户端是否允许由提示词自动配置 MCP,取决于客户端自身能力;也可以使用页面地址和认证方式手动配置。
|
|
262
|
+
客户端能否根据提示词自动配置 MCP 取决于客户端本身,也可手动填写地址和认证信息。凭证在连接页默认展开,离开页面后隐藏。
|
|
288
263
|
|
|
289
|
-
|
|
264
|
+
### 工具
|
|
290
265
|
|
|
291
|
-
| 工具
|
|
266
|
+
| 工具 | 用途 |
|
|
292
267
|
|---|---|
|
|
293
|
-
| `
|
|
294
|
-
| `
|
|
295
|
-
| `
|
|
296
|
-
| `
|
|
297
|
-
| `
|
|
298
|
-
| `
|
|
299
|
-
|
|
300
|
-
|
|
268
|
+
| `dsh_status` | 查看允许目录、开关、连接与任务额度、阻塞任务和恢复提示 |
|
|
269
|
+
| `dsh_models` | 查询模型与思考强度 ID,供 `dsh_run`、`dsh_send` 指定;省略时沿用会话当前或默认选择 |
|
|
270
|
+
| `dsh_read` | 分页读取所属会话及受管子会话的公开消息、工具结果与失败详情,不返回推理和私有配置 |
|
|
271
|
+
| `dsh_approve` | 仅在允许调用方审批时,批准或拒绝一个精确的待审批操作,仅生效一次 |
|
|
272
|
+
| `dsh_sessions` | 连接后应首先调用:按目录列出最近的对话、状态、是否可复用,以及连接额度和任务并发占用 |
|
|
273
|
+
| `dsh_run` | 发起任务。传入 `taskId` 复用指定对话;传入 `newConversation: true` 新建对话(两者均未传入时也新建)。**不会**自动复用最新对话。同一 `requestId` 搭配相同输入不会重复提交,输入不同则报冲突 |
|
|
274
|
+
| `dsh_wait` | 查询任务状态、输出、工作区变化和新事件,最多等待 30 秒。未传入任务 ID 时分页列出所有任务 |
|
|
275
|
+
| `dsh_send` | 在同一对话中补充要求或继续执行,需使用新的 `requestId`。不会代为批准权限 |
|
|
276
|
+
| `dsh_request_directory` | 申请新的工作目录,需用户在 DSH 中批准 |
|
|
277
|
+
| `dsh_cancel` | 请求取消对话及其子任务。之后应继续查询状态,确认任务已实际停止 |
|
|
301
278
|
|
|
302
|
-
|
|
279
|
+
### 申请新目录
|
|
303
280
|
|
|
304
|
-
|
|
281
|
+
客户端调用 `dsh_request_directory`,并提供 `requestId`、已存在的绝对路径 `path` 和理由 `reason`。DSH 会弹出全局确认框(无需打开设置),显示客户端名称、目录和理由。
|
|
305
282
|
|
|
306
|
-
|
|
283
|
+
- 只有用户点击「允许访问」后才会授权,模型的自动审批无法替代。
|
|
284
|
+
- 使用相同输入重复调用可查询状态:`pending` / `approved` / `rejected` / `expired`。
|
|
285
|
+
- 批准前不能在该目录发起任务。
|
|
286
|
+
- 最多 8 个待审批请求,5 分钟后过期。拒绝、关闭服务或重启均不会自动授权。
|
|
287
|
+
- 客户端名称和理由由客户端自行填写,仅供参考。
|
|
307
288
|
|
|
308
|
-
|
|
289
|
+
### 任务状态与恢复
|
|
309
290
|
|
|
310
|
-
|
|
291
|
+
- 任务使用会话当前或明确指定的模型、Super Code 预设和用户的权限设置,不会自动放行权限。模型与思考强度选择保留在该会话中。
|
|
292
|
+
- 客户端的沙箱不会延续到 DSH。允许目录只控制能否在该目录发起任务,并非文件沙箱。
|
|
293
|
+
- 同一工作区的任务不并行执行。如需并行,请自行准备独立的 worktree,插件不会创建、删除或合并 worktree。
|
|
294
|
+
- `waiting_confirmation`:仅开启调用方审批且存在对应请求时可由调用方处理,否则由用户在 DSH 中确认。
|
|
295
|
+
- `finished`:执行已结束,但 `acceptance` 始终为 `not-verified`,结果是否正确需由调用方自行验证。
|
|
296
|
+
- 返回的文件信息是对 Git 工作区的观察结果,包括任务开始前已有的改动,不能证明全部由本任务产生。非 Git 目录或超出观察上限时标记为不可用。
|
|
297
|
+
- 等待超时或客户端断线均不会取消任务。关闭连接仅表示不再接收新请求。
|
|
298
|
+
- 重启后不会自动重新发送提示词。请通过 `dsh_sessions` 或任务列表找回任务 ID,确认状态后再明确继续。无法确认状态时显示 `interrupted` 或 `unavailable`;未确认停止的任务会继续占用并发额度。
|
|
311
299
|
|
|
312
|
-
|
|
300
|
+
遇到上限时,保留原 `requestId` 和输入,通过 `dsh_status`、`dsh_wait` 等待空位,不要取消其他客户端的任务或改动提供服务的 DSH 应用。结束 SDK 会话时,先调用 `transport.terminateSession()` 发送 DELETE,再关闭客户端;仅 `client.close()` 不会释放服务端额度。没有原生 MCP 工具时可使用包内 `super-code-mcp` 命令,JSON 参数从标准输入读取,凭证由私密环境变量 `DSH_MCP_TOKEN` 提供。
|
|
313
301
|
|
|
314
|
-
|
|
302
|
+
### 存储与上限
|
|
315
303
|
|
|
316
|
-
|
|
304
|
+
- 任务记录、配置和凭证保存在当前 profile 的 `super-code-connection` 目录中,目录权限为 0700,文件权限为 0600。每个 profile 只能运行一个服务实例。
|
|
305
|
+
- 上限:200 条任务记录、每个任务 128 次补充、最近 200 条事件、输出保留最后 12,000 字符。目录申请历史最多 100 条,仅保存在内存中。
|
|
306
|
+
- 任务记录已满时会明确拒绝新任务,不会自动删除旧记录。
|
|
317
307
|
|
|
318
|
-
|
|
308
|
+
## 前端 Skill
|
|
319
309
|
|
|
320
|
-
|
|
310
|
+
插件内置 `super-code-frontend`,用于页面、组件、视觉调整、响应式布局、交互状态和浏览器验证。重点检查:
|
|
321
311
|
|
|
322
|
-
|
|
312
|
+
- 元素是否对齐到同一基准线
|
|
313
|
+
- 可见范围与可点击范围是否一致
|
|
314
|
+
- 控件位置是否稳定,操作距离和输入负担是否合理
|
|
323
315
|
|
|
324
|
-
|
|
316
|
+
它沿用项目自身的视觉风格,不限定框架,也不新增工具。平时只向模型提供名称和简介,任务匹配时才加载正文和相关参考。也可在请求中直接说明「用 super-code-frontend」。
|
|
325
317
|
|
|
326
|
-
|
|
318
|
+
- 0.3.3 起新安装或重装的预设才包含该 Skill。已有预设请先备份自定义内容,再重新安装。
|
|
319
|
+
- 项目或用户目录中存在同名 Skill 时,按宿主优先级覆盖内置版本。
|
|
320
|
+
- 浏览器验证部分仅为方法指导,不强制防止循环,也不会自动写入长期记忆。
|
|
321
|
+
- 能否提升前端成品质量需通过单独的实际任务评测验证,安装测试和 SWE 成绩无法证明这一点。
|