返回目录

dsh-chat-import

编辑精选维护状态: 活跃

nwflower/dsh-chat-import

Import 14+ external agent chat histories (Claude Code, Codex, ChatGPT, Cursor, Gemini, Reasonix, opencode, ZCode, Grok Build, OpenClaw, Pi, Hermes, Kimi CLI, DSH) into DeepSeek Harness as resumable sessions — full-fidelity, reverse export/sync, bundle backup. | 从 Claude Code、Codex、Reasonix 等 Agent 工具导入历史消息到 DeepSeek Harness 并继续对话。

前往 GitHub项目主页
$ dsh plugin --profile web add dsh-chat-import

141

星标

18

Fork

JavaScript

语言

MIT

许可证

2026-08-13

创建于

2026-09-08

最近推送

一个 dsh 插件:把 16+ 种外部 Agent 的聊天历史以可续接会话导入 DeepSeek Harness,并支持导出 / 同步回去——来源只读、完整保真、MIT 协议。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-08-25

许可证

MIT

01它能帮你完成什么?

  • 把外部 Agent 的过往对话带进 DeepSeek Harness

    完整保真、可续接的 DeepSeek Harness 会话——保留工具调用、推理、标题、模型与时间戳——并按来源工作区分组

    从 Claude Code、Codex、ChatGPT、Cursor、Gemini、Reasonix 等 16+ 种 CLI 迁过来、希望继续在 DeepSeek Harness 里聊天的开发者与 Agent

  • 把 DeepSeek Harness 会话送回 Claude Code、Codex 或 Kimi

    可由 `--resume` 加载的 Claude Code JSONL、Codex rollout、Kimi wire 文件,或带 SHA-256 指纹、可跨机恢复的便携交换包

    在 DeepSeek Harness 与其他 Agent 之间来回搬运工作、需要备份 / 交接 / 互通的团队

  • 一次性批量导入整个本地 Agent 历史

    每个会话生成一条全新 DSH 会话,可用 `scan_discover()` 只读预览、在侧边栏面板多选导入;`/import-all` 导入全部

    希望把某个目录或数据库(Claude / OpenCode / Pi / Hermes)里的全部会话汇总到 DeepSeek Harness 的用户

02如何接入 DeepSeek Harness?

前置条件

  • Node.js ≥ 22.13
  • DeepSeek Harness (dsh) CLI, targeting dsh 0.1.x (tested on 0.1.0-rc.6 / 0.1.0-rc.7)

安装步骤

  1. 01

    Install from npm: `dsh plugin --profile web add dsh-chat-import`

    $ dsh plugin --profile web add dsh-chat-import

  2. 02

    Or link a local checkout: `dsh plugin --profile web add -w link:/path/to/dsh-chat-import`

    $ dsh plugin --profile web add -w link:/path/to/dsh-chat-import

  3. 03

    Then call any `import_*` tool in a DSH session, e.g. `import_claude({ path: "~/.claude/projects" })`

验证接入成功

作者未说明

回滚

  • Uninstall: remove the `import-claude` insert line from your profile's bundles and restart dsh; imported sessions stay untouched and the plugin never auto-deletes.

03DSH 适配与能力边界

DSH 适配原生运行时

通过 `dsh plugin --profile web add dsh-chat-import` 以 dsh 插件形式接入;在 DeepSeek Harness 会话内注册 `import_*` / `export_*` / `sync_to_*` 工具,并以只读方式读取来源记录。

  • 从 16+ 种来源批量导入

    外部 Agent 的单个文件 / 目录 / 数据库(Claude Code、Codex、ChatGPT、Cursor、Gemini、Reasonix、opencode、Kimi、DSH 日志等)每次会话生成一条完整保真、可续接的 DeepSeek Harness 会话,按来源工作区分组

  • 矩阵导出与同步

    一条 DeepSeek Harness 会话Claude Code JSONL(`--resume` 可续接)、Codex rollout、Kimi wire 文件,或带 SHA-256 指纹、可跨机恢复的便携交换包

  • Agent 资产迁移

    pi / opencode / Claude / Codex 的 agents、prompts、skills、instructions持久化的 DSH skills

  • 只读审计 / 体检

    已导入或已迁移的会话结构审计与迁移健康检查

04适合谁?何时不该用?

适合

  • 从 Claude Code、Codex、ChatGPT、Cursor、Gemini、Reasonix 等 16+ 种 CLI 迁过来、希望继续在 DeepSeek Harness 里聊天的开发者与 Agent
  • 在 DeepSeek Harness 与其他 Agent 之间来回搬运工作、需要备份 / 交接 / 互通的团队
  • 希望把某个目录或数据库(Claude / OpenCode / Pi / Hermes)里的全部会话汇总到 DeepSeek Harness 的用户

不适合

  • 在工作区之外读取来源或写出导出文件,需要会话沙箱允许该路径。

05兼容性、维护与安全提示

  • 在工作区之外读取来源或写出导出文件,需要会话沙箱允许该路径。
  • Claude Code 的记录不会持久化 system prompt,因此「导入 system prompt」开关对该来源无效(no-op)。
  • 来源格式无法保留的内容会在导入报告中明确标注,而不是被静默丢弃。
2026-08-132026-08-23v0.7.0

MIT · 活跃维护中(最新发布 v0.7.0,2026-08-23)

06常见问题

怎么安装 dsh-chat-import?

运行 `dsh plugin --profile web add dsh-chat-import` 安装 npm 包,或用 `dsh plugin --profile web add -w link:/path/to/dsh-chat-import` 链接本地目录。需要 Node.js ≥ 22.13,目标 dsh 0.1.x。

支持从哪些 Agent 导入?

Claude Code、Codex、ChatGPT、Cursor、Gemini、Reasonix、opencode、MiMo Code、ZCode、Grok Build、OpenClaw、Pi、Hermes、Kimi CLI / Kimi Code、Qoder CLI、DSH 会话日志以及任意本地 JSONL——共 16+ 种来源。

导入会修改我原来的记录吗?

不会。来源记录与数据库以只读方式读取、绝不改写;DSH 引擎不被触碰,导入后的历史为追加式。每次导入都会成为一条全新会话。

可以把 DeepSeek Harness 会话送回其他 Agent 吗?

可以。`export_claude` 把 DSH 会话序列化为可由 Claude Code 通过 `--resume` 加载的 JSONL;`export_codex` 面向 Codex,`export_kimi` 面向 Kimi;`export_bundle` / `restore_bundle` 生成带 SHA-256 指纹的便携交换包。

怎么卸载?

从你 profile 的 bundles 中删除 `import-claude` 插入行并重启 dsh。已导入的会话保持不变,插件不会自动删除任何内容。

08数据与来源

  • 作者声明github.com57f476b574b3…

    Import 15+ external agent conversation histories into DeepSeek Harness as full-fidelity, resumable sessions — and export…

  • 作者声明github.com57f476b574b3…

    as **full-fidelity, resumable DeepSeek Harness sessions**

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-08-25。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。