English | 中文
Editor-facing Agent Client Protocol server over JSON-RPC stdio. It creates dsh agents on demand and projects their live session events into ACP message, thought, tool, permission, plan, title, usage, and command updates. Zed is the primary compatibility target, and the launcher also supports local ACP registration in T3 Code (driver: "acpRegistry").
The package ships both the UI transport plugin and the dsh-acp-interactive executable. The transport contains no domain logic; the executable loads the complete Cordis composition bundled in config/cordis.yml — DeepSeek and user providers, the agent spine, dsh-working-directory, dsh-tool-executor-native, model-generated session titles, file and filesystem-search tools, in-process subagents, shell, permissions, persistence, human commands, and the ACP transport — so ordinary users do not need a DeepSeek Harness source checkout. This UI bridge is separate from the upstream automation-only ACP transport.
dsh-acp-interactive is an independent, community-maintained project. It is not affiliated with or endorsed by DeepSeek or Zed Industries; it composes the published @deepseek-ai/dsh-* packages behind a reviewed editor profile and does not claim to be the official DeepSeek ACP agent.
npm install --global deepseekharness-acp-interactive
dsh-acp-interactive --setup--setup stores DEEPSEEK_API_KEY through the Harness credential store without echoing it. Then register the installed command in Zed's settings.json (open via Ctrl+Shift+P / Cmd+Shift+P and type zed: open settings); on Windows use the absolute path printed by where.exe dsh-acp-interactive (using forward slashes / or double backslashes \\), on macOS / Linux use which dsh-acp-interactive:
{
"agent_servers": {
"dsh-acp-interactive": {
"type": "custom",
"command": "C:/Users/you/AppData/Roaming/npm/dsh-acp-interactive.cmd",
"args": []
}
}
}After saving, open Zed's Agent panel (Ctrl+? / Cmd+?) and select dsh-acp-interactive from the dropdown list at the top. For T3 Code local ACP registration alongside Zed, configure the installed dsh-acp-interactive launcher with driver: "acpRegistry": the server negotiates hybrid v2/v1 initialize handshakes, preserves explicit environment variables across space-containing stdio MCP bridge paths, and runs t3-code-provider-test / t3-code-provider-probe probes without writing session files to disk. JSONL sessions live under acp-sessions in the dsh home (see Configuration), partitioned by each session's cwd and independent of the directory the server was started from; set DSH_ACP_SESSIONS_ROOT to keep them elsewhere. Every server process owns a separate in-memory SQLite session-query index, so several editor processes can share the JSONL source of truth without contending for the derived index.
Skipping --setup is fine: a thread opened without a stored key shows a Configure DeepSeek API key action that runs the same flow (see Authentication); clients without terminal authentication receive its instructions as an agent-type method instead.
The published tarball already contains the built lib/; no build step runs at install time. Every published version corresponds to a vX.Y.Z tag and a GitHub Release whose assets include the tarball and its SHA-256 checksum, so an installation can be audited against the tagged source. Supported Zed versions and verification status are in the Zed compatibility matrix; this release tracks DeepSeek Harness 0.2.2-rc.5 and uses the stable ACP v1 schema from SDK 1.4.0 as its baseline (accepting protocolVersion >= 1 and replying with 1).
The / palette lists the human commands discovered from the composed Harness plugins; the permission and reasoning-effort selectors are ACP session configuration options backed by Harness permission presets and the selected model's advertised efforts.
Opening a thread without a stored key answers session/new with auth_required, so Zed shows the Configure DeepSeek API key action with the agent's own instructions. Clicking it runs --setup in a Zed terminal task; when that terminal exits, Zed retries session/new with the stored key.
Tool calls run inside the Harness sandbox. Under the read-only preset a write is denied with the sandbox's escalation hint; the retried call arrives in Zed as an ACP permission request with Allow once / Reject, and the approved write and its read-back render as tool cards.
Version 1.5.0 upgrades the composed DeepSeek Harness baseline to 0.2.2-rc.5 and adds T3 Code compatibility:
- 0.2.2-rc.5 runtime alignment: composes
@deepseek-ai/dsh-working-directory(removing the deleted{{cwd}}template variable fromsystem-prompt) and@deepseek-ai/dsh-tool-executor-native, removes the deleted@deepseek-ai/dsh-invariantspackage, migrates model switching to per-stepagent.model(installModelSelection/current()/select()), raisessession-title-first-prompt-llmmaxOutputTokensto4096, and tracks upstreamDEFAULT_MODELS(deepseek-flash[text, image]anddeepseek-v4-pro[text]) via live/modelslisting. - Managed in-process subagents:
subagentandsubagent_fork(introduced in1.3.0) now launch async managed activations (delivery: 'parent') settled viawaitForTreeWorkanddrainDescendantsquiescence (interrupton usersession/cancel). The parent card staysin_progresswhile folding child events untilsubagent/end, child sessions are excluded solely byorigin === 'subagent', anddsh-user-questionsrejects live delegated callers withDELEGATED_CALLER. - T3 Code ACP integration: accepts hybrid v2/v1
initializepayloads (protocolVersion >= 1returning1,clientInfo ?? info,clientCapabilities ?? capabilities), supports stdio MCP bridge commands containing spaces (shell: false, preservedenv,McpClient.Configdefaults), keepst3-code-provider-test/t3-code-provider-probeprobes zero-disk-residue until an agent is actually mutated or prompted, and gatesimagePromptEnabledon raster attachment MIME support while rejecting images on text-only models (-32602) before persistence.
See the Upstream 0.2.2-rc.5 & T3 Compatibility Agent Note, the In-Process Subagents Agent Note, and the changelog for earlier releases.
State lives in the dsh home — $DSH_HOME, or the current user's default .dsh directory — where cordis.patch.yml holds this deployment's user patch layers and .credentials.yaml holds credentials. Upstream 0.2.0-rc.1 removed the global settings.yaml and @deepseek-ai/dsh-settings-file, so a patch layer is an array of loader entries (id, optional name, config) applied over the composition at boot; the launcher reads $DSH_HOME/cordis.patch.yml and only falls back to a legacy settings.yaml, mapped entry by entry, when it is absent or empty. Pi Agent Desktop and Zed ACP can therefore share provider profiles, model catalogs, and credential references without copying API keys into Zed or cordis.yml; a profile's apiKeyEnv must match a key under .credentials.yaml refs, and the two remain separate processes with isolated sessions. The bundled llm-pi-ai mount registers every route under a patched providers dict. Pi owns its own copy at $DSH_HOME/profiles/<profile>/cordis.patch.yml, so editing this file never changes Pi's routes.
At startup, Windows registers the native pwsh tool while Linux and macOS register bash; the model never receives both tool dialects. Stdout carries JSON-RPC frames only.
The official @deepseek-ai/dsh-llm-deepseek-api-key adapter defaults to DEFAULT_MODELS (deepseek-flash with inputModalities: [text, image], and deepseek-v4-pro text-only) and refreshes from /models. Any custom image-capable model must declare its input modalities; without them the bridge treats the entry as text-only and rejects image admission with -32602 before persisting bytes or queuing the prompt (and promptCapabilities.image requires a mounted attachment store supporting raster image MIME types):
- id: deepseek-flash
inputModalities: [text, image]Custom deployments may instead consume only the transport export and mount it in a dedicated ACP stdio composition, where provider and model select the initial route for new sessions without restricting the model selector:
- id: credentials
name: '@deepseek-ai/dsh-credentials-local'
- id: llm-pi-ai
name: '@deepseek-ai/dsh-llm-pi-ai'
- id: acp-interactive
name: 'dsh-acp-interactive'
config:
provider: deepseek-official
model: deepseek-v4-proinitialize(including hybrid v2/v1 negotiation),session/new(with zero-disk-residue ephemeral probes fort3-code-provider-test/t3-code-provider-probe),session/prompt,session/cancel,session/list,session/load,session/resume, andsession/close.- Streaming text and reasoning, tool cards built from each tool's own presentation intents (generic, diff, terminal), subagent delegation cards, plans, model-generated session titles, usage, and permission requests.
- Session configuration options — the provider/model route (per-step via
agent.model), reasoning effort, plan mode, and Harness permission presets — all switchable in a running session. - Session-scoped MCP: stable ACP v1 stdio (including executable paths with spaces and preserved env) and Streamable HTTP servers in per-session Cordis roots, with deterministic
mcp__<server>__<tool>names. - A command catalog merging the session's
ctx.commandsview with the user-invocable skills discovered for its cwd; the bundled profile composes/permission,/plan,/compact,/goal, and/feedback. - Text, resource-link, and inline image prompts, and structured user questions through ACP form elicitation.
The full behavior — plugin contract, authentication, per-method semantics, configuration projection, tool execution, and the token and KV-cache effect of each surface — is in the behavior reference.
session/deleteis not advertised. The persistence Service Definition has no backend-independent deletion method; direct JSONL or SQLite manipulation in this transport would bypass persistence ownership and reconciliation.session/listreturns one complete page and omitsupdatedAt; a stable metadata cursor and cheap last-activity observation belong in the session-query capability.- Audio and embedded-resource prompt blocks fail instead of degrading silently. Tool-result image cards remain text-only even though prompt and message-history images are supported.
- Session cost is sent only after a Harness backend supplies a reliable cumulative amount and currency; the bridge does not estimate cost from token prices.
- MCP supports stable-v1 stdio and Streamable HTTP configuration only; legacy SSE and ACP-proxied transports are rejected. Additional directories remains outside this repository and belongs to the independent
dsh-additional-directoriesDSH plugin project. - Terminal output is delivered at tool completion rather than incrementally.
- Subagent delegations run as managed activations (
delivery: 'parent') settled within the parent prompt's turn tree (waitForTreeWork/drainDescendantsquiescence, parent card heldin_progressuntilsubagent/end,dsh-user-questionsenforcingDELEGATED_CALLER, child sessions excluded byorigin === 'subagent'). Continuable steering and control tools (send_message,interrupt_agent,list_agentsindsh-tool-subagent-control),dsh-agent-team, and the out-of-process ACP, Codex, and Claude Code backends are not composed. A restored session replays a delegation as its settled result card without the child transcript, and stable ACP has no child-session capability yet, so the card carries the child session id in_meta.dsh_subagentrather than a navigable child thread.
- CI runs on every push and pull request on Ubuntu, macOS, and Windows with Node
22.19and24:npm ci, typecheck, build and tests, a pack dry run, andverify:packed, which installs the packed tarball outside the repository, runs--setup, and drives the real launcher throughinitialize,session/newwith a session-scoped MCP server, andsession/close. - Registry auth check stages
registry/agent.jsonandicon.svginto a fresh clone of agentclientprotocol/registry and runs that repository's ownbuild_registry.py --dry-runandverify_agents.py --auth-checkagainst the published npm package: daily, on demand (gh workflow run registry-auth.yml -f version=<x.y.z>), and dispatched by the release workflow after it publishes a version. - Release runs on
v*.*.*tags, re-verifies the tagged tree, publishes through npm trusted publishing (ordinary CI holds no publishing token), and attaches the tarball andSHA256SUMS.txtto the GitHub Release. - Registry submission: agentclientprotocol/registry#585.
npm run check:registryvalidates the entry and icon againstpackage.jsonlocally.
npm install
npm test
npm run typecheck
npm run build
npm run check:profile
npm run check:registry
npm run verify:packedThe repository has no runtime dependency on a DeepSeek Harness checkout. For the official compatibility gate, set DSH_HARNESS_ROOT to a read-only official checkout or place one at the sibling ../deepseek-harness path, then run npm run test:harness: it extracts the official ACP specs from the pinned git ref recorded in config/upstream-baseline.json — not from whatever the checkout has checked out — runs the ones classified as aligned against this repository's src, records every other official spec as an explicit divergence with a reason, and fails whenever the pinned ref adds, removes, or renames a spec, so the next upstream release is reviewed rather than silently skipped. check:profile reconciles official candidate packages, human commands, required providers, and critical consumers, reporting review-required drift without rewriting the release composition. verify:packed installs the tarball outside the repository and starts the real ACP launcher. npm run test:all chains repository tests, the compatibility gate, and profile reconciliation.
See the design document for the implemented scope, the development roadmap for the recommended sequence and acceptance criteria, and the behavior reference for the ACP surface in detail.






