dshbase

插件目录 / UI & Skins / dsh-acp

dsh-acp

已验证 · 实测可装 dushaobindoudou

基于 15 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

10Stars
4Forks
0未关闭 issue
—语言
2026-08-18最近推送
跨平台平台

功能简介

Agent Client Protocol (ACP) server plugin for the DeepSeek Harness (dsh) - drive dsh agents from Zed, any ACP v1 client, or the built-in web UI over stdio / HTTP+SSE, with sessions, jobs, goals, skills and the agent tree on the wire

我们的评价

尚无短证据报告

这里还没有可核对的逐级实测记录。Star 数、目录 test 字段、web-only 标记,以及插件是否需要外部账号或服务,都不会在这里被写成通过或失败。目录徽章仍按 catalog 原样显示。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-acp

cover

简体中文 · 技术文档 / Technical notes

An Agent Client Protocol (ACP) server for DeepSeek Harness (dsh) that lets Zed and other editors drive dsh agents over JSON-RPC 2.0 stdio.

The shipped dsh acp profile is intentionally automation-only. This bundle is a drop-in replacement for its bridge: it keeps the standard automation surface (sessions, MCP, model selection, permissions) and adds the editor experience Zed needs on top.

Introduction

dsh-acp mounts one ACP server on dsh stdin/stdout. Zed launches dsh --profile acp; the plugin translates session/* requests into dsh Agent lifecycles. Installing this bundle requires no Zed configuration change because it disables both the shipped acp bridge and startup row, then mounts this implementation and the same stdin-lifetime provider under unique ids.

Features

  • Standard ACP lifecycle — initialize, session/new, session/list, session/resume, session/close, session/prompt, and session/cancel
  • Editor history extensions — session/load replays durable history; session/delete closes a live session and removes its persisted artifact when the backend exposes deletion
  • Token & thinking streaming — agent/assistant-stream frames projected as agent_message_chunk / agent_thought_chunk
  • Tool cards — tool_call / tool_call_update with kind, file location and line
  • Structured diffs — native tool hunks plus before/after file snapshots
  • Bash terminal — command output rendered as terminal content with exit code
  • Context-usage ring — usage_update (used / size)
  • Todo list — dsh todo_write snapshots rendered as the stable ACP plan update
  • Images — ACP image prompts admitted through the durable attachment seam; capability advertised when any selectable route supports images, and the exact pinned route is validated per prompt
  • Slash commands — dsh commands advertised through available_commands_update; recognized commands stay in the command plane and receive typed image attachments
  • Ask the user — dsh's scoped user-questions/request waterfall answered through stable ACP form elicitation/create
  • Agent presets — standard, ptc, minimal, and cordis (creation mode) are declared by this bundle and selected for the whole process through DSH_ACP_PRESET
  • MCP servers — client-supplied stdio and Streamable HTTP MCP servers are validated and mounted into the Agent scope
  • Turn-pinned model selection — model and reasoning changes affect later prompts; an in-flight turn keeps the route with which it was admitted

Installation

Prerequisites: Node.js ^22.19.0 || >=24.0.0, dsh@0.2.0-rc.2, and pnpm.

dsh plugin --profile acp add @cnctem/dsh-acp

From source:

git clone https://github.com/cnctem/dsh-acp.git
cd dsh-acp
pnpm install
pnpm run build
dsh plugin --profile acp add .

Existing installs upgrade with the same command; the effective acp profile now contains the custom bridge instead of the automation-only bridge.

Use as a package

@cnctem/dsh-acp is also importable from a Node/Cordis host. It is a plugin, not a standalone executable: the host must compose the dsh services required by its dependencies and peers before mounting it.

import * as acp from '@cnctem/dsh-acp'

ctx.plugin(acp, {
  provider: 'deepseek-official',
  model: 'deepseek-v4-pro',
  preset: 'standard',
})

Configuration

  • DSH_ACP_PROVIDER / DSH_ACP_MODEL override the default provider/model. Unset values follow dsh agent-default-model.
  • DSH_ACP_PRESET selects the process-level agent composition. Unset or empty uses the registry default, standard.
  • Built-in presets:
    • standard — coding tools, plan mode, todos, web, subagents.
    • ptc — standard tools plus presentation/code-runtime behavior.
    • minimal — a persistent shell and minimal persona.
    • cordis — creation mode with plugin-manager and Cordis inspection tools plus the bundled authoring skills.
  • The old $DSH_HOME/.agent-presets/<id> directory scan is no longer supported. Presets are ordinary @deepseek-ai/dsh-agent-preset declarations in this bundle and can be overridden by a later profile patch.
  • API keys reuse dsh credentials ($DSH_HOME/.credentials.yaml, account auth, or DEEPSEEK_API_KEY).

Integration

Add to Zed's settings.json if the entry does not already exist:

{
  "agent_servers": {
    "dsh": {
      "type": "custom",
      "command": "dsh",
      "args": ["--profile", "acp"],
      "env": {}
    }
  }
}

To expose multiple deployments, use separate Zed entries with different DSH_ACP_PRESET values. Each dsh process has one process-level preset selection.

Development

Source lives in src/; TypeScript generates committed ESM, declarations, and source maps in lib/.

pnpm run typecheck
pnpm test              # hermetic in-process protocol smoke
pnpm run test:profile  # real dsh profile acceptance in a temporary DSH_HOME
pnpm run verify        # typecheck + smoke + generated-lib freshness

pnpm run test:profile requires a working dsh executable. Set DSH_BIN to test another binary.

Acknowledgements

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-acp」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:dushaobindoudou/dsh-acp

Headless(CLI)profile:

dsh plugin --profile headless add github:dushaobindoudou/dsh-acp

实测报告

尚无短证据报告

这里还没有可核对的逐级实测记录。Star 数、目录 test 字段、web-only 标记,以及插件是否需要外部账号或服务,都不会在这里被写成通过或失败。目录徽章仍按 catalog 原样显示。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 26846 个插件 →