dshbase

插件目录 / Knowledge / dsh-resume-plugin

dsh-resume-plugin

已验证 · 实测可装 Demogorgon314

✓ 持续维护 基于 2 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
Python语言
2026-08-15最近推送
跨平台平台

功能简介

让 DeepSeek Harness 安全读取并继续 Codex 与 Claude Code 的历史会话。

✅
我们的评价
可用 — 实测通过,早期项目

让 DeepSeek Harness 安全读取并继续 Codex 与 Claude Code 的历史会话。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-resume-plugin

简体中文 | 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

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-resume-plugin」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:Demogorgon314/dsh-resume-plugin

Headless(CLI)profile:

dsh plugin --profile headless add github:Demogorgon314/dsh-resume-plugin

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

给 agent 一套记忆、知识库或检索层,让它不再跨会话丢上下文。

适合谁

跑长项目、想让 agent 记住决策、文档和偏好而不用每次重讲的人。

二次开发建议

记忆/检索后端是缝——插新存储、调蒸馏策略,或加引用与审计轨迹。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Knowledge 里更多

浏览全部 7797 个插件 →