dsh-chat-import
Nwflower/dsh-chat-import
把 13 家 coding agent(Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode 等)的完整对话历史导入为可续聊的 DeepSeek Harness 会话,并支持反向导出回 Claude Code。
安装
把 dsh-chat-import 装进 DeepSeek Harness
npm 方式
直接拉已发布的 tarball,不用克隆整个仓库,也不需要额外配置。如果你用的是别的 profile,把 `web` 换成对应的名字。
GitHub 方式 · npm 包
从 GitHub 装会执行项目自己的构建脚本,而 pnpm 默认拦着不让跑——先跑一次这条命令,pnpm 会打印出要加到 ~/.dsh/profiles/web/pnpm-workspace.yaml 里 `allowBuilds` 下面的那个 key。
我们跑过之后
我们跑过,装得上
这里每条命令都在一次性容器里、对着干净 profile 真跑过,结果取自 harness 自己的记录,不是读源码猜的。 最近一次 2 天前.
安装前须知
装 dsh-chat-import 之前,先看这几条
- 源码在这里: Nwflower/dsh-chat-import——已进入社区精选库,DSH 自带的插件市场就是从这儿装的。
- 开源协议:MIT。
- 自动识别到:终端执行。授权之前请先读一遍源码。
- 被收录在这里不代表通过了安全审计。插件是带着你 agent 的权限在跑。
AI 锐评
是什么 — 导入 14 个 coding agents 的完整对话历史到 DeepSeek Harness 作为可恢复的会话,并支持反向导出回 Claude Code。
谁该装 — 在使用 Claude Code 的开发环境中,需要将之前的历史对话导入 DeepSeek Harness 继续聊天时,适合安装此插件。 如果你仅在单一 coding agent 环境中工作而不涉及从其他 agents 导入历史,可以不用此插件。
注意 — 通过 npm 一行安装后,在全新 profile 中测试通过并注册到 harness。 会执行 shell 命令,但未发现明显的坑。 source files 为只读,DSH engine 不会被触及。
锐评 — 如果需要跨 Claude Code 和 DeepSeek Harness 管理多 agent 历史的话,值得安装它,因为它提供了 full fidelity 同步和 portable bundle。
grok-4.6 写的,只当参考,不当结论。里面说装得上或装不上,是在干净 profile 里真跑过的;其余都是读仓库读出来的。以实际运行为准。
dsh-chat-import 是做什么的

dsh-chat-import 是一个 DeepSeek Harness 插件,用于把其他 coding agent 的完整对话历史导入为可继续对话的 DeepSeek Harness 会话,也可以反向导出。它支持 README 列出的 15 类来源,包括 Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode、Kimi CLI / Kimi Code、Qoder CLI 和本地 JSONL。导入时只读源文件,不改写原始记录;每段对话会生成新的会话,并按来源 cwd 放入对应 workspace。
DeepSeek Harness 插件会读取 ~/.claude.json 中的项目映射来解析 workspace;Reasonix 使用贪心 slug 解码,并带有 home-directory sandbox guard。源路径在本机不可用时,会回退到源文件所在目录。工具调用、结果、thinking blocks、标题、模型和时间戳会在源格式提供这些数据时保留。ChatGPT 的分支可以分别恢复,opencode 的工具名也会映射到 DeepSeek Harness 对应名称。
它适合迁移、备份或跨 agent 继续已有工作。插件会接触本地对话文件、数据库、会话目录及配置文件,终端 surface 是其读取和导入导出的工作入口;不需要跨 agent 历史时不应安装。导出并非绝对无损,但 degradations 会报告 orphan results、skipped injections 和 skipped attachments。DeepSeek Harness 插件还支持导出到 Claude Code、Codex、Kimi,以及带 SHA-256 fingerprint 的 portable bundle。
dsh-chat-import 的文档
dsh-chat-import 的行为说明
DeepSeek Harness 会把导入内容创建为新的会话,不会改写源历史,也不会修改 DeepSeek Harness engine。源文件按只读方式读取。插件先用 ~/.claude.json 的项目映射解析来源 cwd,再处理 Reasonix 的 slug;路径在本机不存在时,回退到源文件目录。workspace 解析包含 home-directory sandbox guard。
dsh-chat-import 的命令
支持的操作包括 import_chatgpt({ branch: 'all' })、export_claude、sync_to_claude、export_codex、export_kimi、export_bundle、restore_bundle、import_agents、import_mcp 和 import_settings。slash commands 包括 /resume-claude、/resume-codex、/mcp-status、/settings-suggest 和 /attach-workspaces。export_claude 生成可由 Claude Code 使用 --resume 加载的 JSONL;sync_to_claude 只追加新的完整 turns,不会静默覆盖文件。
dsh-chat-import 的数据处理
导入会尽量保留 tool calls、tool results、thinking blocks、titles、models 和 timestamps。ChatGPT 的 tool messages 会转换为 tool/call 与 tool/result;opencode 的 websearch、question、task 会映射为 web_search、ask_user_question、subagent。export_bundle 与 restore_bundle 使用 SHA-256 fingerprints,并报告无法访问的 cwd。degradations 会列出 orphan results、skipped injections 和 skipped attachments。
import_agents 可把 pi、opencode、Claude、Codex 的 agents、prompts、skills、instructions 和 config references 转成持久化 DeepSeek Harness skills。import_mcp 读取 Claude 与 Codex 的 MCP servers,生成可审核的 DSH MCP client YAML snippet;import_settings 读取 Claude settings.json 和 Codex config.toml,生成迁移建议。
dsh-chat-import 的环境要求和限制
仓库标注 Node.js >= 22.13。README 没有定义插件专用配置 key 或 environment variables;导出是否完整取决于源格式记录的数据。
根据项目自己的文档整理,会跟着上游更新。两边对不上时以源码仓库为准—— 去 GitHub 看原始 README
同一分类
dsh-chat-import 的同类插件
dsh-claude-ux
eri64
DSH plugin: Claude-style Chinese risk control & conversation autonomy for DeepSeek Harness web
我们跑过,装得上
plugin-session-export
whyihaveyou
把 append-only 会话日志导出为按轨迹来源分组的可读 Markdown 或 HTML。
没有一行式安装命令——这个插件在一个大仓库的子目录里,也没发 npm 包。
deepseek-harness-control-center
feibi-mochi
DeepSeek Harness account monitoring, usage accounting, completion alerts, official recharge, flexible layout, and agent-assisted session controls. / 账户监控、提醒、充值与会话控制中心
我们跑过,装得上