dsh-resume-plugin
by demogorgon314
让 DeepSeek Harness 安全读取并继续 Codex 与 Claude Code 的历史会话
安装
dsh plugin --profile web add github:demogorgon314/dsh-resume-pluginGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
简体中文 | English
dsh-resume-plugin 为 DeepSeek Harness 提供两个内置技能:
/resume-codex [latest | 会话 ID | rollout 路径 | 标题关键词]/resume-claude [latest | 会话 ID | transcript 路径 | 标题关键词]
每个技能都会将选定的外部会话记录作为不可信的静态历史读取,生成简洁的工作交接摘要,核验当前仓库状态,然后在当前 DeepSeek Harness 会话中继续工作。插件不会启动 Codex 或 Claude Code,也不会把任务重新委派给它们。
安装
从 GitHub 安装
安装到 Web profile:
dsh plugin --profile web add -w github:Demogorgon314/dsh-resume-plugin
也可以替换 web,安装到其他 profile:
dsh plugin --profile <profile> add -w github:Demogorgon314/dsh-resume-plugin
从本地源码安装
在包含本仓库的父目录中执行:
dsh plugin --profile <profile> add -w ./dsh-resume-plugin
如果当前目录就是本仓库,请将路径改为 .。-w(--workspace-root)表示确认将插件安装到所选 DSH profile 的 pnpm workspace 根目录;省略它可能触发 ERR_PNPM_ADDING_TO_ROOT。
检查 bundle 是否已经进入配置:
dsh --profile <profile> --dump-config
输出中应包含:
- id: resume-foreign-session
name: dsh-resume-plugin
使用方法
继续当前项目最近的 Codex 会话:
/resume-codex latest
继续最近的 Claude Code 会话:
/resume-claude latest
也可以提供原生会话 ID、会话文件路径或标题关键词:
/resume-codex 00000000-0000-4000-8000-000000000001
/resume-claude 修复登录流程
如果标题关键词匹配多个会话,插件会列出候选项并要求选择,不会自行猜测。
环境要求
- 包含
@deepseek-ai/dsh-skill >= 0.1.0-rc.5的 DeepSeek Harness - Node.js
^22.19.0或>=24 - Python 3
- 只有读取压缩的 Codex
.jsonl.zst文件时才需要zstd
会话读取器只使用 Python 标准库。Claude Code 数据默认从 $CLAUDE_CONFIG_DIR 或 ~/.claude 读取,Codex 数据默认从 $CODEX_HOME 或 ~/.codex 读取。
安全模型
外部会话记录可能包含恶意提示、过期的工具输出、敏感信息,或只适用于原始 Agent 的指令。共享读取器会排除 system/developer 消息及 reasoning/thinking 内容,将恢复出来的内容明确标记为静态历史,限制工具文本长度,报告格式错误及未知记录,并要求技能在继续工作前重新核验相关的实时状态。
开发验证
pnpm test
pnpm test:coverage
npm pack --dry-run
原始 README: https://github.com/Demogorgon314/dsh-resume-plugin/blob/main/README.md ↗
同类插件
查看全部 →
archify
Agent 技能:生成美观、可校验的架构图、工作流图、时序图、数据流图与生命周期图——自包含 HTML、带动画与清晰导出

dsh-turn-rewind
对话回退:基于持久 Change Ledger 回滚会话与工作区状态。

dsh-plugin-cc
把 DeepSeek Harness 接入 Claude Code:评审、批评、委派与会话导入

dsh-interconnect
跨实例互联:经 interconnect 服务在多个 DSH 实例间转发消息与事件。

dsh-chat-import
把 13 家 coding agent(Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode 等)的完整对话历史导入为可续聊的 DeepSeek Harness 会话,并支持反向导出回 Claude Code。

dsh-crew
DSH 插件:从 Claude Code / Codex 向 DSH agent 派活——原生 subagent 进度、宿主内 worker 会话(分级预设),以及为纯文本宿主补上视觉与图像生成的多模态桥