dsh-super-code 0.3.7 → 0.3.9

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.
Files changed (87) hide show
  1. package/README.en.md +144 -0
  2. package/README.md +89 -180
  3. package/client/index.js +1022 -181
  4. package/cordis.patch.yml +1 -1
  5. package/docs/Acknowledgements.md +38 -67
  6. package/docs/Changelog.md +160 -79
  7. package/docs/Compatibility.md +98 -248
  8. package/docs/EvaluationResults.md +165 -155
  9. package/docs/UsageGuide.md +210 -172
  10. package/docs/en/Acknowledgements.md +76 -0
  11. package/docs/en/Changelog.md +160 -0
  12. package/docs/en/Compatibility.md +146 -0
  13. package/docs/en/EvaluationResults.md +224 -0
  14. package/docs/en/UsageGuide.md +304 -0
  15. package/docs/images/agent-tree-preview.png +0 -0
  16. package/docs/images/agent-tree.png +0 -0
  17. package/docs/images/install-tgz-preview.png +0 -0
  18. package/docs/images/install-tgz.png +0 -0
  19. package/docs/images/preset-settings-preview.png +0 -0
  20. package/docs/images/preset-settings.png +0 -0
  21. package/docs/images/task-status-preview.png +0 -0
  22. package/docs/images/task-status.png +0 -0
  23. package/lib/connection/approvals.d.ts +21 -0
  24. package/lib/connection/approvals.d.ts.map +1 -0
  25. package/lib/connection/approvals.js +83 -0
  26. package/lib/connection/approvals.js.map +1 -0
  27. package/lib/connection/client.d.ts +8 -0
  28. package/lib/connection/client.d.ts.map +1 -0
  29. package/lib/connection/client.js +34 -0
  30. package/lib/connection/client.js.map +1 -0
  31. package/lib/connection/directories.d.ts +30 -0
  32. package/lib/connection/directories.d.ts.map +1 -0
  33. package/lib/connection/directories.js +82 -0
  34. package/lib/connection/directories.js.map +1 -0
  35. package/lib/connection/git.d.ts +5 -0
  36. package/lib/connection/git.d.ts.map +1 -0
  37. package/lib/connection/git.js +86 -0
  38. package/lib/connection/git.js.map +1 -0
  39. package/lib/connection/guidance.d.ts +10 -0
  40. package/lib/connection/guidance.d.ts.map +1 -0
  41. package/lib/connection/guidance.js +27 -0
  42. package/lib/connection/guidance.js.map +1 -0
  43. package/lib/connection/http.d.ts +38 -0
  44. package/lib/connection/http.d.ts.map +1 -0
  45. package/lib/connection/http.js +342 -0
  46. package/lib/connection/http.js.map +1 -0
  47. package/lib/connection/service.d.ts +59 -0
  48. package/lib/connection/service.d.ts.map +1 -0
  49. package/lib/connection/service.js +176 -0
  50. package/lib/connection/service.js.map +1 -0
  51. package/lib/connection/store.d.ts +21 -0
  52. package/lib/connection/store.d.ts.map +1 -0
  53. package/lib/connection/store.js +141 -0
  54. package/lib/connection/store.js.map +1 -0
  55. package/lib/connection/tasks.d.ts +124 -0
  56. package/lib/connection/tasks.d.ts.map +1 -0
  57. package/lib/connection/tasks.js +393 -0
  58. package/lib/connection/tasks.js.map +1 -0
  59. package/lib/connection/types.d.ts +159 -0
  60. package/lib/connection/types.d.ts.map +1 -0
  61. package/lib/connection/types.js +23 -0
  62. package/lib/connection/types.js.map +1 -0
  63. package/lib/connection-cli.d.ts +3 -0
  64. package/lib/connection-cli.d.ts.map +1 -0
  65. package/lib/connection-cli.js +40 -0
  66. package/lib/connection-cli.js.map +1 -0
  67. package/lib/dsh/connection-approval.d.ts +5 -0
  68. package/lib/dsh/connection-approval.d.ts.map +1 -0
  69. package/lib/dsh/connection-approval.js +72 -0
  70. package/lib/dsh/connection-approval.js.map +1 -0
  71. package/lib/dsh/connection-history.d.ts +6 -0
  72. package/lib/dsh/connection-history.d.ts.map +1 -0
  73. package/lib/dsh/connection-history.js +52 -0
  74. package/lib/dsh/connection-history.js.map +1 -0
  75. package/lib/dsh/connection-host.d.ts +114 -0
  76. package/lib/dsh/connection-host.d.ts.map +1 -0
  77. package/lib/dsh/connection-host.js +208 -0
  78. package/lib/dsh/connection-host.js.map +1 -0
  79. package/lib/dsh/connection.d.ts +72 -0
  80. package/lib/dsh/connection.d.ts.map +1 -0
  81. package/lib/dsh/connection.js +186 -0
  82. package/lib/dsh/connection.js.map +1 -0
  83. package/lib/dsh/index.d.ts.map +1 -1
  84. package/lib/dsh/index.js +2 -0
  85. package/lib/dsh/index.js.map +1 -1
  86. package/package.json +14 -6
  87. package/presets/super-code/agent.cordis.yml +1 -1
