← 返回列表
D

dsh-session-import-codex

v0.1.1 · 3 天前发布

DeepSeek Harness plugin for importing Codex App Server conversation history

codexcordisdeepseek-harnessdsh-pluginmigrationsession-import

README

dsh-session-import-codex

English | 中文

这是一个独立于 DeepSeek Harness 源码树的插件和 PowerShell CLI,用于导入 Codex 对话历史。它通过官方 Codex App Server 稳定历史接口读取对话,把已结束的 turn 转换为经过验证的 Harness session event,通过目标 profile 的公开服务持久化,并按照历史工作目录创建或复用工作区。

首选用法是一次性 CLI。/import-codex 聊天命令继续保留,用于开发调试和按 thread id 导入。

CLI 会导入什么

  • thread/listarchived: false 条件下返回的全部未归档交互式 Codex 对话;

  • 当前转换器能够表示的 completed、interrupted 和 failed turn;

  • 默认只导入 reasoning summary,绝不导入原始 reasoning 内容;

  • 目标 session 使用 codex-<thread-id> 形式的确定性 id。
  • 仍处于 active 状态的对话会跳过。已存在的目标 id 不会重写 session 日志;真实迁移重跑会刷新其冷态投影,并重复执行幂等的工作区关联。单条源数据异常只会记录失败,不会中止后续批次。

    导入器不会读取 Codex rollout 文件、桌面应用状态、SQLite 数据库或私有 JSONL 文件,也不会直接写 Harness 的持久化文件。

    从 npm 安装

    要求:

  • Node.js ^22.19>=24

  • pn
  • 查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-session-import-codex
    Repo
    git+https://github.com/xing01l/session-import-codex.git
    Engines
    {"node":"^22.19 || >=24"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}