DeepSeek Harness 插件

dsh-import

Import MCP servers, rules, and hooks from Claude Code, Codex, and Cursor into DeepSeek Harness — the missing /import for DSH.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
cms19859230182-lang/dsh-import
最近更新
2026年8月13日
分类
工具与能力
GitHub stars
1
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/cms19859230182-lang/dsh-import
插件名:dsh-import
作者:cms19859230182-lang

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-import

把 Claude Code、Codex、Cursor 的 MCP、rules、hooks 一键导入 DeepSeek Harness —— DSH 一直缺的那个 /import

![License: MIT](https://opensource.org/licenses/MIT)

Codex CLI 自带 /import,能把你的 Claude Code 和 Cursor 配置导入到 Codex。DSH 没有等价物。这个插件补上了它:打开 设置 → 导入配置,点 自动检测,选一个来源,导入。完事。

![导入配置页](assets/dsh-importer-import-page.png)

![自动检测](assets/dsh-importer-detect.png)

> ⚠️ 有任何 bug 随时联系作者:提 Issue,作者会在第一时间处理。

---

特性

  • 自动检测 — 扫描你的家目录(~/.claude~/.codex~/.cursor当前工作区,报告三个工具里装了哪些、各自有什么配置。
  • 单选导入 — 检测到的来源可选,没检测到的置灰。只导你想导的那个(比如只导 Cursor),不是一股脑全导。
  • 三来源 × 三类型,全覆盖
来源 \ 类型rulesMCPhooks
------------
Claude CodeCLAUDE.md.mcp.json / ~/.claude.jsonsettings.json → CC bridge
CodexAGENTS.mdconfig.toml(TOML)hooks.json → Codex bridge
Cursor.cursor/rules/*.mdc.cursor/mcp.jsonhooks.json → CC 方言 → CC bridge
  • 全局 + 项目双作用域 — 从家目录拉全局配置、从工作区拉项目配置,各自落到 DSH 对应位置(~/.dsh/AGENTS.md vs 工作区 AGENTS.md)。
  • 真写入,非预览 — rules 落到 AGENTS.md;MCP 服务器和 hooks bridge 落到 profile 的 cordis.patch.yml
  • 热加载 — MCP 和 hooks 被 DSH 的 boot HMR 自动接住,无需重启。
  • 自动备份 — 每个被改的目标文件先留一份 .bak-<时间戳>
  • 幂等 + 合并安全 — 重复导入同一源会跳过;导入第二个源是追加而不是覆盖。
  • 凭证安全${VAR} 引用转成 DSH 的 !!js process.env.VAR 表达式,不发明明文 token。

安装

# 从本地 checkout 安装(npm 包名:dsh-config-importer)
dsh plugin --profile web add /path/to/dsh-config-importer
# 然后重启 web profile

这个包声明了 dsh.bundle patch,dsh plugin add 会把它 reconcile 进 profile 的 dsh.profile.bundles 层,并通过 cordis.patch.yml 挂载 config-importer 这一行。

使用

1. 打开 DSH 设置(左下角)。 2. 打开 导入配置 页。 3. 点 自动检测 — 页面列出 Claude Code / Codex / Cursor 里装了哪些、各自有什么(全局和/或项目)。 4. 选一个来源(没检测到的会置灰)。 5. 勾选要导入的类型(Rules / MCP / Hooks)。 6. 点 开始导入

页面会展示逐项结果:导入了什么、跳过了什么(已存在)、不支持什么(例如 sse/ws MCP transport,DSH 不支持)。

联系作者

---

dsh-import

Import MCP servers, rules, and hooks from Claude Code, Codex, and Cursor into DeepSeek Harness — the /import command DSH was missing.

![License: MIT](https://opensource.org/licenses/MIT)

Codex CLI ships a /import that pulls your Claude Code and Cursor config into Codex. DSH had no equivalent. This plugin fills that gap: open Settings → 导入配置 (Import config), hit 自动检测 (Auto-detect), pick a source, and import. Done.

> ⚠️ Found a bug? Contact the author any time — open an Issue.

Features

  • Auto-detect — scans your home directory (~/.claude, ~/.codex, ~/.cursor) and the current workspace, and reports which of the three tools are installed and what they carry.
  • Pick one source — detected sources are selectable; undetected ones are greyed out. Import only the tool you want (e.g. Cursor), not everything at once.
  • Three sources × three config kinds, full matrix — see the table above (Chinese section).
  • Global + project scopes — pull global config from your home directory or project config from the workspace, into the matching DSH location (~/.dsh/AGENTS.md vs workspace AGENTS.md).
  • Real writes, not previews — rules land in AGENTS.md; MCP servers and hooks bridge rows land in your profile's cordis.patch.yml.
  • Hot reload — MCP and hooks rows are picked up by DSH's boot HMR, no restart needed.
  • Automatic backup — every target file gets a .bak-<timestamp> copy before it is modified.
  • Idempotent + merge-safe — re-importing the same source skips duplicates; importing a second source appends instead of overwriting.
  • Credential-safe${VAR} references become DSH's !!js process.env.VAR expressions; no plaintext tokens are invented.

Install

# from a local checkout (npm package name: dsh-config-importer)
dsh plugin --profile web add /path/to/dsh-config-importer
# then restart the web profile

The package declares a dsh.bundle patch, so dsh plugin add reconciles it into the profile's dsh.profile.bundles layer and mounts the config-importer row via cordis.patch.yml.

Usage

1. Open DSH settings (bottom-left). 2. Open the 导入配置 / Import config page. 3. Click 自动检测 (Auto-detect) — the page lists which of Claude Code / Codex / Cursor are installed, and what each carries (global and/or project). 4. Pick one source (undetected sources are greyed out). 5. Tick the kinds to import (Rules / MCP / Hooks). 6. Click 开始导入 (Start import).

Contact

License

MIT