Preface¶
Chatting in DeepSeek Harness (DSH) defaults to built-in or HTTP-based model providers. If you already have Agents installed locally — such as Codex, Claude Code, or Gemini CLI — that expose their capabilities via the Agent Client Protocol (ACP), setting up a separate equivalent backend for DSH often means redundantly maintaining launch commands, authentication, and model lists.
The deepseek-harness-acp project described below (npm package name dsh-tauri-acp) takes a different path: it launches these Agent subprocesses via ACP’s stdio JSON-RPC and registers them as providers in the DSH model selector. Once a route is selected, the current conversation turn is handled by that Agent rather than by DSH’s built-in toolchain and MCP.
What Is This¶
- Maintainer: Fleey
- Category: Model inference (SkillHub directory: fleey/deepseek-harness-acp)
- Source code: github.com/Fleey/deepseek-harness-acp (README title: dsh-tauri-acp; MIT license, current package version 0.2.0)
- Positioning: A DeepSeek Harness desktop plugin that registers external Agents as dsh model providers via ACP.
The plugin integrates with the DSH host as a standard bundle (dsh.bundle.patch → cordis.patch.yml) and provides the ACP Agents settings page for DSH NEXT (0.2 core).
Core Features¶
Providers and Subprocesses¶
Each configuration entry corresponds to one provider route. The Agent subprocess is launched on demand (stdio JSON-RPC) and kept resident for reuse. Each dsh session maps to one ACP session; subsequent turns only send newly added user messages. If the history no longer matches (e.g., the model was switched or context compression occurred), the plugin creates a new ACP session and flattens the history into <conversation_history> to pass to the Agent in one go. Images in the history are re-sent in place as image blocks rather than being collapsed into plain text.
Models and Metadata¶
The model list comes from the Agent’s configOptions (category: "model"), with compatibility for the legacy models and session/set_model; default indicates the Agent’s own default model.
Whether to auto-discover models can be controlled in the settings page or via configuration (discoverModels, default true). When models is not manually declared, the Agent is started to read its published list. Metadata such as reasoning level, image input capability, and context window is parsed from the Agent handshake and session reports, as described in the README, combined with local caching (e.g., capability and session window records under $DSH_HOME/cache/dsh-tauri-acp/).
For streaming mapping: agent_message_chunk serves as the body text; agent_thought_chunk, tool calls, and plans enter reasoning blocks; usage is computed as a diff of session-cumulative values. The working directory prefers the current dsh session’s workspace, falling back to the cwd configuration or the user’s home directory. Agent permission requests go through dsh’s native approval flow (ctx.approval) by default.
Settings Page and Import¶
Settings → ACP Agents (placed after the official “Models” page) supports adding, editing, and deleting Agents without hand-writing YAML. The form covers route name, display name, launch command, arguments, environment variables, authentication method, permission policy, image input, model list, etc.; fields not shown (such as cwd, systemPrompt, and timeouts) are preserved as-is on save.
Supports batch import by pasting standard ACP configuration JSON, recognizing Zed’s agent_servers (or agentServers), this plugin’s agents section, or a direct { "name": { "command", "args", "env" } } mapping. Provides preview, selection, and overwrite strategies. A “Discover models” feature is also provided: it starts the Agent using the saved command and appends its published models to the list (a new Agent must be saved first).
Configuration is atomically written to the profile’s cordis.patch.yml via ctx.configForms; agents is a volatile field, and changes trigger route re-registration, taking effect on the next request without restarting the plugin.
Installation and Activation¶
The plugin does not provide a one-line install command such as dsh plugin add github:...; the official README requires building locally and linking it into the desktop profile.
- Clone the repository and build (requires Node ≥ 22.13; the pnpm version mentioned in the profile installation steps is 11.8.0):
git clone https://github.com/Fleey/deepseek-harness-acp.git
cd deepseek-harness-acp
npm install && npm run build
- Add the dependency and bundle to
~/.dsh/profiles/desktop/package.json, change thelink:path to your local repository location, then restart the desktop app:
{
"dependencies": {
"dsh-tauri-acp": "link:/path/to/deepseek-harness-acp"
},
"dsh": {
"profile": {
"bundles": ["dsh-tauri-acp"]
}
}
}
- Run the installation in the profile directory to establish the link (must use the same pnpm version as the desktop app):
cd ~/.dsh/profiles/desktop && npx -y pnpm@11.8.0 install --prefer-offline --config.minimum-release-age=0
In link mode, the plugin resolves @deepseek-ai/dsh-llm from the repository’s node_modules; after changing the code, run npm run build and restart the desktop app for the changes to take effect. You can also place the package in the packages/ directory of the dsh-desktop repository and include it in the dsh-tauri-bundle for bundling.
Please read the source code and the MIT license before installing; the plugin runs subprocesses with the permissions of the current dsh process, and launch commands and environment variables will affect the local machine.
Configuration Examples¶
Besides the settings page, you can override the plugin configuration in ~/.dsh/profiles/desktop/cordis.patch.yml. The README example:
- id: dsh-tauri-acp
name: dsh-tauri-acp
config:
agents:
codex:
displayName: Codex (ACP)
command: /Users/you/.nvm/versions/node/v22.12.0/bin/codex-acp
authMethod: api-key
env:
OPENAI_API_KEY: sk-...
claude-code:
displayName: Claude Code (ACP)
command: /usr/local/bin/npx
args: [-y, '@agentclientprotocol/claude-agent-acp']
permission: ask
Common fields include: permission (default ask, can go through the approval dialog), imageInput (auto / force / off), discoverModels, contextWindow (default 200000), startupTimeoutMs, idleTimeoutMs, etc.; see the repository README for the complete table.
On the DSH 0.1 core, the same structure can also be used in the llm-acp section of user settings; 0.1 does not have a graphical ACP Agents page.
Typical Usage and Smoke Tests¶
- Configure the Agent’s
command/args/envin ACP Agents or YAML, then select the corresponding provider and model in the model selector after saving. - The desktop app launched from the Dock/Finder may not have access to the shell’s
PATH; it is recommended to use an absolute path forcommand, or to supplementPATHinenv. - The repository provides a smoke script that only performs the handshake and model discovery (no quota consumed); appending a question at the end will actually send a conversation turn:
npx tsx scripts/smoke.mts "$(command -v codex-acp)"
The environment variables ACP_MODEL and ACP_AUTH_METHOD can be used to specify the model and authentication method.
Use Cases and Limitations¶
Suitable for: Users who have already deployed ACP Agents locally (such as Codex, Claude Code, Gemini CLI), want to use the same Agents within DSH for coding-related conversations, and accept the Agent’s built-in tools and permission model.
Things to note (excerpted from the README):
- The Agent uses its own tools; dsh’s tools (including MCP) are not passed to the Agent; the plugin does not produce
tool-callper turn — the Agent runs to completion on its own. - Files often enter the adapter as text placeholders on the dsh side, so ACP’s
resource/embeddedContextare not used; when the Agent does not support images, images also become text placeholders. - The retry policy is fixed to no retries, to avoid repeating operations with side effects.
- The HTTP-type provider editor on the official “Models” page is not suitable for editing ACP routes; configuration should be done in ACP Agents or
cordis.patch.yml.
Conclusion¶
deepseek-harness-acp connects external Agents from the ACP ecosystem to the DSH model selector, reusing your existing Agent installations and authentication via subprocesses and session mapping, supplemented by settings page import, model discovery, and volatile configuration hot-reload. Community directory page: SkillHub — Fleey/deepseek-harness-acp; source code and full configuration documentation: GitHub — Fleey/deepseek-harness-acp.