DeepSHPlugins
dsh-codex-sync 项目预览
GITHUB / COMMUNITY PROJECT

dsh-codex-sync

工具与集成JavaScriptMIT

OpenAI Codex 与 DeepSeek Harness 一站式双向同步:一等公民技能、codex 会话导入与工作区挂载、codex mcp_servers 实时 MCP 自动镜像、Codex 侧反向 MCP 一键安装器。

25 StarsWalvez 更新时间 2026-08-26
访问 GitHub 仓库
dsh-codex-sync 项目预览
dsh-codex-sync 界面截图dsh-codex-sync 界面截图dsh-codex-sync 界面截图dsh-codex-sync 界面截图

项目介绍

中文

OpenAI Codex 与 DeepSeek Harness 一站式双向同步:一等公民技能、codex 会话导入与工作区挂载、codex mcp_servers 实时 MCP 自动镜像、Codex 侧反向 MCP 一键安装器。

English

One-stop bidirectional sync between OpenAI Codex and DeepSeek Harness: first-class skills from ~/.codex/skills, codex session import with workspace attach, live MCP auto-mirror of codex's mcp_servers, and a Codex-side reverse MCP installer.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
Walvez
仓库
Walvez/dsh-codex-sync
GitHub Stars
25
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-26
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

68/ 100
维护活跃
90
文档与实用信息
50
生态关注度
40
安装便捷信号
100
项目声明信号
100

近 16 天仍在更新;标准命令一键安装。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin --profile web add dsh-codex-sync

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

⚡ dsh-codex-sync

Two-way Codex↔DSH bridge: skills from ~/.codex/skills, session import with workspace attach, live MCP mirroring of mcp_servers, and a Codex-side reverse MCP installer.
*2-way project chat sync · Live Skills mount · Auto MCP mirroring · Native modern UI*

English •

简体中文

npm version npm downloads CI Node License: MIT Awesome DSH Plugin


🎛️ Native Sync Settings Modal

Codex Sync Settings modal: actions, switches, language

📍 Sidebar Workspace Trigger

Workspace header Codex quick entry button

📥 Import from Codex by Project

Import picker: projects, chats, and status tags

📤 Export DSH Chats to Codex

Export picker: smart workspace matching, source filter


🤔 Why dsh-codex-sync?

When using OpenAI Codex, developers build up significant workflow assets:

  1. Rich project chat histories with complete code contexts, architecture decisions, and debugging steps;
  2. Custom Skills libraries under ~/.codex/skills with tailored instructions and scripts;
  3. Configured MCP toolchains for databases, web searches, and browser automation.

When adopting or exploring DeepSeek Harness (DSH), developers typically face major friction:

  • Lost conversation history: Incompatible session formats prevent resuming past Codex tasks in DSH;
  • Configuration duplication and drift: Skills and MCP servers must be manually recreated and maintained in two separate tools;
  • One-way dead ends: Most migration scripts are one-time destructive copies that offer no clean way to safely bring DSH continuations back to Codex.

dsh-codex-sync eliminates this friction completely. It is not a throwaway migrator, but a production-grade, continuous two-way bridge between Codex and DSH.


✨ Key Highlights

1. 💬 Two-Way Safe Project Chat Portability (Codex ⇄ DSH)

  • Import from Codex:
  • Browse conversations grouped by workspace folder in an intuitive project tree;
  • Preserves user prompts, assistant outputs, reasoning traces, and tool-call trajectories;
  • Automatically attaches imported sessions to matching workspaces for seamless continuation;
  • Incremental re-import: Codex conversations continued after the initial import are marked as updated and append only new turns without creating duplicate sessions.
  • Export to Codex:
  • Export DSH native conversations or continuations back into Codex;
  • Automatically matches Codex's workspace catalog, gracefully locking unknown directories to prevent orphan threads;
  • Creates clean, standalone Codex rollouts (history_mode: legacy) and SQLite index entries without modifying or overwriting original Codex histories;
  • View and continue chats in Codex immediately after restarting the Codex app.
  • Sub-Agent Thread Filtering:
  • Hides internal sub-agent threads by default to keep the conversation list focused;
  • Easily expand and nest sub-agents under parent threads for selective, independent export.

