场景库 / A·迁移与上手
SYMPTOM · 场景 01 · 已开方

Claude Code / Codex 迁移到 DSH

本页面向从 Claude Code / Codex 迁移的用户,解决两件事:在 dsh 中还原原有操作习惯(@file、批注、全屏 TUI),以及完整迁移会话历史。

EN Migrating from Claude Code / Codex? These audited plugins restore your workflow (@file, annotations, fullscreen TUI) and import your session history into dsh.

选择迁移来源,筛选相关处方

功能对照:原工具功能与 dsh 对应插件

Claude Code / Codex 功能
dsh 对应插件
全屏终端界面,流式输出,Esc 回滚
dsh-cc-tui
@file 引用工作区文件进 prompt
dsh-at-file
选中文本添加批注后发送(Codex 式)
dsh-annotation
Codex 风格界面主题
dsh-skin
检索历史会话
dsh-session-search
导入 Claude Code 会话并继续运行
dsh-chat-import

操作习惯还原

按需安装
dsh-cc-tui本场景首选 待复核
Claude Code 风格全屏 TUI。流式思考展开、回滚控制、context/TPS 指示器。迁移后可基本保留原有操作习惯。
权限:待人工复核 · 未见网络/执行类依赖线索维护:今天更新dsh.bundle 已声明,可激活有 CI,未见测试完整体检卡 →
dsh plugin --profile web add github:ccch1mneyyy/dsh-cc-tui
安装后需 重启 dsh 方可生效(官方文档:the plugin becomes active after restarting dsh)
dsh-at-file输入习惯 待复核
Codex 式 @file 文件引用。输入 @ 检索工作区文件,选中后随 prompt 附上。与 dsh-annotation(选中批注)配合使用,建议同时安装。
权限:待人工复核 · 未见网络/执行类依赖线索维护:今天更新dsh.bundle 已声明,可激活有测试,无 CI完整体检卡 →
dsh plugin --profile web add github:FSMargoo/dsh-at-file
安装后需 重启 dsh 方可生效(官方文档:the plugin becomes active after restarting dsh)
dsh-annotation输入习惯 待复核
选中文本添加批注后发送。Codex 用户的核心输入方式,dsh-external 官方系插件。体检显示当前未见测试与 CI。
权限:待人工复核 · 未见网络/执行类依赖线索维护:今天更新dsh.bundle 已声明,可激活未见测试与 CI完整体检卡 →
dsh plugin --profile web add github:dsh-external/dsh-annotation
安装后需 重启 dsh 方可生效(官方文档:the plugin becomes active after restarting dsh)
dsh-skin外观 待复核
Codex 风格主题切换器。纯视觉层插件,风险较低;更新频率一般,大版本后可能需等待适配,安装前请确认维护状态。
权限:待人工复核 · 未见网络/执行类依赖线索维护:1 天前更新dsh.bundle 已声明,可激活未见测试与 CI完整体检卡 →
dsh plugin --profile web add github:KinGao294/dsh-skin
安装后需 重启 dsh 方可生效(官方文档:the plugin becomes active after restarting dsh)

会话历史迁移

历史会话可完整保留
dsh-chat-import迁移核心 合格
导入 Claude Code / Codex / ChatGPT / Cursor 等 12 种工具的会话历史,含工具调用与推理块,导入为可继续运行的 session,而非只读归档。源文件只读不修改。本站首个四项全绿插件。
权限:读指定 JSONL 文件 · 不联网(人工复核 08-14)维护:今天更新dsh.bundle 已声明,可激活测试 + CI 齐全完整体检卡 →
dsh plugin --profile web add github:Nwflower/dsh-chat-import
安装后需 重启 dsh 方可生效(官方文档:the plugin becomes active after restarting dsh)
dsh-session-search跨工具检索 注意
跨工具会话搜索。无需迁移即可检索历史记录。注意:体检发现当前版本未声明 dsh.bundle,按官方文档该包安装后不会激活;请关注作者修复进展或按其 README 指引使用。
权限:待人工复核 · 未见网络/执行类依赖线索维护:2 天前更新未声明 dsh.bundle — 安装后不会激活有测试,无 CI完整体检卡 →
dsh plugin --profile web add github:Tieboyh/dsh-session-search
安装后需 重启 dsh 方可生效(官方文档:the plugin becomes active after restarting dsh)

迁移常见问题

依据官方文档与真实体检

安装后未生效:检查 dsh.bundle 声明

官方文档:没有 dsh.bundle 声明的包"仍然可以安装,但只作为普通依赖……不激活任何层"。本站体检卡包含该检查项——本页处方中即有一个插件当前未声明,体检卡已标红。

安装命令以官方文档为准

当前官方流程仅有包规格写法:dsh plugin --profile web add <npm包名 | github:owner/repo>(本地开发用 link:)。早期文章流传的其他安装形式在官方文档中已不存在,按旧写法安装会失败。版本变更追踪 →

安装后需重启

插件作者与官方文档一致确认:安装后重启 dsh 方可生效("the plugin becomes active after restarting dsh")。未重启时插件不生效,并非安装失败。

相关场景

本页体检数据 2026-08-15 采集 · 权限项人工复核中,完成后逐项更新 体检方法说明
← 返回场景库 · 分诊台