dsh-plugin
DayuanJiang/next-ai-draw-iodsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
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
🎛️ Native Sync Settings Modal
|
📍 Sidebar Workspace Trigger
|
📥 Import from Codex by Project
|
📤 Export DSH Chats to Codex
|
When using OpenAI Codex, developers build up significant workflow assets:
~/.codex/skills with tailored instructions and scripts;When adopting or exploring DeepSeek Harness (DSH), developers typically face major friction:
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.
updated and append only new turns without creating duplicate sessions.history_mode: legacy) and SQLite index entries without modifying or overwriting original Codex histories;~/.codex/skills/*/SKILL.md directly into DSH's native skill catalog;~/.codex/config.toml live, dynamically mirroring [mcp_servers.*] to DSH with conflict avoidance and stderr silencing;npx dsh-codex-sync codex-install) equips your Codex agent with tools to search, inspect, and install DSH plugins.--dsw-alias-*), pure CSS transitions with zero hover artifacts, and responsive text truncation.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
# Register [mcp_servers.dsh-plugins] in ~/.codex/config.toml
npx dsh-codex-sync codex-install
# Run diagnostic health check
dsh-codex-sync doctor
Click the Codex Icon in the sidebar to open the centered control modal:
| Section | Item | Command / Config Key | Description |
|---|---|---|---|
| Actions | Import from Codex | /import-all | Open project picker to import chats into DSH |
| Export to Codex | /export-codex | Export DSH chats into new Codex conversation copies | |
| Repair sessions¹ | /repair-sessions [--fix] | Scan stored session logs for replay damage and heal them in place (see below) | |
| Mirror status | /mcp-status | Modal overview of MCP servers, health, and statuses | |
| Refresh states | /codex-settings | Re-sync all switch states from the host | |
| Features | Import commands | enableImport | Enable /import-codex slash command family |
| Auto import | autoImport | Automatically import new Codex chats on startup | |
| Instructions | enableInstructions | Inject instructions.md / AGENTS.md into prompt | |
| Config summary | enableConfig | Inject config.toml model settings summary into prompt | |
| Skills | enableSkills | Register ~/.codex/skills as live DSH skills | |
| MCP mirror | mcpMirror | Auto-mirror [mcp_servers.*] (applies immediately) | |
| Language | Language Switcher | Language | Toggle between 简体中文 / English |
¹ A subtle hint at the bottom-left of the settings modal links imported-chat errors to this command.
token meter / replay errors on imported chatsSymptom — 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.
codex-sync)This package bundles a first-class codex-sync skill. Your DSH AI Agent can operate synchronization tasks on your behalf:
/import-codex --dry-run/mcp-status/auto-import onMIT License © 2026 Walvez