2. ⚡ Live First-Class Skills Mounting

  • Mounts ~/.codex/skills/*/SKILL.md directly into DSH's native skill catalog;
  • Full support for nested directory resources and multi-file skill bundles;
  • Zero-restart updates: Edit a skill file on disk, and DSH recognizes the change on the next turn.

3. 🔌 Automated Bidirectional MCP Mirroring

  • Codex → DSH: Watches ~/.codex/config.toml live, dynamically mirroring [mcp_servers.*] to DSH with conflict avoidance and stderr silencing;
  • DSH → Codex (Reverse Bridge): Single-command setup (npx dsh-codex-sync codex-install) equips your Codex agent with tools to search, inspect, and install DSH plugins.

4. 🎨 Native Modern UI Experience

  • Adaptive Sidebar Trigger: Sits right beside the workspace header when expanded, and aligns below the search button when collapsed;
  • Centered Modal Panel: High-contrast, backdrop-blurred settings card with intuitive action cards, real-time switch feedback, and zero UI cutoff;
  • Polished Design Integration: Uses native DSH design tokens (--dsw-alias-*), pure CSS transitions with zero hover artifacts, and responsive text truncation.

📦 Quick Start

1. Install in DSH

Install via DSH Plugin Market (recommended):

dsh plugin --profile web add dsh-codex-sync

Or configure inside your profile's cordis.patch.yml:

- insert:
    - id: codex-sync
      name: dsh-codex-sync
      config:
        maxSkills: 30
        mcpMirrorDeny:
          - node_repl
        mcpMirrorSilent:
          - exa

2. Configure Codex Reverse MCP Bridge (Optional)

# Register [mcp_servers.dsh-plugins] in ~/.codex/config.toml
npx dsh-codex-sync codex-install

# Run diagnostic health check
dsh-codex-sync doctor

🎛️ Sync Settings & Toggles

Click the Codex Icon in the sidebar to open the centered control modal:

SectionItemCommand / Config KeyDescription
ActionsImport from Codex/import-allOpen project picker to import chats into DSH
Repair sessions¹/repair-sessions [--fix]Scan stored session logs for replay damage and heal them in place (see below)
Refresh states/codex-settingsRe-sync all switch states from the host
FeaturesImport commandsenableImportEnable /import-codex slash command family
InstructionsenableInstructionsInject instructions.md / AGENTS.md into prompt
SkillsenableSkillsRegister ~/.codex/skills as live DSH skills
LanguageLanguage SwitcherLanguageToggle between 简体中文 / English
¹ A subtle hint at the bottom-left of the settings modal links imported-chat errors to this command.

🩺 Troubleshooting: token meter / replay errors on imported chats

Symptom — switching the model or running compaction on an (imported) conversation fails with:

command.execute failed: internal: token meter: assistant/message at seq N has no matching step/start event
corrupt session log: seq gap in committed region at line L

Why — DSH's token meter validates the whole event log via cold replay when the model changes (provider usage anchors become invalid). Logs written before v1.6.0 lacked paired step/start…step/end markers, and mixed logs can carry stale seq citations — both fail loud only during that replay.

Fix — run this in any DSH chat (or dsh-codex-sync repair-sessions --fix in a terminal):

/repair-sessions --fix

The repair merges seams, inserts missing step markers, remaps citations, renumbers sequences, validates every candidate with the real @deepseek-ai/dsh-token-meter, and keeps a .bak next to each repaired log. Imports created by v1.6.0+ are replay-safe by construction, so this should never trigger again.


🤖 Built-in Agent Skill (codex-sync)

This package bundles a first-class codex-sync skill. Your DSH AI Agent can operate synchronization tasks on your behalf:

  • *"Dry-run importing my Codex conversations"* → runs /import-codex --dry-run
  • *"Check current MCP mirror status"* → runs /mcp-status
  • *"Turn on auto-import"* → runs /auto-import on

📄 License

MIT License © 2026 Walvez

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目