package/README.en.md ADDED
@@ -0,0 +1,144 @@
1
+ # dsh-super-code
2
+
3
+ [中文](README.md) · English
4
+
5
+ A smarter, leaner, faster, and easier-to-use coding plugin for DeepSeek Harness.
6
+
7
+ On SWE-bench Pro hard-100, compared with the official Standard preset (same host DSH `0.2.1-rc.2`, same model, both on high reasoning effort and legacy budgets):
8
+
9
+ | | Standard + high | Super Code |
10
+ |---|---:|---:|
11
+ | Passed | 46/100 | **49/100** |
12
+ | Net time per task | 20.9 min | **16.4 min** (-21.3%) |
13
+ | Tokens per task | 7.81 M | **5.11 M** (-34.6%) |
14
+ | Model calls per task | 92 | **69** (-25.5%) |
15
+
16
+ Tested on version `0.3.5`. [Full results and limitations](docs/en/EvaluationResults.md)
17
+
18
+ ## Install
19
+
20
+ Supports Harness from `0.1.5-alpha.1`, with Web verified through `0.2.1-rc.4`; see [compatibility](docs/en/Compatibility.md) for tested desktop versions.
21
+
22
+ **Desktop**: open **Plugins → Add plugin** in the left sidebar, enter `dsh-super-code`, then click **Install** and **Enable now** (on older versions, reload or restart when prompted). Desktop includes its own runtime; Node.js is not required.
23
+
24
+ **Web / CLI**: requires Node.js 22 or later.
25
+
26
+ ```bash
27
+ npm install -g @deepseek-ai/dsh # skip if dsh is already installed
28
+ dsh plugin --profile web add dsh-super-code
29
+ ```
30
+
31
+ <details>
32
+ <summary>Install from a Release package</summary>
33
+
34
+ Download the `.tgz` file from [GitHub Releases](https://github.com/ArtlexYoung/dsh-super-code/releases).
35
+
36
+ Desktop: enter the full path of the package in "Package name or address", then click **Install**.
37
+
38
+ [![Enter the package path](docs/images/install-tgz-preview.png)](docs/images/install-tgz.png)
39
+
40
+ Web: run the following command (use the actual file name):
41
+
42
+ ```bash
43
+ dsh plugin --profile web add ./dsh-super-code-0.3.9.tgz
44
+ ```
45
+
46
+ </details>
47
+
48
+ ## Usage
49
+
50
+ 1. Open **Settings → Agent Presets** and select **Super Code** (identifier `super-code`).
51
+ 2. Create a new session and describe the task.
52
+
53
+ Model, reasoning effort, permissions, and tools follow the Harness settings and need no separate configuration. Child Agents use the parent Agent's model by default.
54
+
55
+ If the preset is not listed, check its status in **Settings → Super Code**, or see [troubleshooting](docs/en/UsageGuide.md#cant-find-the-preset).
56
+
57
+ [![Super Code settings](docs/images/preset-settings-preview.png)](docs/images/preset-settings.png)
58
+
59
+ Select **Super Code** in the right sidebar. It contains three sections:
60
+
61
+ - **Tasks**: goal, step progress, tool-call summaries, and changed files. Read-only.
62
+ - **Collaborative execution**: the Agent execution tree. Click a node to view details.
63
+ - **Memory**: view, add, edit, and delete project memory and global preferences.
64
+
65
+ The three sections open one at a time. Tasks opens by default; click the current heading to collapse it.
66
+
67
+ [![Task sidebar](docs/images/task-status-preview.png)](docs/images/task-status.png)
68
+
69
+ [![Agent tree](docs/images/agent-tree-preview.png)](docs/images/agent-tree.png)
70
+
71
+ Screenshots use the current UI with sample data to illustrate the plugin.
72
+
73
+ ## Features
74
+
75
+ | Feature | Description |
76
+ |---|---|
77
+ | Batched tool calls | Reads multiple files in parallel within one model call, reducing round trips |
78
+ | Layered memory | Current task, project lessons, and global preferences are stored separately, each with its source |
79
+ | Runtime budgets | Uses the better-performing legacy compression budgets by default; adjustable in Settings |
80
+ | Deletion protection | Directs Agents to use recoverable `trash` by default; can switch to strict confirmation |
81
+ | MCP connection | Allows external MCP clients to delegate tasks to DSH. Off by default |
82
+ | Frontend Skill | Loaded on demand for UI work to check alignment, hit areas, and browser behavior |
83
+
84
+ See the [usage guide](docs/en/UsageGuide.md).
85
+
86
+ ## Recent releases
87
+
88
+ - **0.3.9**: Polished Settings and the task sidebar, improved MCP conversation control, fixed PTC child-tool approvals, and verified rc.4 Web compatibility.
89
+ - **0.3.8**: Added MCP connection; external clients can delegate, inspect, continue, and cancel DSH conversations. Added a Home overview in Settings.
90
+ - **0.3.7**: Added three-level deletion protection (Relaxed by default). Added Task status to the sidebar.
91
+
92
+ [Full changelog](docs/en/Changelog.md)
93
+
94
+ Versions follow `major.performance.maintenance`: a change in the second number indicates improved coding results or efficiency; the third covers fixes, UI, and compatibility. Every release requires extensive regression testing, so the release cycle may be long.
95
+
96
+ ## Evaluation
97
+
98
+ ### Method
99
+
100
+ - **Task set**: SWE-bench Pro hard-100, graded with the official grader. Tuning uses only 33 hard tasks selected from the SWE-bench dev split; hard-100 is used only to evaluate frozen candidates and investigate issues, never for tuning, to avoid overfitting to the evaluation tasks.
101
+ - **Baseline**: the official Standard preset rather than Minimal. On the old host, Standard + high passed 51 tasks and Minimal + high passed 46, with Standard using 23.5% fewer tokens per task. Comparing against the stronger baseline gives a stricter conclusion.
102
+ - **Controlled variables**: same host, model, reasoning effort, and budgets; only the Agent preset differs.
103
+ - **Metrics**: tasks passed, net time per task (excluding failed requests and retry waits), tokens per task, and model calls per task.
104
+
105
+ ### Process
106
+
107
+ 1. **Old-host baseline** (DSH `0.1.5-rc.2`, `deepseek-v4.1-flash`, high): the Super Code `0.3.0` candidate passed 56 tasks, the official Standard preset 51, and Minimal 46. Relative to Minimal, time fell by 47.6% and tokens by 44.9%.
108
+ 2. **Regression after the host upgrade**: after upgrading to DSH `0.2.1-rc.2` and `deepseek-v4.1-flash-1017`, under default budgets Standard dropped to 46 and Super Code `0.3.4` to 41, below Standard. Investigation found the new host had tightened context budgets: the compression threshold fell from 800,000 to 550,464 tokens, and retained verbatim context from 160,000 to 98,560 tokens.
109
+ 3. **Retest with legacy budgets**: both sides used legacy budgets. Standard stayed at 46 with 14.2% more tokens; Super Code `0.3.5` rose to 49 with only 0.4% more tokens and 19.4% less net time. Based on this, the plugin uses legacy budgets by default from `0.3.6`.
110
+ 4. **Cross-model check** (`glm-5.3-flash`, max): Super Code `0.3.4` passed 45 tasks and native ZCode 29. Super Code used less net time per task (32.9 vs 52.3 min) and more tokens (5.50 M vs 3.61 M).
111
+
112
+ ### Summary
113
+
114
+ | Comparison | Passed | Efficiency |
115
+ |---|---|---|
116
+ | New host, legacy budgets: Super Code `0.3.5` vs Standard + high | 49 vs 46 | Net time -21.3%, tokens -34.6%, model calls -25.5% |
117
+ | New host, default budgets: Super Code `0.3.4` vs Standard + high | 41 vs 46 | Tokens -25.5%, net time +13.9% |
118
+ | Old host: Super Code `0.3.0` candidate vs Standard + high | 56 vs 51 | Raw time -34.9%, tokens -27.9% |
119
+ | Old host: Super Code `0.3.0` candidate vs Minimal + high | 56 vs 46 | Time -47.6%, tokens -44.9% |
120
+ | GLM-5.3-flash: Super Code `0.3.4` vs native ZCode | 45 vs 29 | Time -37.1%, tokens +52.4% |
121
+
122
+ ### Limitations
123
+
124
+ - Each configuration was run once. The same task can pass in one run and fail in another; run-to-run variance for a fixed configuration has not been estimated.
125
+ - The default-budget and legacy-budget runs used different plugin versions (`0.3.4` → `0.3.5`), so the gain cannot be attributed entirely to budgets.
126
+ - `0.3.6` – `0.3.9` have not been re-evaluated on the 100 tasks.
127
+ - The cross-model comparison is between two complete systems and cannot isolate the plugin's contribution.
128
+
129
+ [Results and methodology](docs/en/EvaluationResults.md) · [All result tables](eval/results/swebench-pro-final-100/ResultsTables.md)
130
+
131
+ ## Acknowledgements
132
+
133
+ This project recognizes the [LINUX DO](https://linux.do) community.
134
+
135
+ | Project | Reference |
136
+ |---|---|
137
+ | [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (MIT) | Host runtime: Agents, sessions, tools, PTC, Skills, UI extensions |
138
+ | [ZCode](https://github.com/zai-org/ZCode) (Apache-2.0) | UI design |
139
+ | [Agent Skills](https://agentskills.io/specification) | File format of the frontend Skill |
140
+ | [Apple HIG](https://developer.apple.com/design/human-interface-guidelines), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) | Interaction and accessibility principles in the frontend Skill |
141
+ | [SWE-bench](https://github.com/SWE-bench/SWE-bench), [SWE-bench Pro](https://github.com/scaleapi/SWE-bench_Pro-os) (code MIT) | Tuning and evaluation tasks |
142
+ | [js-yaml](https://github.com/nodeca/js-yaml), [Zod](https://github.com/colinhacks/zod) (MIT) | YAML parsing, data validation |
143
+
144
+ [Detailed acknowledgements and licenses](docs/en/Acknowledgements.md) · This project is licensed under [Apache-2.0](LICENSE).
package/README.md CHANGED
@@ -1,235 +1,144 @@
1
1
  # dsh-super-code
2
2
 
3
- 一个更快、更节省、更聪明的 DeepSeek Harness 编码插件。简单任务直接做,复杂任务按需组织专业 Agent;任务状态和有来源的经验可以留到后续对话,不必反复交代。
3
+ 中文 · [English](README.en.md)
4
4
 
5
- A faster, more efficient coding plugin for DeepSeek Harness. It handles straightforward tasks directly, brings in specialist Agents when useful, and keeps sourced knowledge available for later conversations.
5
+ 一个更聪明、更节省、更快速、更好用的 DeepSeek Harness 编码插件。
6
6
 
7
- 在同一组 SWE-bench Pro hard-100 中,0.3.0 的评测候选相比官方 minimal,平均回答耗时减少 **48%**、每题总 token 减少 **45%**、模型调用次数减少 **44.4%**,通过率从 **46% 提高到 56%**。[完整结果与限制](docs/EvaluationResults.md)
7
+ 在 SWE-bench Pro hard-100 上,与官方标准预设对比(同一宿主 DSH `0.2.1-rc.2`、同一模型、均为 high 思考等级与旧预算):
8
8
 
9
- On the same SWE-bench Pro hard-100 set, the evaluation candidate for 0.3.0 uses **48% less response time**, **45% fewer total tokens**, and **44.4% fewer model calls**, with **56% passing versus 46%** for official minimal. [Full results and limitations](docs/EvaluationResults.md)
10
-
11
- # 1 版本与更新 · Versions and Updates
12
-
13
- 为保证版本效果,发布前需要进行大量测试和回归验证,耗时较久,因此更新周期可能较长。
14
-
15
- Extensive testing and regression checks are needed to verify each release's effectiveness. This takes time, so release cycles may be longer.
16
-
17
- 版本号采用 **主版本.效果优化版本.维护版本**,例如 `0.3.7`:
18
-
19
- Version numbers follow **major.performance-improvement.maintenance**, for example `0.3.7`:
20
-
21
- | 位置 / Position | 含义 / Meaning |
22
- |---|---|
23
- | 第一位 / First (`0`) | 主版本,仅在大范围重构时调整。 / Major version; changes only for extensive refactoring. |
24
- | 第二位 / Second (`3`) | 效果优化版本,记录编码效果、效率等方面的优化。 / Performance-improvement version; tracks improvements to coding results, efficiency, and related capabilities. |
25
- | 第三位 / Third (`7`) | 维护版本,记录问题修复、UI 优化、兼容性适配等更新。 / Maintenance version; tracks bug fixes, UI improvements, compatibility updates, and similar changes. |
26
-
27
- ## 0.3.7 · What's New
28
-
29
- 新增默认宽松的三档删除保护,以及全展开、虚拟滚动的任务状态侧栏。[更新详情](docs/Changelog.md)
30
-
31
- Adds three deletion-protection modes, defaulting to Relaxed, and a fully expanded task-status sidebar with virtual scrolling. [Changelog](docs/Changelog.md)
32
-
33
- ## 0.3.6 · What's New
34
-
35
- 针对新版 Harness 预算收紧后的效果退化,新增预算配置并默认恢复此前效果更好的旧预算,无需手动填写。[更新详情](docs/Changelog.md)
36
-
37
- Adds configurable budgets and restores the older, better-performing budgets without manual setup to address regressions observed after newer Harness versions reduced them. [Changelog](docs/Changelog.md)
38
-
39
- ## 0.3.5 · What's New
40
-
41
- 适配 Harness `0.2.1-rc.2`,修复 v4 会话日志升级后旧任务记录不可见的问题。[更新详情](docs/Changelog.md)
42
-
43
- Supports Harness `0.2.1-rc.2` and restores legacy task records after v4 session-log upgrades. [Changelog](docs/Changelog.md)
44
-
45
- [查看完整版本记录 · Full changelog](docs/Changelog.md)
46
-
47
- # 2 开始使用 · Get Started
48
-
49
- 支持 Harness `0.1.5-alpha.1` 至 `0.2.1-rc.2`,按所用客户端选择安装方式;[各版本与客户端的验证范围](docs/Compatibility.md)。
50
-
51
- Supports Harness `0.1.5-alpha.1` through `0.2.1-rc.2`. Choose the installation method for your client; see [validation coverage by version and client](docs/Compatibility.md).
52
-
53
- ## 2.1 安装 · Install
54
-
55
- ### 官方桌面版 · Official Desktop
9
+ | | 标准 + high | Super Code |
10
+ |---|---:|---:|
11
+ | 通过 | 46/100 | **49/100** |
12
+ | 每题净耗时 | 20.9 分钟 | **16.4 分钟**(-21.3%) |
13
+ | 每题 token | 781 万 | **511 万**(-34.6%) |
14
+ | 每题模型调用 | 92 次 | **69 次**(-25.5%) |
56
15
 
57
- 打开左侧 **插件 → 添加插件**,在“包名或地址”中输入 `dsh-super-code`,点击 **安装**。新版安装完成后点击 **立即启用**;其他版本按提示重新加载或重启。桌面版自带运行环境,无需另外安装 Node.js。
16
+ 基于版本 `0.3.5` 测试。[完整结果与限制](docs/EvaluationResults.md)
58
17
 
59
- Open **Plugins → Add plugin**, enter `dsh-super-code` in “Package name or address”, and click **Install**. On newer hosts, click **Enable now** when installation finishes; on other versions, reload or restart if prompted. The desktop app includes its runtime; no separate Node.js installation is needed.
18
+ ## 安装
60
19
 
61
- ### Web / 命令行版 · Web / CLI
20
+ 支持 Harness `0.1.5-alpha.1` 起的版本,Web 已验证至 `0.2.1-rc.4`;桌面版验证范围见[兼容性记录](docs/Compatibility.md)。
62
21
 
63
- 需要 Node.js 22 或更高版本。通过 npm 安装 Harness,再添加插件;已有 `dsh` 命令时跳过第一行。
22
+ **桌面版**:在左侧打开「插件 → 添加插件」,输入 `dsh-super-code`,依次点击「安装」和「立即启用」(旧版本请按提示重载或重启)。桌面版内置运行环境,无需安装 Node.js。
64
23
 
65
- Requires Node.js 22 or later. Install Harness via npm, then add the plugin. Skip the first line if `dsh` is already installed.
24
+ **Web / 命令行版**:需要 Node.js 22 及以上版本。
66
25
 
67
26
  ```bash
68
- npm install -g @deepseek-ai/dsh
27
+ npm install -g @deepseek-ai/dsh # 已安装 dsh 命令可跳过
69
28
  dsh plugin --profile web add dsh-super-code
70
29
  ```
71
30
 
72
31
  <details>
73
- <summary>使用 Release 安装包(可选) · Install a Release package (optional)</summary>
32
+ <summary>使用 Release 安装包</summary>
33
+
34
+ 从 [GitHub Releases](https://github.com/ArtlexYoung/dsh-super-code/releases) 下载 `.tgz` 文件。
35
+
36
+ 桌面版:在「包名或地址」中填写安装包的完整路径,然后点击「安装」。
74
37
 
75
- 从 [GitHub Releases](https://github.com/ArtlexYoung/dsh-super-code/releases) 下载 `.tgz` 包。桌面版在“包名或地址”中填入文件的完整路径;Web 版运行以下命令,将文件名替换为实际下载的版本。
38
+ [![填写安装包路径](docs/images/install-tgz-preview.png)](docs/images/install-tgz.png)
76
39
 
77
- Download a `.tgz` package from [GitHub Releases](https://github.com/ArtlexYoung/dsh-super-code/releases). On desktop, enter its full path in “Package name or address”. For Web, run the command below with the filename you downloaded.
40
+ Web 版:运行以下命令(文件名以实际下载的为准):
78
41
 
79
42
  ```bash
80
- dsh plugin --profile web add ./dsh-super-code-0.3.7.tgz
43
+ dsh plugin --profile web add ./dsh-super-code-0.3.9.tgz
81
44
  ```
82
45
 
83
46
  </details>
84
47
 
85
- ## 2.2 选中预设 · Select the Preset
48
+ ## 使用
86
49
 
87
- 打开 **设置 → Agent 预设**,选择 **Super Code 模式**(默认标识符 `super-code`)。
50
+ 1. 打开「设置 → Agent 预设」,选择 **Super Code 模式**(标识符 `super-code`)。
51
+ 2. 新建会话,描述任务即可。
88
52
 
89
- Open **Settings → Agent Presets** and choose **Super Code** (default identifier: `super-code`).
53
+ 模型、推理等级、权限和工具均沿用 Harness 的设置,无需单独配置;子 Agent 默认使用父 Agent 的模型。
90
54
 
91
- ## 2.3 开始对话 · Start a Conversation
55
+ 若未找到预设,可在「设置 → Super Code 模式」中查看状态,或参阅[排查方法](docs/UsageGuide.md#找不到预设)。
92
56
 
93
- 新建会话,描述你要完成的编码任务。模型、推理等级、权限和工具沿用 Harness 的设置;子 Agent 默认继承父 Agent 的模型,不用另配模型池。
57
+ [![Super Code 设置页](docs/images/preset-settings-preview.png)](docs/images/preset-settings.png)
94
58
 
95
- Open a new session and describe the task. Models, reasoning effort, permissions, and tools come from Harness; child Agents inherit the parent's model by default.
59
+ 在右侧边栏选择「Super Code」,包含三个部分:
96
60
 
97
- 没看到预设?在“设置”→ **Super Code** 查看状态;旧插件版本的入口在“插件配置”中。[安装与排查](docs/UsageGuide.md)
61
+ - **任务**:目标、步骤进度、工具调用汇总和已修改的文件,只读。
62
+ - **协作执行**:Agent 执行树,点击节点可查看详情。
63
+ - **记忆**:查看、新增、编辑和删除项目记忆与全局偏好。
98
64
 
99
- Can't find the preset? Open “Settings” → **Super Code**. Older plugin versions place this under “Plugin configuration”. [Setup and troubleshooting](docs/UsageGuide.md)
65
+ 三个部分互斥展开,默认显示任务;点击当前标题可收起。
100
66
 
101
- [![Super Code 配置入口 · Super Code settings](docs/images/preset-settings-preview.png)](docs/images/preset-settings.png)
67
+ [![任务侧边栏](docs/images/task-status-preview.png)](docs/images/task-status.png)
102
68
 
103
- 右侧 **Super Code** 页面依次展示任务状态、协作执行和记忆库,默认展开任务状态,点击标题切换。任务、步骤和已加载动作直接展开,虚拟滚动保持长列表流畅;保留圆圈 Agent 执行树及记忆的查看、新增、编辑和删除。任务状态只读取现有记录,不改变提示词或模型行为。[界面与记忆说明](docs/UsageGuide.md)
69
+ [![Agent 执行树](docs/images/agent-tree-preview.png)](docs/images/agent-tree.png)
104
70
 
105
- The **Super Code** sidebar contains Task status, Agent execution, and Memory library, with Task status open by default. Tasks, steps, and loaded activity stay expanded in a virtualized list. The circular Agent graph and memory browsing, creation, editing, and deletion remain available. Task status reads existing records without changing prompts or model behavior. [Interface and memory guide](docs/UsageGuide.md)
71
+ 截图使用当前界面与演示数据,仅展示插件外观。
106
72
 
107
- [![Agent 执行树 · Agent execution tree](docs/images/agent-tree-preview.png)](docs/images/agent-tree.png)
73
+ ## 功能
108
74
 
109
- # 3 效果 · Results
110
-
111
- 当前版本迭代的效果优化均使用从 SWE-bench 官方 dev 集中筛选出的 **33 道有效困难题**;SWE-bench Pro hard-100 的 100 题用于候选冻结后的效果评测及 bug 排查,不参与效果调优。详见[评测口径与限制](docs/EvaluationResults.md)。
112
-
113
- Current iterations are optimized on **33 valid difficult tasks selected from the official SWE-bench dev split**. The 100 SWE-bench Pro hard-100 tasks are used to evaluate frozen candidates and investigate bugs, not for performance tuning. See the [methodology and limitations](docs/EvaluationResults.md).
114
-
115
- ## 3.1 各版本成绩 · Version Results
116
-
117
- 五组均使用 **DSH `0.1.5-rc.2`**、**`deepseek-v4.1-flash`** 和 `high` 思考等级,完成同一批 100 题;评分环境异常已用原补丁复核。0.2.0 和 0.3.0 对应已评测的候选,耗时保留历史原始作答口径。
118
-
119
- All five runs used **DSH `0.1.5-rc.2`**, **`deepseek-v4.1-flash`**, and `high` reasoning on the same 100 tasks. Grading anomalies were rechecked with the original patches. Versions 0.2.0 and 0.3.0 refer to evaluated candidates; times retain the historical response-time convention.
120
-
121
- | 指标 / Metric | 官方 minimal + high | 0.0.9 | 0.1.2 | 0.2.0 | 0.3.0 |
122
- |---|---:|---:|---:|---:|---:|
123
- | 通过 / Passed | 46/100 | 50/100 | 53/100 | 54/100 | **56/100** |
124
- | 平均耗时(历史)/ Original minutes per task | 25.685 | 16.458 | 16.011 | 15.148 | **13.461** |
125
- | 平均总 token / Total tokens per task | 11,578,046.900 | 9,623,216.520 | 9,938,176.210 | 9,299,093.840 | **6,381,968.850** |
126
- | 缓存输入 token/题 / Cached input | 11,404,101.120 | 9,461,981.440 | 9,775,799.040 | 9,142,005.760 | 6,231,823.360 |
127
- | 模型调用/题 / Model calls | 124.660 | 92.780 | 99.780 | 93.830 | **69.290** |
128
-
129
- 五组均按相同规则复核。通过数已包含实际测试全部通过、仅因测试名称差异被误判的记录;用量和耗时保持原作答数据。修正依据见[评测说明](docs/EvaluationResults.md)。
130
-
131
- All five runs were reviewed under the same rules. Pass counts include verified cases where every test passed but test-name differences caused a grading mismatch. Original usage and timing are unchanged. See the [evaluation report](docs/EvaluationResults.md) for correction evidence.
132
-
133
- ## 3.2 官方预设成绩 · Official Preset Results
134
-
135
- 本表使用 **DSH `0.1.5-rc.2`** 和 **`deepseek-v4.1-flash`**,思考等级按列标明;成绩包含后续原补丁复评与测试名称修正。各列只统计有效结果,未满 100 题的列不参与完整 100 题排名。
136
-
137
- This table uses **DSH `0.1.5-rc.2`** and **`deepseek-v4.1-flash`**, with reasoning effort shown per column. Scores include subsequent original-patch regrades and verified test-name corrections. Each column uses valid scores only; incomplete columns are excluded from full 100-task rankings.
138
-
139
- | 指标 / Metric | 极简 minimal + high | 极简 minimal + max | 标准 standard + high | PTC + high | 创造 creative + high | 标准 standard + max |
140
- |---|---:|---:|---:|---:|---:|---:|
141
- | 有效进度 / Valid scores | 100/100 | 100/100 | 100/100 | 100/100 | 100/100 | 99/100 |
142
- | 通过/有效 / Passed / valid | 46/100 | 50/100 | 51/100 | 47/100 | 49/100 | 49/99 |
143
- | 待环境复评 / Pending regrades | 0 | 0 | 0 | 0 | 0 | 0 |
144
- | 原始分钟/题 / Original minutes | 25.685 | 32.529 | 20.683 | 17.302 | 19.856 | 20.452 |
145
- | 净分钟/题 / Net minutes | 25.122 | 32.009 | 18.826 | 15.122 | 18.714 | 19.561 |
146
- | 模型调用/题 / Model calls | 124.660 | 138.920 | 92.370 | 71.160 | 93.600 | 101.061 |
147
- | 总 token/题 / Total tokens | 11,578,046.900 | 14,966,097.260 | 8,854,513.910 | 6,238,434.510 | 9,292,949.400 | 11,526,872.192 |
148
- | 缓存输入 token/题 / Cached input | 11,404,101.120 | 14,770,140.160 | 8,713,578.230 | 6,099,266.510 | 9,145,025.240 | 11,349,317.818 |
149
- | 非缓存输入 token/题 / Uncached input | 73,068.830 | 79,357.380 | 58,114.810 | 61,668.140 | 60,262.050 | 68,006.202 |
150
- | 输出 token/题 / Output | 100,876.950 | 116,599.720 | 82,820.870 | 77,499.860 | 87,662.110 | 109,548.172 |
151
- | 缺少用量的请求 / Requests without usage | 3 | 11 | 4 | 5 | 2 | 0 |
152
-
153
- 净耗时扣除最终有效作答中的失败请求和重试等待;两种耗时均不含官方评分。调用次数排除已记录的失败请求。总 token = 缓存输入 + 非缓存输入 + 输出,输出含思考 token。复评分保留原作答的用量和耗时;有效题目范围变化时,均值会随之变化。未返回的用量不估算,数字不等于完整账单。
154
-
155
- Net time excludes failed requests and retry waits in the final valid answer; both time measures exclude grading. Call counts exclude logged failed requests. Total tokens = cached input + uncached input + output, including reasoning. Regrading preserves each answer's original usage and timing; means change when the valid subset changes. Missing usage is not estimated, so these figures are not a complete bill.
156
-
157
- 创造保留官方预设与工具定义;评测隔离禁止 `cordis_run` 在宿主上执行动态代码,只读检查仍可使用。极简 + high 复用历史基线,宿主修订与本轮不同,不能把差异完全归因于思考等级。
158
-
159
- Creative retains the official preset and tools; evaluation isolation blocks host-side dynamic execution through `cordis_run`, while read-only inspection remains available. Minimal + high reuses a historical baseline with different Harness revisions, so the results do not isolate reasoning effort.
160
-
161
- ## 3.3 跨模型迁移 · Cross-Model Transfer
162
-
163
- 将模型换为 **`glm-5.3-flash`**,思考等级统一为 **`max`**,仍使用同一批 hard-100。两组均完成 100 题:Super Code 使用 **DSH `0.1.5-rc.2` + 插件 `0.3.4`**;对照使用完整原生 **ZCode Desktop `3.14.4` / CLI `0.16.9`**,没有抽取部分源码模拟 Agent。
164
-
165
- Both runs completed the same hard-100 set using **`glm-5.3-flash`** with **`max`** reasoning. Super Code ran on **DSH `0.1.5-rc.2` + plugin `0.3.4`**; the comparison used the complete native **ZCode Desktop `3.14.4` / CLI `0.16.9`**, rather than an extracted Agent implementation.
75
+ | 功能 | 说明 |
76
+ |---|---|
77
+ | 批量工具调用 | 在一次模型调用中并行读取多个文件,减少往返次数 |
78
+ | 分层记忆 | 当前任务、项目经验和全局偏好分别存储,每条记录均标注来源 |
79
+ | 运行预算 | 默认使用效果更好的旧压缩预算,可在设置中调整 |
80
+ | 删除保护 | 默认引导 Agent 使用可恢复的 `trash`,可切换为严格确认 |
81
+ | MCP 连接 | 允许外部 MCP 客户端将任务委派给 DSH 执行,默认关闭 |
82
+ | 前端 Skill | 开发页面时按需加载,检查对齐、点击区域和浏览器表现 |
166
83
 
167
- | 指标 / Metric | DSH + Super Code 0.3.4 | 原生 ZCode / Native ZCode |
168
- |---|---:|---:|
169
- | 通过 / Passed | 44/100 | 28/100 |
170
- | 净分钟/题 / Net minutes | 32.896 | 52.320 |
171
- | 模型调用/题 / Model calls | 66.890 | 64.310 |
172
- | 总 token/题 / Total tokens | 5,499,154.470 | 3,609,511.930 |
173
- | 缓存输入 token/题 / Cached input | 5,302,796.160 | 3,356,862.720 |
174
- | 缺少用量的请求 / Requests without usage | 29 | 120 |
84
+ 详见[使用说明](docs/UsageGuide.md)。
175
85
 
176
- 这轮 Super Code 通过率高 **16 个百分点**,平均净耗时更少,但 token 更多。这说明方案可在 GLM 上运行并取得有效结果;对照比较的是两套完整系统,不能据此分离插件的贡献,也不能推及所有模型。缺失用量未估算。[测试脚本与记录](eval/glm/README.md)
86
+ ## 最近更新
177
87
 
178
- Super Code passed **16 percentage points** more tasks and used less net time, but more tokens. This demonstrates working transfer to GLM in this run. The comparison covers two complete systems, so it neither isolates the plugin's contribution nor establishes gains across all models. Missing usage is not estimated. [Scripts and records](eval/glm/README.md)
88
+ - **0.3.9**:美化设置和任务侧栏,完善 MCP 对话控制并修复 PTC 子工具审批,验证 rc.4 Web 兼容性。
89
+ - **0.3.8**:新增 MCP 连接,外部客户端可委派、查看、继续和取消 DSH 对话;设置页新增首页概览。
90
+ - **0.3.7**:新增三档删除保护(默认宽松);侧边栏新增任务状态。
179
91
 
180
- ## 3.4 新版 DSH 与预算 · New DSH and Budgets
92
+ [完整版本记录](docs/Changelog.md)
181
93
 
182
- 以下四组均使用 **DSH `0.2.1-rc.2`**、新模型 **`deepseek-v4.1-flash-1017`**(调用标识 `deepseek/deepseek-flash`)和 **`high`** 思考,完成同一批 100 题。这里只展示官方预设与正式插件版本。
94
+ 版本号格式为「主版本.效果版本.维护版本」:第二位变化表示编码效果或效率有提升,第三位表示修复、界面和兼容性更新。每次发布前均需完成大量回归测试,因此更新周期可能较长。
183
95
 
184
- All four runs completed the same 100 tasks on **DSH `0.2.1-rc.2`**, using the newer **`deepseek-v4.1-flash-1017`** model (API ID: `deepseek/deepseek-flash`) with **`high`** reasoning. Only official presets and released plugin versions are shown here.
96
+ ## 评测
185
97
 
186
- | 指标 / Metric | 标准 / Standard · 默认 / Default | Super Code 0.3.4 · 默认 / Default | 标准 / Standard · 旧预算 / Legacy | Super Code 0.3.5 · 旧预算 / Legacy |
187
- |---|---:|---:|---:|---:|
188
- | 通过/有效 / Passed / valid | 45/100 | 40/99 | 46/100 | 48/99 |
189
- | 待核查 / Pending review | 0 | 1 | 0 | 1 |
190
- | 净分钟/题 / Net minutes | 17.875 | 20.458 | 20.870 | 16.486 |
191
- | 模型调用/题 / Model calls | 85.050 | 69.051 | 91.980 | 68.616 |
192
- | 总 token/题 / Total tokens | 6,832,805.820 | 5,125,240.424 | 7,806,295.960 | 5,131,724.556 |
193
- | 缓存输入 token/题 / Cached input | 6,710,566.400 | 5,008,071.111 | 7,679,298.560 | 5,016,822.909 |
194
- | 缺少用量的请求 / Requests without usage | 0 | 0 | 0 | 1 |
98
+ ### 评测方法
195
99
 
196
- 两组 Super Code 各有一条 NodeBB 环境异常待核查,暂不计入有效评分和均值。npm 依赖已离线打包,但参考答案仍遇到初始化超时;原答案、判分记录和用量保留。
100
+ - **题集**:SWE-bench Pro hard-100,使用官方评分器。调优仅使用 SWE-bench dev 中筛选的 33 道困难题;hard-100 只用于评测冻结后的候选版本和排查问题,不参与调优,以避免对评测题过拟合。
101
+ - **对照**:官方标准预设,而非 minimal。旧宿主实测中,标准 + high 通过 51 题,minimal + high 通过 46 题,且标准每题 token 少 23.5%。与更强的对照比较,结论更严格。
102
+ - **控制变量**:同一宿主、同一模型、同一思考等级、同一预算,仅替换 Agent 预设。
103
+ - **指标**:通过数、每题净耗时(扣除失败请求和重试等待)、每题 token、每题模型调用次数。
197
104
 
198
- Each Super Code run has one NodeBB environment issue pending review, excluded from valid-score counts and means. npm dependencies are bundled offline, but reference setup still times out; original answers, verdicts, and usage are retained.
105
+ ### 评测过程
199
106
 
200
- - **新版组合出现退化。** 相比旧 DSH / 旧模型,标准通过数从 51 降到 45,Super Code 从 0.3.0 候选的 56 降到 0.3.4 的 40;这同时涉及宿主、模型和插件版本变化。
201
- - **预算是已定位的影响因素。** 新版更早压缩上下文、保留更少原文,PTC 执行时限也有变化。恢复旧预算后,Super Code 从 40 回升至 48,标准从 45 到 46。**0.3.6 已默认恢复旧预算**;表中验证组实际是 **0.3.5 + 显式旧预算**,不是另跑的 0.3.6 成绩。
202
- - **结果仍有波动。** v4.1 的多轮实验中,同一道题存在一轮通过、另一轮失败的情况。后续版本会尝试改善这种不稳定性;各轮配置也有变化,本轮回升不代表已消除波动,也不能证明全部退化都由预算造成。
107
+ 1. **旧宿主基线**(DSH `0.1.5-rc.2`,`deepseek-v4.1-flash`,high):Super Code `0.3.0` 候选通过 56 题,官方标准预设 51 题,minimal 46 题。相对 minimal,耗时减少 47.6%,token 减少 44.9%。
108
+ 2. **宿主升级后效果下降**:升级到 DSH `0.2.1-rc.2` 和 `deepseek-v4.1-flash-1017` 后,在默认预算下标准降至 46 题,Super Code `0.3.4` 降至 41 题,低于标准。排查发现新宿主收紧了上下文预算:压缩阈值由 800,000 降至 550,464 token,保留原文由 160,000 降至 98,560 token。
109
+ 3. **恢复旧预算后复测**:双方均使用旧预算。标准仍为 46 题,token 增加 14.2%;Super Code `0.3.5` 提升至 49 题,token 仅增加 0.4%,净耗时减少 19.4%。据此,`0.3.6` 起插件默认使用旧预算。
110
+ 4. **跨模型验证**(`glm-5.3-flash`,max):Super Code `0.3.4` 通过 45 题,原生 ZCode 通过 29 题;Super Code 每题净耗时更少(32.9 vs 52.3 分钟),token 更多(550 万 vs 361 万)。
203
111
 
204
- - **The newer combination regressed.** Standard fell from 51 passes on the older host/model to 45; Super Code fell from 56 for the 0.3.0 candidate to 40 for 0.3.4. Host, model, and plugin versions changed together.
205
- - **Budgets are one identified factor.** The newer host compresses earlier, retains less verbatim context, and changes PTC execution deadlines. Restoring the older budgets raised Super Code from 40 to 48 and standard from 45 to 46. **Version 0.3.6 restores these defaults.** The measured row is **0.3.5 with explicit legacy budgets**, not a separate 0.3.6 run.
206
- - **Run-to-run variation remains.** Across v4.1 experiments, the same task has both passed and failed. Future versions will aim to reduce this variability. Configurations also changed between runs; the recovery does not establish stability or attribute the entire regression to budgets.
112
+ ### 结果汇总
207
113
 
208
- [预算诊断、逐题记录与限制 · Budget diagnosis, per-task records, and limitations](docs/EvaluationResults.md#新版-dsh-与预算--new-dsh-and-budgets)
114
+ | 对比 | 通过 | 效率 |
115
+ |---|---|---|
116
+ | 新宿主、旧预算:Super Code `0.3.5` vs 标准 + high | 49 vs 46 | 净耗时 -21.3%,token -34.6%,模型调用 -25.5% |
117
+ | 新宿主、默认预算:Super Code `0.3.4` vs 标准 + high | 41 vs 46 | token -25.5%,净耗时 +13.9% |
118
+ | 旧宿主:Super Code `0.3.0` 候选 vs 标准 + high | 56 vs 51 | 原始耗时 -34.9%,token -27.9% |
119
+ | 旧宿主:Super Code `0.3.0` 候选 vs minimal + high | 56 vs 46 | 耗时 -47.6%,token -44.9% |
120
+ | GLM-5.3-flash:Super Code `0.3.4` vs 原生 ZCode | 45 vs 29 | 耗时 -37.1%,token +52.4% |
209
121
 
210
- [多维指标、逐题证据与统计口径](docs/EvaluationResults.md)
122
+ ### 限制
211
123
 
212
- [Detailed metrics, per-task evidence, and methodology](docs/EvaluationResults.md)
124
+ - 每组配置只运行一轮。同一道题在不同轮次中结果可能不同,目前尚未估计固定配置下的随机波动。
125
+ - 默认预算与旧预算两组的插件版本不同(`0.3.4` → `0.3.5`),收益不能全部归因于预算。
126
+ - `0.3.6` ~ `0.3.9` 未重新运行 100 题评测。
127
+ - 跨模型对比是两套完整系统之间的比较,无法单独分离插件的贡献。
213
128
 
214
- [使用说明 · Usage](docs/UsageGuide.md) · [兼容性 · Compatibility](docs/Compatibility.md) · [版本记录 · Changelog](docs/Changelog.md)
129
+ [评测结果与口径](docs/EvaluationResults.md) · [完整成绩表](eval/results/swebench-pro-final-100/ResultsTables.md)
215
130
 
216
- # 4 致谢 · Acknowledgements
131
+ ## 致谢
217
132
 
218
133
  本项目认可 [LINUX DO](https://linux.do) 社区。
219
134
 
220
- This project recognizes the [LINUX DO](https://linux.do) community.
221
-
222
- 感谢以下项目与资料。具体贡献、借鉴范围和许可证说明见[详细致谢文档](docs/Acknowledgements.md)。
223
-
224
- Thanks to the projects and resources below. See the [detailed acknowledgements](docs/Acknowledgements.md) for contributions, design references, and license notes.
225
-
226
- | 项目 / Reference | 类型与许可证 / Type and license | 贡献与借鉴 / Contribution and influence |
227
- | --- | --- | --- |
228
- | [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) | 宿主 / Harness,MIT | Agent、会话、工具、PTC、Skill 与 Web / 桌面扩展接口 / Agents, sessions, tools, PTC, Skills, Web and desktop APIs |
229
- | [ZCode](https://github.com/zai-org/ZCode) | UI 设计参考 / UI reference,Apache-2.0 | 紧凑布局、视觉层级、设置分组与交互状态 / Compact layouts, hierarchy, settings groups, interaction states |
230
- | [Agent Skills](https://agentskills.io/specification) | 开放规范 / Open specification,Apache-2.0 | SKILL.md、元数据、参考目录与按需加载 / SKILL.md, metadata, resource directories, progressive disclosure |
231
- | [Apple Human Interface Guidelines](https://developer.apple.com/design/human-interface-guidelines) | 设计指南,官方文档条款 / Design guidance, documentation terms | 前端 Skill 的布局、操作负担与反馈原则 / Layout, ergonomic controls, feedback guidance for the frontend Skill |
232
- | [W3C WCAG 2.2](https://www.w3.org/TR/WCAG22/) | Web 无障碍标准,W3C 文档条款 / Accessibility standard, W3C document terms | 操作目标尺寸、间距与浏览器验证 / Target size, spacing, browser validation |
233
- | [SWE-bench](https://github.com/SWE-bench/SWE-bench) | 评测代码 MIT;数据另见条款 / MIT code; separate data terms | dev 集有效困难 33 题的来源与评分基础 / Source and grading foundation for the 33 valid difficult dev tasks |
234
- | [SWE-bench Pro](https://github.com/scaleapi/SWE-bench_Pro-os) | 评测代码 MIT;数据另见条款 / MIT code; separate data terms | 冻结候选的 hard-100 评测与 bug 排查 / Frozen-candidate hard-100 evaluation and bug investigation |
235
- | [js-yaml](https://github.com/nodeca/js-yaml) / [Zod](https://github.com/colinhacks/zod) | 运行依赖 / Runtime dependencies,MIT | YAML 解析与数据校验 / YAML parsing and data validation |
135
+ | 项目 | 参考内容 |
136
+ |---|---|
137
+ | [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)(MIT) | 运行宿主:Agent、会话、工具、PTC、Skill、界面扩展 |
138
+ | [ZCode](https://github.com/zai-org/ZCode)(Apache-2.0) | 界面设计 |
139
+ | [Agent Skills](https://agentskills.io/specification) | 前端 Skill 的文件格式 |
140
+ | [Apple HIG](https://developer.apple.com/design/human-interface-guidelines)、[WCAG 2.2](https://www.w3.org/TR/WCAG22/) | 前端 Skill 的交互与无障碍原则 |
141
+ | [SWE-bench](https://github.com/SWE-bench/SWE-bench)、[SWE-bench Pro](https://github.com/scaleapi/SWE-bench_Pro-os)(代码 MIT) | 调优题与评测题 |
142
+ | [js-yaml](https://github.com/nodeca/js-yaml)、[Zod](https://github.com/colinhacks/zod)(MIT) | YAML 解析、数据校验 |
143
+
144
+ [详细致谢与许可证](docs/Acknowledgements.md) · 本项目采用 [Apache-2.0](LICENSE) 许可证。