@james5642432/deepseek-acp 0.0.0-stage → 0.11.0-coteam.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +65 -0
- package/README.md +346 -2
- package/README.zh-CN.md +297 -0
- package/lib/answerers/approval.js +73 -0
- package/lib/answerers/approval.js.map +1 -0
- package/lib/answerers/ask.js +25 -0
- package/lib/answerers/ask.js.map +1 -0
- package/lib/answerers/elicitation.js +166 -0
- package/lib/answerers/elicitation.js.map +1 -0
- package/lib/answerers/fs-read.js +54 -0
- package/lib/answerers/fs-read.js.map +1 -0
- package/lib/answerers/permission-ask.js +151 -0
- package/lib/answerers/permission-ask.js.map +1 -0
- package/lib/bin.js +32 -0
- package/lib/bin.js.map +1 -0
- package/lib/bridge.js +9 -0
- package/lib/bridge.js.map +1 -0
- package/lib/codec/content.js +42 -0
- package/lib/codec/content.js.map +1 -0
- package/lib/codec/errors.js +51 -0
- package/lib/codec/errors.js.map +1 -0
- package/lib/codec/prompt.js +126 -0
- package/lib/codec/prompt.js.map +1 -0
- package/lib/codec/stop-reason.js +32 -0
- package/lib/codec/stop-reason.js.map +1 -0
- package/lib/composition/lsp.js +171 -0
- package/lib/composition/lsp.js.map +1 -0
- package/lib/composition/pi-ai.js +103 -0
- package/lib/composition/pi-ai.js.map +1 -0
- package/lib/composition/pwsh-compat.js +36 -0
- package/lib/composition/pwsh-compat.js.map +1 -0
- package/lib/composition/session-fs.js +199 -0
- package/lib/composition/session-fs.js.map +1 -0
- package/lib/composition/settings.js +233 -0
- package/lib/composition/settings.js.map +1 -0
- package/lib/composition/shell.js +36 -0
- package/lib/composition/shell.js.map +1 -0
- package/lib/composition/workspace.js +45 -0
- package/lib/composition/workspace.js.map +1 -0
- package/lib/config/modes.js +67 -0
- package/lib/config/modes.js.map +1 -0
- package/lib/config/options.js +206 -0
- package/lib/config/options.js.map +1 -0
- package/lib/index.js +331 -0
- package/lib/index.js.map +1 -0
- package/lib/launcher/boot.js +625 -0
- package/lib/launcher/boot.js.map +1 -0
- package/lib/launcher/cli.js +68 -0
- package/lib/launcher/cli.js.map +1 -0
- package/lib/launcher/extra-plugins.js +151 -0
- package/lib/launcher/extra-plugins.js.map +1 -0
- package/lib/launcher/setup.js +134 -0
- package/lib/launcher/setup.js.map +1 -0
- package/lib/launcher/tool-call-stream-guard.js +218 -0
- package/lib/launcher/tool-call-stream-guard.js.map +1 -0
- package/lib/mapping/assistant-stream.js +126 -0
- package/lib/mapping/assistant-stream.js.map +1 -0
- package/lib/mapping/plan.js +18 -0
- package/lib/mapping/plan.js.map +1 -0
- package/lib/mapping/retry-notice.js +50 -0
- package/lib/mapping/retry-notice.js.map +1 -0
- package/lib/mapping/updates.js +243 -0
- package/lib/mapping/updates.js.map +1 -0
- package/lib/mcp/mount.js +26 -0
- package/lib/mcp/mount.js.map +1 -0
- package/lib/mcp/naming.js +70 -0
- package/lib/mcp/naming.js.map +1 -0
- package/lib/mcp/spec.js +71 -0
- package/lib/mcp/spec.js.map +1 -0
- package/lib/port/in-process.js +879 -0
- package/lib/port/in-process.js.map +1 -0
- package/lib/port/types.js +10 -0
- package/lib/port/types.js.map +1 -0
- package/lib/presentation/paths.js +51 -0
- package/lib/presentation/paths.js.map +1 -0
- package/lib/presentation/presenter.js +128 -0
- package/lib/presentation/presenter.js.map +1 -0
- package/lib/presentation/terminal.js +79 -0
- package/lib/presentation/terminal.js.map +1 -0
- package/lib/presentation/tool-call.js +157 -0
- package/lib/presentation/tool-call.js.map +1 -0
- package/lib/protocol/initialize.js +237 -0
- package/lib/protocol/initialize.js.map +1 -0
- package/lib/protocol/mcp-params.js +29 -0
- package/lib/protocol/mcp-params.js.map +1 -0
- package/lib/protocol/providers.js +128 -0
- package/lib/protocol/providers.js.map +1 -0
- package/lib/protocol/session-cancel.js +22 -0
- package/lib/protocol/session-cancel.js.map +1 -0
- package/lib/protocol/session-close.js +47 -0
- package/lib/protocol/session-close.js.map +1 -0
- package/lib/protocol/session-commands.js +98 -0
- package/lib/protocol/session-commands.js.map +1 -0
- package/lib/protocol/session-config.js +106 -0
- package/lib/protocol/session-config.js.map +1 -0
- package/lib/protocol/session-fork.js +122 -0
- package/lib/protocol/session-fork.js.map +1 -0
- package/lib/protocol/session-list.js +78 -0
- package/lib/protocol/session-list.js.map +1 -0
- package/lib/protocol/session-load.js +156 -0
- package/lib/protocol/session-load.js.map +1 -0
- package/lib/protocol/session-missing.js +52 -0
- package/lib/protocol/session-missing.js.map +1 -0
- package/lib/protocol/session-mode.js +35 -0
- package/lib/protocol/session-mode.js.map +1 -0
- package/lib/protocol/session-new.js +80 -0
- package/lib/protocol/session-new.js.map +1 -0
- package/lib/protocol/session-prompt.js +218 -0
- package/lib/protocol/session-prompt.js.map +1 -0
- package/lib/protocol/session-resume.js +51 -0
- package/lib/protocol/session-resume.js.map +1 -0
- package/lib/session/fork-point.js +232 -0
- package/lib/session/fork-point.js.map +1 -0
- package/lib/session/list-index.js +235 -0
- package/lib/session/list-index.js.map +1 -0
- package/lib/session/table.js +74 -0
- package/lib/session/table.js.map +1 -0
- package/lib/session/workspace-path.js +93 -0
- package/lib/session/workspace-path.js.map +1 -0
- package/lib/types/answerers/approval.d.ts +68 -0
- package/lib/types/answerers/approval.d.ts.map +1 -0
- package/lib/types/answerers/ask.d.ts +29 -0
- package/lib/types/answerers/ask.d.ts.map +1 -0
- package/lib/types/answerers/elicitation.d.ts +58 -0
- package/lib/types/answerers/elicitation.d.ts.map +1 -0
- package/lib/types/answerers/fs-read.d.ts +41 -0
- package/lib/types/answerers/fs-read.d.ts.map +1 -0
- package/lib/types/answerers/permission-ask.d.ts +65 -0
- package/lib/types/answerers/permission-ask.d.ts.map +1 -0
- package/lib/types/bin.d.ts +7 -0
- package/lib/types/bin.d.ts.map +1 -0
- package/lib/types/bridge.d.ts +73 -0
- package/lib/types/bridge.d.ts.map +1 -0
- package/lib/types/codec/content.d.ts +26 -0
- package/lib/types/codec/content.d.ts.map +1 -0
- package/lib/types/codec/errors.d.ts +38 -0
- package/lib/types/codec/errors.d.ts.map +1 -0
- package/lib/types/codec/prompt.d.ts +55 -0
- package/lib/types/codec/prompt.d.ts.map +1 -0
- package/lib/types/codec/stop-reason.d.ts +15 -0
- package/lib/types/codec/stop-reason.d.ts.map +1 -0
- package/lib/types/composition/lsp.d.ts +61 -0
- package/lib/types/composition/lsp.d.ts.map +1 -0
- package/lib/types/composition/pi-ai.d.ts +54 -0
- package/lib/types/composition/pi-ai.d.ts.map +1 -0
- package/lib/types/composition/pwsh-compat.d.ts +18 -0
- package/lib/types/composition/pwsh-compat.d.ts.map +1 -0
- package/lib/types/composition/session-fs.d.ts +182 -0
- package/lib/types/composition/session-fs.d.ts.map +1 -0
- package/lib/types/composition/settings.d.ts +105 -0
- package/lib/types/composition/settings.d.ts.map +1 -0
- package/lib/types/composition/shell.d.ts +16 -0
- package/lib/types/composition/shell.d.ts.map +1 -0
- package/lib/types/composition/workspace.d.ts +41 -0
- package/lib/types/composition/workspace.d.ts.map +1 -0
- package/lib/types/config/modes.d.ts +50 -0
- package/lib/types/config/modes.d.ts.map +1 -0
- package/lib/types/config/options.d.ts +77 -0
- package/lib/types/config/options.d.ts.map +1 -0
- package/lib/types/index.d.ts +41 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/launcher/boot.d.ts +205 -0
- package/lib/types/launcher/boot.d.ts.map +1 -0
- package/lib/types/launcher/cli.d.ts +29 -0
- package/lib/types/launcher/cli.d.ts.map +1 -0
- package/lib/types/launcher/extra-plugins.d.ts +82 -0
- package/lib/types/launcher/extra-plugins.d.ts.map +1 -0
- package/lib/types/launcher/setup.d.ts +67 -0
- package/lib/types/launcher/setup.d.ts.map +1 -0
- package/lib/types/launcher/tool-call-stream-guard.d.ts +48 -0
- package/lib/types/launcher/tool-call-stream-guard.d.ts.map +1 -0
- package/lib/types/mapping/assistant-stream.d.ts +69 -0
- package/lib/types/mapping/assistant-stream.d.ts.map +1 -0
- package/lib/types/mapping/plan.d.ts +16 -0
- package/lib/types/mapping/plan.d.ts.map +1 -0
- package/lib/types/mapping/retry-notice.d.ts +33 -0
- package/lib/types/mapping/retry-notice.d.ts.map +1 -0
- package/lib/types/mapping/updates.d.ts +53 -0
- package/lib/types/mapping/updates.d.ts.map +1 -0
- package/lib/types/mcp/mount.d.ts +22 -0
- package/lib/types/mcp/mount.d.ts.map +1 -0
- package/lib/types/mcp/naming.d.ts +35 -0
- package/lib/types/mcp/naming.d.ts.map +1 -0
- package/lib/types/mcp/spec.d.ts +45 -0
- package/lib/types/mcp/spec.d.ts.map +1 -0
- package/lib/types/port/in-process.d.ts +17 -0
- package/lib/types/port/in-process.d.ts.map +1 -0
- package/lib/types/port/types.d.ts +493 -0
- package/lib/types/port/types.d.ts.map +1 -0
- package/lib/types/presentation/paths.d.ts +37 -0
- package/lib/types/presentation/paths.d.ts.map +1 -0
- package/lib/types/presentation/presenter.d.ts +74 -0
- package/lib/types/presentation/presenter.d.ts.map +1 -0
- package/lib/types/presentation/terminal.d.ts +68 -0
- package/lib/types/presentation/terminal.d.ts.map +1 -0
- package/lib/types/presentation/tool-call.d.ts +51 -0
- package/lib/types/presentation/tool-call.d.ts.map +1 -0
- package/lib/types/protocol/initialize.d.ts +131 -0
- package/lib/types/protocol/initialize.d.ts.map +1 -0
- package/lib/types/protocol/mcp-params.d.ts +20 -0
- package/lib/types/protocol/mcp-params.d.ts.map +1 -0
- package/lib/types/protocol/providers.d.ts +41 -0
- package/lib/types/protocol/providers.d.ts.map +1 -0
- package/lib/types/protocol/session-cancel.d.ts +14 -0
- package/lib/types/protocol/session-cancel.d.ts.map +1 -0
- package/lib/types/protocol/session-close.d.ts +20 -0
- package/lib/types/protocol/session-close.d.ts.map +1 -0
- package/lib/types/protocol/session-commands.d.ts +48 -0
- package/lib/types/protocol/session-commands.d.ts.map +1 -0
- package/lib/types/protocol/session-config.d.ts +26 -0
- package/lib/types/protocol/session-config.d.ts.map +1 -0
- package/lib/types/protocol/session-fork.d.ts +26 -0
- package/lib/types/protocol/session-fork.d.ts.map +1 -0
- package/lib/types/protocol/session-list.d.ts +31 -0
- package/lib/types/protocol/session-list.d.ts.map +1 -0
- package/lib/types/protocol/session-load.d.ts +56 -0
- package/lib/types/protocol/session-load.d.ts.map +1 -0
- package/lib/types/protocol/session-missing.d.ts +29 -0
- package/lib/types/protocol/session-missing.d.ts.map +1 -0
- package/lib/types/protocol/session-mode.d.ts +13 -0
- package/lib/types/protocol/session-mode.d.ts.map +1 -0
- package/lib/types/protocol/session-new.d.ts +13 -0
- package/lib/types/protocol/session-new.d.ts.map +1 -0
- package/lib/types/protocol/session-prompt.d.ts +17 -0
- package/lib/types/protocol/session-prompt.d.ts.map +1 -0
- package/lib/types/protocol/session-resume.d.ts +21 -0
- package/lib/types/protocol/session-resume.d.ts.map +1 -0
- package/lib/types/session/fork-point.d.ts +90 -0
- package/lib/types/session/fork-point.d.ts.map +1 -0
- package/lib/types/session/list-index.d.ts +102 -0
- package/lib/types/session/list-index.d.ts.map +1 -0
- package/lib/types/session/table.d.ts +86 -0
- package/lib/types/session/table.d.ts.map +1 -0
- package/lib/types/session/workspace-path.d.ts +50 -0
- package/lib/types/session/workspace-path.d.ts.map +1 -0
- package/package.json +149 -4
- package/src/answerers/approval.ts +109 -0
- package/src/answerers/ask.ts +35 -0
- package/src/answerers/elicitation.ts +206 -0
- package/src/answerers/fs-read.ts +70 -0
- package/src/answerers/permission-ask.ts +193 -0
- package/src/bin.ts +37 -0
- package/src/bridge.ts +75 -0
- package/src/codec/content.ts +45 -0
- package/src/codec/errors.ts +55 -0
- package/src/codec/prompt.ts +140 -0
- package/src/codec/stop-reason.ts +35 -0
- package/src/composition/lsp.ts +193 -0
- package/src/composition/pi-ai.ts +103 -0
- package/src/composition/pwsh-compat.ts +43 -0
- package/src/composition/session-fs.ts +306 -0
- package/src/composition/settings.ts +251 -0
- package/src/composition/shell.ts +48 -0
- package/src/composition/workspace.ts +58 -0
- package/src/config/modes.ts +73 -0
- package/src/config/options.ts +267 -0
- package/src/index.ts +392 -0
- package/src/launcher/boot.ts +658 -0
- package/src/launcher/cli.ts +73 -0
- package/src/launcher/extra-plugins.ts +195 -0
- package/src/launcher/setup.ts +146 -0
- package/src/launcher/tool-call-stream-guard.ts +230 -0
- package/src/mapping/assistant-stream.ts +134 -0
- package/src/mapping/plan.ts +21 -0
- package/src/mapping/retry-notice.ts +53 -0
- package/src/mapping/updates.ts +291 -0
- package/src/mcp/mount.ts +33 -0
- package/src/mcp/naming.ts +79 -0
- package/src/mcp/spec.ts +97 -0
- package/src/port/in-process.ts +941 -0
- package/src/port/types.ts +486 -0
- package/src/presentation/paths.ts +52 -0
- package/src/presentation/presenter.ts +144 -0
- package/src/presentation/terminal.ts +94 -0
- package/src/presentation/tool-call.ts +201 -0
- package/src/protocol/initialize.ts +254 -0
- package/src/protocol/mcp-params.ts +29 -0
- package/src/protocol/providers.ts +156 -0
- package/src/protocol/session-cancel.ts +24 -0
- package/src/protocol/session-close.ts +53 -0
- package/src/protocol/session-commands.ts +116 -0
- package/src/protocol/session-config.ts +134 -0
- package/src/protocol/session-fork.ts +142 -0
- package/src/protocol/session-list.ts +91 -0
- package/src/protocol/session-load.ts +193 -0
- package/src/protocol/session-missing.ts +56 -0
- package/src/protocol/session-mode.ts +39 -0
- package/src/protocol/session-new.ts +91 -0
- package/src/protocol/session-prompt.ts +244 -0
- package/src/protocol/session-resume.ts +63 -0
- package/src/session/fork-point.ts +259 -0
- package/src/session/list-index.ts +275 -0
- package/src/session/table.ts +128 -0
- package/src/session/workspace-path.ts +92 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 deepseek-acp contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
THIRD-PARTY NOTICE
|
|
26
|
+
|
|
27
|
+
本仓库不含任何第三方源码的逐字副本。但本项目的**测试套件与设计**有相当一部分
|
|
28
|
+
派生自 deepseek-ai/deepseek-harness 曾经存在的编辑器向 ACP bridge
|
|
29
|
+
(`packages/ui/acp`,在 2026-07-24 的提交 `e819a586b` 中被删除)。**该快照适用
|
|
30
|
+
BSD-3-Clause**——上游是在删除之后才把仓库许可换成 MIT 的,因此这里保留的是旧许可
|
|
31
|
+
而不是新的。以下为其原始版权声明与许可正文,按 BSD-3-Clause 第 1 条的要求随附。
|
|
32
|
+
|
|
33
|
+
BSD 3-Clause License
|
|
34
|
+
|
|
35
|
+
Copyright (c) 2026, DeepSeek
|
|
36
|
+
|
|
37
|
+
Redistribution and use in source and binary forms, with or without
|
|
38
|
+
modification, are permitted provided that the following conditions are met:
|
|
39
|
+
|
|
40
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
41
|
+
list of conditions and the following disclaimer.
|
|
42
|
+
|
|
43
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
44
|
+
this list of conditions and the following disclaimer in the documentation
|
|
45
|
+
and/or other materials provided with the distribution.
|
|
46
|
+
|
|
47
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
48
|
+
contributors may be used to endorse or promote products derived from
|
|
49
|
+
this software without specific prior written permission.
|
|
50
|
+
|
|
51
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
52
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
53
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
54
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
55
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
56
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
57
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
58
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
59
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
60
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
本项目是非官方的社区适配器,与 DeepSeek 无隶属关系,亦未获其背书。上面第 3 条
|
|
65
|
+
禁止的是以版权持有人名义背书;本项目对 DeepSeek Harness 的提及均为描述性说明。
|
package/README.md
CHANGED
|
@@ -1,3 +1,347 @@
|
|
|
1
|
-
#
|
|
1
|
+
# deepseek-acp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**English** | [简体中文](README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
> **This is CoTeam's fork**, published as `@james5642432/deepseek-acp` for use by
|
|
6
|
+
> [codeg](https://github.com/Tinghecui/dodoer-releases). It is upstream
|
|
7
|
+
> [xintaofei/deepseek-acp](https://github.com/xintaofei/deepseek-acp) plus the
|
|
8
|
+
> `DEEPSEEK_ACP_PLUGINS` mount point proposed in
|
|
9
|
+
> [xintaofei/deepseek-acp#17](https://github.com/xintaofei/deepseek-acp/pull/17); the version
|
|
10
|
+
> suffix `-coteam.N` marks the fork revision on top of the upstream version. Use the
|
|
11
|
+
> upstream `deepseek-acp` package unless you need that change.
|
|
12
|
+
|
|
13
|
+
[](https://www.npmjs.com/package/deepseek-acp)
|
|
14
|
+
[](https://www.npmjs.com/package/deepseek-acp)
|
|
15
|
+
[](https://github.com/xintaofei/deepseek-acp/actions/workflows/ci.yml)
|
|
16
|
+
|
|
17
|
+
Turns [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) into a
|
|
18
|
+
**full-featured editor-facing coding agent** that communicates with clients over the
|
|
19
|
+
[Agent Client Protocol](https://agentclientprotocol.com) (ACP).
|
|
20
|
+
|
|
21
|
+
**Supported clients**: any editor that implements ACP. Development testing is done with
|
|
22
|
+
**[codeg](https://github.com/xintaofei/codeg)**. **[Zed](https://zed.dev)** uses the same protocol
|
|
23
|
+
and can be configured as shown below, but has not yet been validated feature by feature.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## DSH 0.2 compatibility
|
|
28
|
+
|
|
29
|
+
This branch pins every DSH package to **0.2.2-rc.3** and requires **Node 22.19.0 or later**.
|
|
30
|
+
Upstream DSH itself has required Node 24.9 since 0.2.1-alpha.4; the extra floor comes from parts
|
|
31
|
+
this adapter does not load (the OAR subagent library and the CLI scripts). This project keeps Node 22
|
|
32
|
+
in its CI matrix, so a DSH upgrade that breaks Node 22 fails here first.
|
|
33
|
+
It still assembles DSH inside the ACP process; it does not launch the official desktop runtime.
|
|
34
|
+
New sessions use the native v4 log. The upstream persistence backend can restore supported v3
|
|
35
|
+
logs and publishes a v4 successor while retaining the original v3 bytes. Migration support is
|
|
36
|
+
subject to the upstream format policy; an old harness cannot read the resulting v4 log.
|
|
37
|
+
|
|
38
|
+
The existing editor features remain in scope: streaming, tool cards, approval, questions,
|
|
39
|
+
session restore/fork, model selection, MCP, and provider configuration. ACP provider edits are
|
|
40
|
+
stored in `$DSH_HOME/deepseek-acp/settings.yaml` (secrets go to the credential store), without
|
|
41
|
+
modifying native DSH profiles. The previous location, `$DSH_HOME/settings.yaml`, is no longer
|
|
42
|
+
written: upstream DSH 0.2 renames that file to `settings.yaml.imported` when it starts. Routes
|
|
43
|
+
configured with 0.9.0 are imported read-only from either file until the first edit. The official
|
|
44
|
+
API-key route remains deployment-owned and read-only in the ACP provider editor.
|
|
45
|
+
|
|
46
|
+
The first `session/list` after upgrading has to read each old v3 log once, and on DSH 0.2 each of
|
|
47
|
+
those reads scans the whole session root. The list answers within about two seconds, so sessions
|
|
48
|
+
that were not read in time show up without a title. The reads continue in the background and are
|
|
49
|
+
saved to an index next to the session root, so later lists have every title and do not reopen
|
|
50
|
+
unchanged logs.
|
|
51
|
+
|
|
52
|
+
**A newer kernel does not mean all official features are exposed.** Native background jobs,
|
|
53
|
+
child-agent delegation, official account login/search, and the desktop extension composition are
|
|
54
|
+
not added by this upgrade. Question forms also depend on client support: the permission-button
|
|
55
|
+
fallback supports choices, but cannot collect free text. This scope preserves the project's
|
|
56
|
+
existing composition boundaries.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Why This Exists
|
|
61
|
+
|
|
62
|
+
DeepSeek Harness ships with an ACP server (`@deepseek-ai/dsh-acp`), but it is designed for
|
|
63
|
+
**automation only**, not for human interaction. The upstream description is explicit:
|
|
64
|
+
|
|
65
|
+
> This package is a transport adapter, not a UI integration or a capability seam.
|
|
66
|
+
> It does not expose editor navigation, transcript replay, commands, modes,
|
|
67
|
+
> configuration pickers, elicitation, reasoning, plans, titles, or tool presentation.
|
|
68
|
+
|
|
69
|
+
Its primary client is `dsh-subagent-acp`, a channel through which a parent harness spawns child
|
|
70
|
+
agents. That design is right for this use case: it emits only **committed** assistant messages,
|
|
71
|
+
omits uncommitted intermediate state, and returns a clean automation result.
|
|
72
|
+
|
|
73
|
+
The same design falls short inside an editor:
|
|
74
|
+
|
|
75
|
+
- **You cannot see what the model is doing.** Tool calls, command output, and file changes remain
|
|
76
|
+
only in the session log; the UI shows nothing but the final text. If the model edits your files,
|
|
77
|
+
you have to run `git diff` yourself to find out what changed.
|
|
78
|
+
- **There is no token-by-token streaming.** Updates arrive only after a complete message is
|
|
79
|
+
committed, leaving the UI motionless during long responses.
|
|
80
|
+
- **Sessions are disposable.** Once closed, they are gone: there is no restore, list, or title.
|
|
81
|
+
- **There is no control surface.** You cannot switch models, change file permissions, enable plan
|
|
82
|
+
mode, or run slash commands.
|
|
83
|
+
- **MCP is rejected.** Any non-empty `mcpServers` value fails immediately.
|
|
84
|
+
|
|
85
|
+
The upstream project actually built a complete editor-facing bridge, then deliberately removed it
|
|
86
|
+
on 2026-07-24 for product-positioning reasons, not because it was technically infeasible. **This
|
|
87
|
+
project fills that vacated niche**: the same harness core, with a protocol surface designed for
|
|
88
|
+
humans.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Feature Comparison
|
|
93
|
+
|
|
94
|
+
| Feature | `@deepseek-ai/dsh-acp` (built in) | **deepseek-acp** (this project) |
|
|
95
|
+
|---|---|---|
|
|
96
|
+
| Purpose | Automation-only transport adapter | Full editor-facing agent |
|
|
97
|
+
| Response streaming | Only after a complete message is committed | Token by token |
|
|
98
|
+
| Reasoning | No; remains in the log | Yes; `agent_thought_chunk` |
|
|
99
|
+
| Tool calls | No presentation | Cards with status transitions |
|
|
100
|
+
| File diffs | No | Native editor diff view |
|
|
101
|
+
| Terminal output | No | Terminal cards using the Zed `_meta` convention |
|
|
102
|
+
| Task plans | No | `plan` updates and plan mode |
|
|
103
|
+
| Session restore / list | No; sessions disappear when closed | `load` / `list` / `resume` / `close`, with titles |
|
|
104
|
+
| Session forks | No | `session/fork`, with separate parent and child logs; forks at a chosen message when the client names one |
|
|
105
|
+
| In-session model switching | No | Model, reasoning level, and file-permission selectors |
|
|
106
|
+
| Slash commands | No | Command catalog; commands do not enter model context |
|
|
107
|
+
| Skills | No | Loaded by the model on demand; user-invocable skills appear in slash completion |
|
|
108
|
+
| Model-to-user questions | No | Form elicitation, with a button fallback for unsupported clients |
|
|
109
|
+
| MCP servers | No; rejects non-empty values | Per-session mounting, stdio and HTTP, isolated between sessions |
|
|
110
|
+
| Context usage | No | `usage_update` progress indicator |
|
|
111
|
+
| Unsaved buffers | No | Routes `fs/read_text_file` through the editor |
|
|
112
|
+
| Embedded context (`@` files) | No; `embeddedContext: false` | Fully inlined |
|
|
113
|
+
| Image input | No; `image: false` | Preserves interleaved order; bytes stored in a content-addressed store |
|
|
114
|
+
| Permission prompts | One-time allow / reject | Same, plus elevation for sandbox boundary crossings |
|
|
115
|
+
| Multiple sessions | Yes | Yes |
|
|
116
|
+
|
|
117
|
+
**Request retries.** Model requests that fail with a network error, a timeout, rate limiting (429),
|
|
118
|
+
or a server 5xx are retried automatically, up to 5 times, with exponential backoff starting at
|
|
119
|
+
0.5 s and capped at 10 s per wait; a server `Retry-After` is honored, and one longer than the cap ends the retries. While waiting,
|
|
120
|
+
the reply shows a line such as "模型请求失败:…,N 秒后第 k/5 次重试", and cancellation takes
|
|
121
|
+
effect immediately. Authentication failures, exhausted balance, and invalid requests are not
|
|
122
|
+
retried: every retry is a billed request, and these would fail again.
|
|
123
|
+
|
|
124
|
+
**Sandboxing.** Commands and file operations share the same boundary. The default mode is
|
|
125
|
+
`workspace-write`, with writable roots set to `{session cwd, system temporary directory}`. Shell
|
|
126
|
+
and file tools use the same policy definition. Boundary crossings are rejected, and the model can
|
|
127
|
+
request elevation for a single operation through `session/request_permission`.
|
|
128
|
+
|
|
129
|
+
Windows uses the system PowerShell, preferring PowerShell 7 and falling back to Windows PowerShell
|
|
130
|
+
5.1. The tool is named `pwsh`, and Git Bash is not required. Linux and macOS use `bash`. The Windows
|
|
131
|
+
ACL backend reports `enforcement: partial`: it restricts ordinary NTFS writes, but does not restrict
|
|
132
|
+
reads, network access, or process visibility, and does not promise coverage for WSL, FAT, Everyone
|
|
133
|
+
ACLs, or hard-link boundaries. If sandboxing is unavailable, execution is rejected instead of
|
|
134
|
+
silently falling back to unrestricted access.
|
|
135
|
+
|
|
136
|
+
**Built-in tools**: the platform shell (`pwsh` on Windows, `bash` on Linux and macOS), `read`,
|
|
137
|
+
`write`, `edit`, `glob`, `grep`, `todo_write`, `ask_user_question`, `exit_plan_mode`, and `lsp` when
|
|
138
|
+
supported by the current machine, as described below.
|
|
139
|
+
|
|
140
|
+
**Context compaction.** When a long session approaches the context-window limit, older messages
|
|
141
|
+
are automatically summarized into a replacement message instead of letting the next request fail
|
|
142
|
+
with a context-limit error. You can also run `/compact` manually. Clients that declare
|
|
143
|
+
`session.compaction` receive `compaction_update` and `compaction_summary_chunk` notifications that
|
|
144
|
+
show which segment was compacted and what summary replaced it. Other clients still get compaction,
|
|
145
|
+
but without progress updates.
|
|
146
|
+
|
|
147
|
+
**Repetition guard.** If the model repeatedly calls the same tool with identical arguments, the
|
|
148
|
+
agent injects an escalation prompt. It does not add anything to the tool catalog, reject the call,
|
|
149
|
+
or rewrite its arguments. The model retains control, so legitimate repeated calls continue to work.
|
|
150
|
+
|
|
151
|
+
**Instruction files and skills.** In every directory from the project root (the nearest `.git`)
|
|
152
|
+
down to the session cwd, `AGENTS.md`, `CLAUDE.md`, and their `.local.md` overlays are loaded into
|
|
153
|
+
the model context. Two user-wide files are added too: `$DSH_HOME/AGENTS.md` (`~/.dsh/AGENTS.md`)
|
|
154
|
+
and, **new in DSH 0.2**, `$DSH_AGENTS_HOME/AGENTS.md` (`~/.agents/AGENTS.md` by default). Project
|
|
155
|
+
files and user-wide files each have their own 40,000-byte cap, so one cannot crowd out the other. Skills are discovered under `<project>/.dsh/skills`,
|
|
156
|
+
`<project>/.agents/skills`, `$DSH_HOME/skills`, and `$DSH_AGENTS_HOME/skills`; adding or editing a
|
|
157
|
+
skill takes effect without reconnecting.
|
|
158
|
+
|
|
159
|
+
**`~/.agents` is shared with other agent tools.** Whatever another tool, or a script you ran, puts in
|
|
160
|
+
`~/.agents/AGENTS.md` or `~/.agents/skills` also reaches DeepSeek's context. Check what is there, or
|
|
161
|
+
set `DSH_AGENTS_HOME` in the client's environment configuration to a directory you control.
|
|
162
|
+
|
|
163
|
+
**Image input.** Paste or drag images into the editor. Text and images enter the model in their
|
|
164
|
+
original interleaved order, so `before [image] after [image]` does not become
|
|
165
|
+
`before after [image] [image]`. Image bytes are stored in a content-addressed store under
|
|
166
|
+
`$DSH_HOME/attachments/`, while session logs contain references only. Writing base64 directly into
|
|
167
|
+
the log could make a single entry tens of megabytes, and every restore would have to read the whole
|
|
168
|
+
file. The default model, `deepseek-flash`, accepts images. On a text-only route the message is
|
|
169
|
+
rejected with a prompt naming the current model, so you know to switch in the model selector. PNG,
|
|
170
|
+
JPEG, WebP, and GIF are supported, with up to 20 images per message.
|
|
171
|
+
|
|
172
|
+
**Code navigation (`lsp`).** Language servers are connected automatically when installed; if none
|
|
173
|
+
are found, the entire tool is omitted. At startup, the agent scans `PATH` once for built-in
|
|
174
|
+
candidates (`typescript-language-server`, `pyright-langserver`, `gopls`, and `rust-analyzer`). This
|
|
175
|
+
is deliberate: the upstream stdio host resolves every executable while loading the plugin, so one
|
|
176
|
+
missing executable prevents any provider from registering. A hard-coded default table would mean
|
|
177
|
+
that missing `gopls` could disable editor integration entirely. To use a different server, such as
|
|
178
|
+
`deno lsp`, a project-local `node_modules/.bin/...` executable, or an in-house implementation, set
|
|
179
|
+
`DEEPSEEK_ACP_LSP_SERVERS` to a servers JSON value. It **replaces the entire built-in table**. The
|
|
180
|
+
tool itself is read-only and exposes four operations: `goToDefinition`, `findReferences`,
|
|
181
|
+
`goToImplementation`, and `hover`.
|
|
182
|
+
|
|
183
|
+
**Intentionally omitted**: delegation through `fs/write_text_file`, which would bypass the sandbox
|
|
184
|
+
and make the file-permission selector meaningless; background jobs, because updates from
|
|
185
|
+
self-initiated turns have no corresponding `stopReason`; and the upstream `packages/extensions/`
|
|
186
|
+
system (`cordis_define` / `cordis_run`). That system lets the model rewrite its own runtime inside
|
|
187
|
+
`node:vm` with a live service facade, bypassing the sandbox above, and its startup controls live in
|
|
188
|
+
an unpublished browser-side package. **Blocked by upstream limitations**: `session/delete`, because
|
|
189
|
+
the persistence backend has no delete or purge API, and the MCP `sse` / `acp` transports.
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Editor Setup
|
|
194
|
+
|
|
195
|
+
The executable is `deepseek-acp` and speaks ACP over stdio. **Starting the server requires no
|
|
196
|
+
arguments**: editors can launch it directly. The `--setup`, `--version`, and `--help` switches run
|
|
197
|
+
their action and exit without entering server mode. Any other arguments still start the server
|
|
198
|
+
normally. Editors may pass extra arguments for their own reasons, and rejecting them would turn a
|
|
199
|
+
working integration into a generic "connection failed" message.
|
|
200
|
+
|
|
201
|
+
There are two ways to provide an API key; choose one:
|
|
202
|
+
|
|
203
|
+
- **`deepseek-acp --setup`**: paste the key once in an interactive prompt. It is stored in
|
|
204
|
+
`$DSH_HOME/.credentials.yaml` with mode `0600`. See [Login](#login) below.
|
|
205
|
+
- **Client environment variables**: both configurations below show where to set one. If a key is
|
|
206
|
+
already stored through `--setup`, the stored key is used instead.
|
|
207
|
+
|
|
208
|
+
**Do not rely on `export` in `.zshrc`.** GUI editors do not inherit the login shell environment,
|
|
209
|
+
and neither do the child processes they spawn. This is why `--setup` stores credentials in a file
|
|
210
|
+
independently of the launch environment.
|
|
211
|
+
|
|
212
|
+
### Login
|
|
213
|
+
|
|
214
|
+
During `initialize`, the server may advertise an ACP **Terminal Auth** method:
|
|
215
|
+
|
|
216
|
+
```json
|
|
217
|
+
{ "id": "terminal", "type": "terminal", "args": ["--setup"] }
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
It is sent **only to clients that declare support** through
|
|
221
|
+
`clientCapabilities.auth.terminal === true` or `_meta["terminal-auth"] === true`, a convention that
|
|
222
|
+
predates the capability flag. Without either signal, `authMethods` is an empty array, exactly as it
|
|
223
|
+
was before this feature existed. Terminal login is an opt-in method type, and advertising it to an
|
|
224
|
+
unprepared client would only cause problems. The top-level `clientCapabilities.terminal` flag does
|
|
225
|
+
**not** count: that flag indicates support for the `terminal/*` methods used by terminal cards, which
|
|
226
|
+
is a different feature.
|
|
227
|
+
|
|
228
|
+
Supporting clients launch the **same executable** with `--setup` in a separate interactive terminal
|
|
229
|
+
and wait for it to exit. **Exit code 0 means success**, after which they reconnect. You can run the
|
|
230
|
+
same command manually:
|
|
231
|
+
|
|
232
|
+
```sh
|
|
233
|
+
deepseek-acp --setup # Paste the key and press Enter. Terminal input is hidden.
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
The stored credential key is `DEEPSEEK_API_KEY`, written to `$DSH_HOME/.credentials.yaml`.
|
|
237
|
+
**Since DSH 0.2 the stored key wins over the environment**, including a `DEEPSEEK_API_KEY` that the
|
|
238
|
+
editor passes to the agent (0.9.0 and earlier did the opposite). After running `--setup`, changing
|
|
239
|
+
the key in the editor configuration has no effect; run `--setup` again instead, or delete the
|
|
240
|
+
`DEEPSEEK_API_KEY` entry from that file to go back to the environment variable. When both are set
|
|
241
|
+
and differ, the agent writes one line to stderr at startup saying which one it uses; neither value
|
|
242
|
+
is printed. `.env` files are not read.
|
|
243
|
+
|
|
244
|
+
Advertising this method does **not** block session creation. This project never returns
|
|
245
|
+
`auth_required`; without a key, the first turn still fails with `MISSING_CREDENTIAL`. Terminal Auth
|
|
246
|
+
simply gives clients a login entry point.
|
|
247
|
+
|
|
248
|
+
### Zed
|
|
249
|
+
|
|
250
|
+
Add an `agent_servers` entry to `settings.json`:
|
|
251
|
+
|
|
252
|
+
```json
|
|
253
|
+
{
|
|
254
|
+
"agent_servers": {
|
|
255
|
+
"DeepSeek Harness": {
|
|
256
|
+
"type": "custom",
|
|
257
|
+
"command": "npx",
|
|
258
|
+
"args": ["-y", "deepseek-acp"],
|
|
259
|
+
"env": { "DEEPSEEK_API_KEY": "sk-..." }
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
If installed globally with `npm i -g deepseek-acp`, set `command` to `deepseek-acp` and leave
|
|
266
|
+
`args` empty.
|
|
267
|
+
|
|
268
|
+
### codeg
|
|
269
|
+
|
|
270
|
+
codeg **already includes** this agent, so there is no need to add a custom entry. Open
|
|
271
|
+
**Settings > Agents**, find **DeepSeek Harness**, and select **Install**. Once installed, the same
|
|
272
|
+
control becomes **Upgrade** and follows the version in codeg's built-in registry. The installed
|
|
273
|
+
package uses the same npx distribution shown above, so a prior global npm installation is not
|
|
274
|
+
required.
|
|
275
|
+
|
|
276
|
+
Enter the key in the **DeepSeek Harness Configuration** panel on the same page:
|
|
277
|
+
|
|
278
|
+
| Field | Description |
|
|
279
|
+
|---|---|
|
|
280
|
+
| API endpoint | Leave empty to use the official endpoint |
|
|
281
|
+
| API key | Passed to the agent as `DEEPSEEK_API_KEY`; **ignored once you have used `--setup`**, because the credential file wins (since DSH 0.2) |
|
|
282
|
+
|
|
283
|
+
**Save DeepSeek Configuration** affects only **new** sessions. Reconnect any running session to
|
|
284
|
+
apply changes. The model and reasoning level are not configured in this panel; they are
|
|
285
|
+
session-level selectors available from the input box, and they are saved with the session: reopening
|
|
286
|
+
a session keeps its last model and reasoning level instead of reverting to the defaults.
|
|
287
|
+
|
|
288
|
+
Older codeg versions without the built-in entry can still use **Settings > Agents > Add Custom
|
|
289
|
+
Agent > Manual Configuration**. Set the registry ID to `deepseek-acp`, the distribution information
|
|
290
|
+
to `{"npx": {"package": "deepseek-acp@0.11.0", "cmd": "deepseek-acp"}}`, and the environment
|
|
291
|
+
variable to `DEEPSEEK_API_KEY=sk-...`; leave the version-query command empty. The **Version** field
|
|
292
|
+
must match the version in the distribution information. codeg checks them during preflight, and a
|
|
293
|
+
mismatch appears as a connection failure rather than a validation error.
|
|
294
|
+
|
|
295
|
+
When MCP is enabled, `codeg-mcp` is mounted as a server and the model sees tool names with a
|
|
296
|
+
**session prefix**, such as `mcp__a1_codeg-mcp__<tool>`. `serverName` is globally unique within a
|
|
297
|
+
process, while ACP's `mcpServers` is a per-session parameter. Without the prefix, a second session
|
|
298
|
+
could not mount the server.
|
|
299
|
+
|
|
300
|
+
### Session Logs
|
|
301
|
+
|
|
302
|
+
Logs are written to `$DSH_HOME/sessions` (`~/.dsh/sessions`) by default. Override the location with
|
|
303
|
+
`DEEPSEEK_ACP_SESSIONS_ROOT`. Session restore, listing, and titles all read from this directory.
|
|
304
|
+
|
|
305
|
+
### Third-party plugins
|
|
306
|
+
|
|
307
|
+
The composition is hard-coded, but it exposes one mount point: `DEEPSEEK_ACP_PLUGINS`
|
|
308
|
+
takes a JSON array of `{ "name": <specifier>, "config"?: <Config handed to ctx.plugin> }`.
|
|
309
|
+
|
|
310
|
+
```sh
|
|
311
|
+
export DEEPSEEK_ACP_PLUGINS='[{"name":"dsh-purge-community"}]'
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
`name` goes to `import()` — a package name (resolved from this package), an absolute path,
|
|
315
|
+
or a `file:` URL. The mount point sits after `composeAgent` and before `acpBridge`, so a
|
|
316
|
+
plugin declaring `inject: ['systemPrompt', 'tools']` (for example the injection-only
|
|
317
|
+
[dsh-purge](https://github.com/kingcharleslzy-ai/dsh-purge)) gets its services and affects
|
|
318
|
+
every session in this process.
|
|
319
|
+
|
|
320
|
+
Two boundaries: bytes written to stdout *during* the mount window are redirected to stderr
|
|
321
|
+
(AC-G1) — writes that land outside it are not covered; a row that fails to load leaves one
|
|
322
|
+
line on stderr and never blocks startup.
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
326
|
+
## Acknowledgments
|
|
327
|
+
|
|
328
|
+
- **[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)**: the core of this project.
|
|
329
|
+
This adapter would not exist without it, and the former editor-facing bridge provided substantial
|
|
330
|
+
guidance.
|
|
331
|
+
- **[LinuxDO](https://linux.do)**: the community where this project began.
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## License
|
|
336
|
+
|
|
337
|
+
This project is licensed under MIT; see [`LICENSE`](LICENSE). **It is an unofficial community
|
|
338
|
+
adapter, is not affiliated with DeepSeek, and is not endorsed by DeepSeek.**
|
|
339
|
+
|
|
340
|
+
The repository contains no verbatim copies of third-party source code. However, substantial parts
|
|
341
|
+
of the **test suite and design** derive from the former DeepSeek Harness editor-facing ACP bridge
|
|
342
|
+
(`packages/ui/acp`, removed on 2026-07-24). **That snapshot is licensed under BSD-3-Clause, not the
|
|
343
|
+
MIT license used by the repository today**, because upstream changed its license only after the
|
|
344
|
+
deletion. Its original copyright notice and license text are included in [`LICENSE`](LICENSE) as
|
|
345
|
+
required by clause 1 of the BSD license.
|
|
346
|
+
|
|
347
|
+
See [`CONTRIBUTING.md`](CONTRIBUTING.md) to contribute.
|