huguangyu666/dsh-plugin-session-import
DeepSeek Harness 插件:导入 claude-code / codex / reasonix / zcode 会话
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that imports historical chat sessions from four other popular coding agents into DSH. The supported source agents are Claude Code (including the new Claude 3p endpoint), Codex, Reasonix, and Zcode, with full parsing support for each agent's native session storage format. Each imported session retains full tool call chains and bound working directory information, so you can resume your original work directly in DSH. It can be installed via three methods: official DSH CLI, DSH plugin store one-click install, or manual profile mounting, and requires a DSH Web restart to activate.
This plugin is built for users who have accumulated a large number of development sessions on other coding agents and want to migrate their full context to DSH to continue working. The standard graphical workflow is to click the "Import Session" button on the DSH sidebar, select the source agent type, wait for the session scan to complete, then search or filter to find your target sessions, select multiple sessions if needed, and trigger the one-click import. You can also use the command /import <tool> <path> to import all sessions from a specified directory directly via the CLI.
This plugin is released under the open source MIT license, and has a documented set of known limitations to set user expectations. Image attachments from imported sessions are downgraded to placeholder text, truncated middle rounds of overly long sessions are not retained (though summaries and anchor points are kept), and some Reasonix desktop sessions without title metadata will use their file name as the session title. The project includes full unit tests for all parsing logic, and contributors can build and validate the package locally following the official documented steps.
这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,核心功能是将 Claude Code、Codex、Reasonix、ZCode 四款其他编码代理的历史聊天会话,完整导入为 DSH 格式的会话,导入后保留完整工具调用链、工作区绑定信息,可直接在 DSH 中续聊原有任务。插件支持按标题、项目名搜索会话,支持批量多选导入,自带适配明暗主题的网页 UI,同时也提供命令行调用入口。
这款插件面向已经在其他编码代理中积累了大量历史会话,希望整体迁移到 DSH 继续开发任务的用户。典型使用流程是,点击 DSH 侧边栏底部的「导入会话」按钮,选择原会话所属的工具类型,等待扫描加载出所有可导入的会话后,可搜索筛选找到目标会话,勾选后一键完成批量导入。也可以通过命令行 /import <工具名> <路径> 直接批量导入指定目录下的会话。
该插件遵循 MIT 开源协议,可通过 DSH 官方命令、插件商店一键安装或手动挂载三种方式安装,安装后重启 DSH Web 即可生效。已知限制包括:图片附件会降级为占位文本,超长会话被截断的中间轮次不会保留,Reasonix 桌面版部分缺失标题文件的会话只能用文件名作为标题。插件包含完整单元测试覆盖各解析逻辑,可自行构建验证。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-session-import(huguangyu666/dsh-plugin-session-import)
仓库:https://github.com/huguangyu666/dsh-plugin-session-import
本站详情页:https://www.yhbd.top/plugins/huguangyu666-dsh-plugin-session-import/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 7 · 最近提交 2026-09-15 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 7 stars - very few users, little community feedback星标只有 7,几乎没人在用,遇到问题缺少社区反馈
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 dsh-plugin-session-import
把 huguangyu666/dsh-plugin-session-import 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-session-import
已收录于 awesome-dsh-plugin 精选列表(Sessions & Messages)· AdamPlatin123 自动雷达(✅ 运行级验证通过)
DeepSeek Harness(dsh)插件:把 claude-code / codex / reasonix / zcode 的历史聊天记录导入为 dsh 会话(含工作区绑定与工具能力),导入后可直接续聊。
功能
- 四种工具解析:
- claude-code(含 Claude-3p 新端、中文路径
.claude.json权威映射) - codex(新旧两种响应格式,
custom_tool_call参数自动从 JS 代码转 JSON) - reasonix(旧 CLI + 新桌面版,项目 slug 贪心解码真实路径)
- zcode(
db.sqlite权威索引 + compaction 压缩摘要还原)
- claude-code(含 Claude-3p 新端、中文路径
- 会话发现:标题 / 项目名 / 消息数 / 时间齐全,30s 缓存扫描
- 搜索:按标题 / 项目名过滤(防抖输入)
- 批量导入:多选会话一次导入,每个会话独立 seed + 工作区绑定
- 工具完整可用:导入会话自动加入默认 preset scope,25+ 工具(read/edit/glob/grep/pwsh 等)与正常会话一致
- 超长会话保护:三层保障(内容裁剪 → 消息截断 → 单条兜底),任何长度 / 任何模型窗口都不超限
- Web UI:侧边栏「⇩ 导入会话」按钮(明暗主题自适应),导入成功自动关闭
- 命令:
/import <tool> <path>(文件或目录批量)
安装
方式一:官方命令(推荐)
# 装进 web profile(自动 reconcile dsh.profile.bundles)
dsh plugin --profile web add dsh-plugin-session-import
dsh web # 重启生效
方式二:商店一键安装
装 dsh-store,打开「插件商店」搜索安装。
方式三:手动
# 1. 安装插件包
npm i dsh-plugin-session-import
# 2. 在 profile 挂载(~/.dsh/profiles/web/cordis.patch.yml):
# - insert:
# - id: session-import
# name: 'dsh-plugin-session-import'
# 3. 重启 dsh web
dsh web
使用
- 点击侧边栏底部的 「⇩ 导入会话」 → 选择工具 → 搜索 / 滚动分批加载 → 勾选 → 导入
- 或命令行:
/import codex C:\Users\xxx\.codex\sessions(目录=批量)
会话数据位置
| 工具 | 会话目录 |
|---|---|
| claude-code | ~/.claude/projects/ + %LOCALAPPDATA%\Claude-3p\claude-code-sessions(新端) |
| codex | ~/.codex/sessions/ |
| reasonix | ~/.reasonix/sessions/(CLI)+ %APPDATA%\reasonix\projects\*\sessions(桌面版) |
| zcode | ~/.zcode/cli/db/db.sqlite(权威索引) |
导入质量保障
| 能力 | 说明 |
|---|---|
| 工具调用链 | seed 中 assistant/message 承载 tool-call 块,tool/result 紧跟对应调用(含孤儿 result 丢弃、迟到 result 配对),满足 OpenAI/DeepSeek wire 规则 |
| zcode 压缩 | 识别 compaction 标记,摘要正文(summary.body)原样还原为上下文 |
| codex 参数 | custom_tool_call 的 JS 代码参数(tools.exec_command({cmd: 'dir'}) 单引号/反引号)自动转成标准 JSON,避免模型学到错误调用格式 |
| 超长截断 | 文本 ≤16K 字符、工具结果 ≤40K 字符裁剪;消息按预算截断(保留开头锚点 + 压缩摘要 + 尾部);单条超预算一半直接丢弃 |
| 预算自适应 | 按默认模型真实窗口(contextWindow − maxTokens − 25% 余量)动态计算,DSH_IMPORT_CONTEXT_BUDGET 可覆盖 |
| cwd 修复 | claude 中文路径(.claude.json 权威映射)、reasonix slug 贪心解码——避免 workspace=主目录导致沙箱拒绝 |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Renzic-Stone/DSH-EasyRewrite
MichengAI/dsh-codex-ui
HakureiMonika/dsh-sandbox-escalation-fix
PerryLink/dsh-claude-move
Chang-Tong/dsh-import-agents
Player-MINEPIG/dsh-tavern
v587d/dsh-opencode-go-usage