changhang155/dsh-plugin-claude-import ↗★ 0
dsh-plugin-claude-import
Import Claude Code sessions into DeepSeek Harness: agent tools (claude_session_list / claude_session_import) plus a Web GUI one-click import dock.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:changhang155/dsh-plugin-claude-import说明文档
阅读完整 README ↗dsh-plugin-claude-import
把 Claude Code 的会话(~/.claude/projects/*.jsonl)导入 DeepSeek Harness,提取成可续接的上下文——自动摘要链、最后任务、动过的文件、尾部状态——而不是逐事件回放。
本插件是 claude-code-to-dsh(零依赖 Python CLI,产出同样的 seed / markdown 文档)的 DSH 原生移植。
功能
- agent 工具(host 半区):
claude_session_list—— 列出~/.claude/projects下所有会话(ID/项目/标题/时间/大小/消息统计)claude_session_import—— 导入指定会话为 seed 开场上下文块(可直接粘贴进新会话)或完整 markdown 续接文档;createSession=true时在 Claude 会话所属项目目录下新建 DSH 会话,并把上下文作为首条消息投递
- Web UI(client 半区):会话头部新增「Claude 导入」入口——输入会话 ID(留空 = 最近一个),插件自动新建 DSH 会话、切换过去并播种导入指令
环境要求
dsh≥0.1.0-rc.6(npm:npx @deepseek-ai/dsh web),Node.js ≥ 18- 本机装有 Claude Code 且
~/.claude/projects下存在会话(插件在 dsh host 进程里读取它们)
安装
一条命令(bundle 流程,推荐)
dsh plugin --profile web add dsh-plugin-claude-import
包声明了 dsh.bundle,因此 dsh plugin 会自动 link、追加进 profile 的 bundles 并应用其 patch 层(插入插件行)。重启 dsh web 后验证:
dsh --profile web --dump-config | grep claude
手动(装进已有 profile)
cd ~/.dsh/profiles/web
pnpm add dsh-plugin-claude-import
然后在 ~/.dsh/profiles/web/cordis.patch.yml 注册:
- insert:
- id: claude-import
name: 'dsh-plugin-claude-import'
重启 dsh web。
从 GitHub 安装
纯 JS 无构建步骤,git 安装无需 prepare 脚本:
dsh plugin --profile web add github:changhang155/dsh-plugin-claude-import#
若 pnpm 拒绝执行脚本,在 profile 的 pnpm-workspace.yaml 里放行()后重新 add。