Mreate/dsh-cc-import 预览 preview

Mreate/dsh-cc-import

将高质量对话导入Claude Code,并支持CLAUDE.md识别,添加如“/init”命令等基础功能,以加速迁移进程

Project Overview项目介绍

dsh-cc-import is a native DeepSeek Harness plugin built exclusively to migrate Claude Code user data into a DSH instance. To install the plugin, you first clone the repository to your local machine, install dependencies with pnpm install, then run pnpm run bundle to build the output package into the lib folder. After that, you add the built plugin to your DSH profile via the dsh plugin --profile web add command. After installation, you need to restart dsh web to activate the plugin, and if the client still loads the old version, a manual browser refresh will resolve the problem.

This plugin is intended for users who are moving from Claude Code to DeepSeek Harness, or who want to access their past Claude Code work within DSH. Once activated, a new entry button appears at the bottom of the DSH sidebar, which opens an overlay for importing conversations. You can filter sessions to only show those matching your current working directory, select multiple sessions to import in a batch, and imported sessions are automatically attached to your current workspace. The plugin also supports importing Claude Code subagents as DSH sub-sessions, and lets the model drive imports directly via two registered tools.

dsh-cc-import is released under the open source MIT license, and requires a few system dependencies to run correctly. You need to have Node.js version 22 or higher, pnpm version 10 or higher, and a global installation of the DSH CLI with a working DSH profile. There are a few known limitations to note: imported tool calls are not re-executed, image attachments are replaced with text placeholders, and imported sessions do not get a Claude Code icon in the DSH sidebar. The @import reference depth is capped at 4 levels, and a maximum of 40 files are allowed per import to avoid performance issues.

这是一个专为 DeepSeek Harness(DSH)开发的原生插件,作用是将 Claude Code 的记忆与对话数据迁移进 DSH。核心能力包括按层级加载 Claude Code 的 CLAUDE.md 记忆,仿照 Claude Code 流程实现 /init 命令一键生成 AGENTS.md,还能将 Claude Code 的 .jsonl 对话高保真导入为可回溯、可恢复的 DSH 会话。它采用纯插件挂载方式,无需修改 DSH 核心,安装即可启用,卸载后不会残留任何核心补丁。

用户安装该插件后,可在 DSH 侧边栏底部找到新增的「导入 Claude Code 对话」入口,点击后打开导入浮层。在浮层中可以筛选匹配当前工作区的 Claude Code 会话,支持多选批量导入,导入后会话会自动附加到当前工作区,无需重启 DSH 或刷新浏览器。它对 Windows 路径做了大小写和分隔符容错处理,幂等导入设计避免重复导入生成冗余会话,还支持将 CC 子代理作为子会话导入。

该插件采用 MIT 许可证开源,使用前需要满足前置条件:已全局安装带 dsh CLI 的 DSH、pnpm 10 以上版本、Node.js 22 及以上版本。已知限制包括导入的工具调用不会重新执行、附件图片仅保留文本占位、导入会话在 DSH 侧边栏无 CC 标识,@import 引用默认限制 4 层深度和最多 40 个文件。安装需要克隆源码后构建再添加到 DSH 配置。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Mreate/dsh-cc-import

把 Mreate/dsh-cc-import 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-cc-import

简体中文 · English

GitHub Repo GitHub Stars GitHub Forks CI MIT License status platform

把 Claude Code 的记忆与对话迁移进 DeepSeek Harness(DSH):CLAUDE.md 记忆加载、 /init 一键生成 AGENTS.md、Claude Code .jsonl 对话高保真导入为可回溯、可 resume 的 DSH 会话。 零核心改动,纯插件挂载。安装插件即可启用,卸载后不留任何核心补丁。

核心能力

  • 记忆加载(CLAUDE.md):按 Claude Code 官方文档 的 memory 层级注入 ~/.claude/CLAUDE.md、./CLAUDE.md、./CLAUDE.local.md、子目录 CLAUDE.md (路径索引、按需读)与 @import 引用。AGENTS.md 家族由 DSH 原生自动加载,本插件不重复注入。
  • /init 命令:输入 /init 先选择文档语言(中文 / English,DSH 选项选择 UI), 再把「分析代码库 → 创建 AGENTS.md」的提示词提交给当前模型,由模型探索项目并写入 AGENTS.md(参考 Claude Code 的 /init 流程;创建结果即时可见)。
  • 对话高保真导入:把 CC .jsonl 会话转换为可回溯、可 resume 的真实 DSH 会话 (user/assistant 回合、工具调用与结果、thinking → reasoning、时间戳、token 用量), 导入即附加到当前工作区。
  • 子代理导入:CC 子代理侧链(<会话>/subagents/*.jsonl)作为子会话导入 (parentSession + delegationDepth + origin: 'subagent')。
  • 可扩展:导入器实现 ImportProvider 接口(src/import/provider.ts), 后续接 Cursor / Codex 等新 Agent 只需新增一个 provider 实现。
  • 双入口:侧边栏底部「🅒 导入 Claude Code 对话」按钮 + 浮层多选选择器;模型侧另有 cc_history_list / cc_import 工具,模型也能直接驱动导入。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-error-lens 下一个 Next dsh-conversation-density-map →