jeremy9682/dsh-cursor-codex
Connect DeepSeek Harness (dsh) to Cursor and Codex: ACP agent bundle, MCP server, skills, and config templates
项目介绍Project Overview
dsh-cursor-codex 插件将 DeepSeek Harness 连接至 Cursor 编辑器与 OpenAI Codex CLI,支持 ACP 代理、MCP 服务器及无头工作模式。适用于需要将 dsh 集成至现有编辑工作流或自动化任务时。注意:Cursor 与 Codex 不支持第三方 ACP 代理,需使用 MCP 通道。
dsh-cursor-codex connects DeepSeek Harness (dsh) to Cursor and the OpenAI Codex CLI via three channels: an ACP agent, an MCP server, or a headless worker. Use it to delegate coding tasks to dsh from your editor or CLI. Note: Cursor and Codex cannot load third-party ACP agents, so use the MCP channel for those editors.
请帮我了解并安装插件:【dsh-cursor-codex】【https://github.com/jeremy9682/dsh-cursor-codex】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile acp add @jeremy9682/dsh-acp
把 jeremy9682/dsh-cursor-codex 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-cursor-codex
Connect DeepSeek Harness (dsh) to the Cursor editor and the OpenAI Codex CLI — as an ACP agent, an MCP server, or a headless worker.
| Directory | What it is |
|---|---|
acp/ |
npm bundle @jeremy9682/dsh-acp: dsh plugin --profile acp add @jeremy9682/dsh-acp → dsh --profile acp boots an Agent Client Protocol stdio server over your existing dsh composition (shared credentials, model settings, and session logs). |
server/ |
Zero-dependency MCP stdio server exposing dsh_delegate and dsh_health to Cursor, Codex, and other MCP clients. |
skills/ |
Agent skills teaching Cursor and Codex when and how to delegate to dsh. |
templates/ |
Ready-made mcp.json, Cursor custom subagent, and Codex dsh.config.toml profiles. |
registry/ |
The dsh-acp entry (agent.json + icon) submitted to the official ACP registry. |
docs/ |
Channel-selection guide (EN/ZH) plus cookbooks for integration overlays and fleet governance (Codex as DSH subagent, third-party adapter → DeepSeek, port-3082 rehearsal). |
Quick start
# 1. Install dsh (or use `npx @deepseek-ai/dsh` everywhere)
npm install -g @deepseek-ai/dsh
# 2a. ACP (Zed / JetBrains / any ACP client)
dsh plugin --profile acp add @jeremy9682/dsh-acp
dsh --profile acp
# (before the npm publish lands: `dsh plugin --profile acp add file:/path/to/dsh-cursor-codex/acp`)
# 2b. MCP (Cursor / Codex)
# Cursor: merge templates/cursor/mcp.json into ~/.cursor/mcp.json
# Codex: cp templates/codex/dsh.config.toml ~/.codex/dsh.config.toml
# codex -p dsh "your task"
# 2c. One-shot headless (any shell)
dsh --profile headless "<complete self-contained task>"
Both 2b and 2c ship skills: install skills/cursor-delegate-to-dsh and skills/codex-delegate-to-dsh into the respective editor's skills directory so the agent knows when to delegate.
Why three channels?
Cursor and Codex are ACP agents, not ACP clients — neither can load a third-party ACP agent today. The full picture, verified against official docs, is in docs/integration-guide.md.
Verified
- ACP profile:
initialize→session/new→session/prompt→ streamed answer →end_turn(tested against dsh 0.1.0-rc.6). - MCP server:
initialize→tools/list→dsh_health→dsh_delegatereal task (tested against dsh 0.1.0-rc.6).
Safe DSH upgrades for Cursor ACP
The Cursor provider includes dsh-cursor-upgrade-gate. It stages a requested DSH package away from the active installation, probes the cross-provider replay-filter behavior, applies the narrow compatibility patch only when the behavior is still broken, and requires an external Cursor smoke before an atomic current-symlink promotion. See cursor-provider/README.md. Direct global reinstall is intentionally outside this path because it can erase a local compatibility fix before validation.
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS