DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

GafaiZheung /

GafaiZheung/dsh-acp-adapter

Verified

DeepSeek Harness (DSH) plugin that runs external ACP v1 agent CLIs (Codex CLI, Claude Code, Antigravity, OpenCode) as ordinary DSH sessions.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@4accf23f

ACP Bridge

ACP Bridge

Use external ACP v1 agent CLIs (Codex CLI, Claude Code, Antigravity, OpenCode) as ordinary DeepSeek Harness sessions.

English | 中文

ACP Bridge (@local/dsh-acp-bridge) connects external Agent Client Protocol (ACP) v1 agent CLIs to DeepSeek Harness (DSH). Connected agents appear in the normal DSH sidebar, timeline, and approval flow while keeping each CLI's own models, tools, permission modes, and sign-in state.

Security notice: Supports ACP v1 only. External CLIs run with DSH Host user privileges and are not covered by the DSH sandbox. Host credentials and DSH_* variables are scrubbed before spawning; approvals fail closed.

Features

  • Backends as ordinary sessions: Registers an identity preset per backend (acp-<id>) and a model-picker route (ACP bridge → <backend>) without replacing DSH's AgentFactory or adding custom SessionEvent types.
  • Native conversation experience: Standard user/assistant messages, reasoning, stop, queuing, /acp-interrupt, native approval dialogs, and per-backend sidebar icons.
  • Backend models, effort, and permissions: Displays backend-confirmed models, thinking effort, and permission modes in the Composer (with persistent replay across restarts and new sessions) plus /acp-model, /acp-effort, and /acp-permissions.
  • Kind-aware native tool views: Routes mirrored ACP tool calls by kind to DSH native terminal, diff, read, search, web, question, and fallback views behind an ErrorBoundary.
  • Live status and diagnostics: AcpStatusDock surfaces missing CLIs, auth prompts, paused sessions, active tools, and ACP plan progress; AcpHeaderPill provides restart, fresh-context reset, pause/resume, and redacted diagnostic copy.
  • Attachments, structured questions, and worktrees: Sends images/files according to negotiated promptCapabilities, maps ACP form elicitations to native DSH forms, synchronizes backend session titles, and supports linked Git worktrees and quiet idle recycling.

Supported backends

Backend Command Install Sign in / Credentials Verify
Codex CLI codex-acp npm install -g @agentclientprotocol/codex-acp codex login; or CODEX_API_KEY / OPENAI_API_KEY codex login status, codex-acp --version
Claude Code claude-agent-acp npm install -g @agentclientprotocol/claude-agent-acp claude auth login or claude-agent-acp --cli auth login --claudeai; or ANTHROPIC_API_KEY / CLAUDE_CODE_OAUTH_TOKEN claude auth status, claude-agent-acp --cli auth status --json
Antigravity agy acp curl -fsSL https://antigravity.google/cli/install.sh | bash agy acp --login or agy; or GEMINI_API_KEY agy --version, agy acp --help
OpenCode opencode acp curl -fsSL https://opencode.ai/v2/install | bash or npm install -g @opencode/cli opencode auth login opencode auth list, opencode acp --help

Full installation, authentication, Desktop PATH, custom backend, and error-code instructions live in docs/backend-setup.md.

Quick start

1. Install the plugin

Requires Node.js >= 22.0.0 and DSH >= 0.2.2-rc.5.

From GitHub (direct git install):

dsh plugin --profile <profile> add github:GafaiZheung/dsh-acp-adapter

When using pnpm ≥ 10, dsh prompts you to authorize this package's prepare build script in the profile's pnpm-workspace.yaml (allowBuilds) before re-running add. To install without build-script authorization, pack an offline .tgz tarball instead (see docs/development.md).

From a local checkout:

git clone https://github.com/GafaiZheung/dsh-acp-adapter.git
cd dsh-acp-adapter
pnpm install
pnpm run doctor
pnpm run setup -- install --profile desktop

Restart DSH after installing or updating. When linked via link:, run pnpm run build after editing src/.

2. Install and sign in to a backend CLI

Install and sign in to at least one backend from the table above. Because DSH scrubs inherited variables matching KEY, PASSWORD, SECRET, and TOKEN, any API key must be placed under backends.<id>.env rather than only exported in your shell.

3. Verify readiness and start a session

Open Settings → General → ACP backends (or run /acp-status in any session) to verify detected binaries and sign-in state. Create a new session, choose a backend from the hero preset picker (or ACP bridge → <backend> in the model picker), and send a message.

Slash commands

Command Purpose
/acp-status [refresh|check [backend]] Inspect backend executable and sign-in readiness (refresh re-resolves binaries; check runs initialize and reads advertised auth status).
/acp-model [id] Open or switch the backend model and persist the choice.
/acp-effort [level] Inspect or switch backend reasoning effort (thought_level) and persist it.
/acp-permissions [mode] Inspect or switch the backend permission mode and persist it.
/acp-pause / /acp-resume Pause a session while keeping queued items, or resume dispatch.
/acp-restart [--fresh] Restart the CLI process (--fresh resets the ACP context while preserving selected model and mode).
/acp-doctor [refresh|check] Print backend readiness, active session FSM/worktree state, selected options, and recent redacted diagnostics.
/acp-cmd [list|<cmd>] List or forward backend-advertised slash commands (available_commands_update).
/acp-interrupt <message> Cancel the current turn and schedule the new message (and attachments) next.

Configuration

The default cordis.patch.yml enables includeBuiltins: true, so partial overrides in your profile's cordis.patch.yml inherit all other built-in backends automatically:

- id: acp-bridge
  config:
    includeBuiltins: true
    sidebarIconPlacement: trailing   # or leading
    shellPathProbe: false            # set true if Desktop PATH + standard dirs miss a CLI
    backends:
      codex:
        env:
          NO_BROWSER: '1'
          # OPENAI_API_KEY: sk-...

See docs/DETAIL.md for every config field and docs/backend-setup.md for custom ACP CLIs.

Documentation

  • Backend Setup & Authentication — per-backend install, login, Desktop PATH, custom backends, and ACP_* error codes.
  • Feature & Configuration Reference — complete config fields, UI behavior, quick troubleshooting, and uninstall semantics.
  • Architecture — Cordis seams, layered module map, dual FSM lifecycle, and security boundaries.
  • Development Guide — contributor setup, bundle invariants, 4-layer test matrix, adding a built-in backend, and distribution.
  • AGENTS.md & docs/AGENTS.md — standing orders and documentation standard for AI agents and contributors.

Contributing

Contributions are welcome! See CONTRIBUTING.md and docs/development.md.

License

MIT

—/ 5

No ratings yet

Verified DSH bundle

Commit 4accf23f2def

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout