dsh-codex-migrate:Codex 與 DSH 的一次性結構化遷移插件

前言

如果你在 DSH(DeepSeek Harness)和 Codex 之間切換任務,常見需求是把當前對話帶到另一邊,或把項目中的未歸檔對話批量導入另一側。dsh-codex-migrate 提供的是顯式的一次性結構化導入:在需要時執行一次導入,不依賴後臺雙向同步,也不把兩側會話變成共享會話。

插件定位

dsh-codex-migrate 是由 polarskicpl 維護的 DSH 插件,許可證爲 MIT。在 DSH「一切皆插件」的擴展方式下,它以插件形式接入,用於處理 Codex 與 DSH 之間的一次性結構化遷移。

核心功能

下面介紹插件已支持的能力:

  • Codex → DSH 與 DSH → Codex 的一次性結構化導入
  • 支持單個對話遷移,不修改源對話
  • 支持按 DSH 項目批量遷移未歸檔對話,並保留原始工作區路徑
  • 提供 Continue in Codex 與 Continue in DSH 入口
  • 提供 MCP memory Beta:remember_memory、search_memory、forget_memory
  • 支持三種記憶來源:Codex Markdown memory、bridge MCP memory、Memory Skill storage
  • 使用 size + mtime + hash 增量緩存刷新 Codex 會話清單
  • 隔離損壞的 JSONL 會話文件

它不做後臺雙向同步,不共享對話,也不做衝突合併。每次導入都是一次顯式動作。

安裝與啓用

先確認環境:

  • 可用的 DeepSeek Harness
  • Codex desktop、Codex CLI 或 Codex IDE extension
  • 建議使用 Node.js 18 或更高

示例命令使用 DSH web profile;如果你使用其他 profile,需要替換命令中的 profile。

安裝 DSH 插件:

dsh plugin --profile web add dsh-codex-migrate

重啓 DSH 後,打開 Settings → Codex Migration。

DSH 插件單獨安裝時,支持設置頁導入和 DSH → Codex 操作。如果要從 Codex 發起導入,或使用 MCP memory,需要安裝 Codex companion。

典型用法

DSH → Codex

在 DSH 中點擊 Codex 圖標,導入一個 DSH 對話並跳轉到 Codex。

也可以打開 Settings → Codex Migration → Batch Migration by Project,批量導入項目中未歸檔對話。

Codex → DSH

在 Codex 中說:

Continue in DSH

這會將當前 Codex 任務導入 DSH 並打開。

MCP memory Beta

在一個 Codex 任務中詢問:

Use DSH MCP to remember that my test code is ocean-blue-728.

再在另一個任務中詢問:

Search DSH MCP memory and tell me my test code.

MCP 記憶本地存儲在:

~/.codex/dsh-codex-bridge/memory.jsonl

這些記憶不由插件上傳。

適用場景與注意

適合需要把 Codex 與 DSH 之間對話顯式導入的 DSH 用戶。使用它時,建議關注以下幾點:

  1. 每次導入都是顯式的一次性操作,不後臺雙向同步,不共享對話,不做衝突合併。
  2. 單獨安裝 DSH 插件時,支持設置頁導入和 DSH → Codex 操作;從 Codex 發起導入或使用 MCP memory 需要安裝 Codex companion。
  3. DSH 插件會在當前 dsh 進程權限下運行,安裝前建議檢查源碼和 MIT 許可證。
  4. 示例命令使用 web profile;如使用其他 profile,需要自行替換。
  5. DSH 社區目錄是獨立社區站點,與 DeepSeek 或幻方不構成官方從屬關係。

鏈接

  • 插件目錄頁:https://www.skillhub.cn/plugins/polarskicpl/dsh-codex-migrate
  • GitHub 倉庫:https://github.com/polarskicpl/dsh-codex-migrate
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