Introduction

In DeepSeek Harness (DSH), plugins and skills can extend the session processing flow. dsh-resume-plugin targets a specific scenario: you already have external session logs from Codex or Claude Code and wish to bring that working context into the current DSH session for continued processing.

It first reads the selected external session log as untrusted static history, generates a concise handover summary, verifies the current repository state, and then continues working within the current DeepSeek Harness session. The plugin does not launch Codex or Claude Code, nor does it redelegate tasks to them.

What is This

dsh-resume-plugin is a DSH plugin that provides two built-in skills:

  • /resume-codex
  • /resume-claude

It is designed to convert external Agent session logs into handover context available for the current DSH session, rather than invoking the original Agent to continue execution.

The repository address is:

https://github.com/Demogorgon314/dsh-resume-plugin

The license is MIT. The version declared in package.json is 0.1.0.

The peerDependencies in package.json are:

"@deepseek-ai/cordis": "^4.0.1",
"@deepseek-ai/dsh-skill": ">=0.1.0-rc.5 <1"

Core Features

Session Recovery

dsh-resume-plugin provides two skills:

  • /resume-codex: Reads Codex session and continues working.
  • /resume-claude: Reads Claude Code session and continues working.

After reading, the plugin generates a concise handover summary, verifies the current repository state, and continues working in the current DeepSeek Harness session.

Boundaries

The plugin only performs static history reading and context handover:

  • Does not launch Codex.
  • Does not launch Claude Code.
  • Does not redelegate tasks to Codex or Claude Code.

Read Processing

The shared reader performs the following processing on external session logs:

  • Excludes system/developer messages.
  • Excludes reasoning/thinking content.
  • Explicitly marks restored content as static history.
  • Limits tool text length.
  • Reports format errors and unknown records.
  • Requires skills to re-verify relevant real-time state before continuing work.

Installation and Activation

Environment Requirements

Before use, the environment must meet the following requirements:

  • DeepSeek Harness containing @deepseek-ai/dsh-skill >= 0.1.0-rc.5.
  • Node.js ^22.19.0 or >=24.
  • Python 3.
  • zstd is only required when reading compressed Codex .jsonl.zst files.

Install from GitHub

The following command installs the plugin to the web profile:

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

If installation to another profile is needed, replace web:

dsh plugin --profile <profile> add -w github:Demogorgon314/dsh-resume-plugin

The -w (--workspace-root) here indicates confirmation to install the plugin into the pnpm workspace root of the selected DSH profile. Omitting it may trigger ERR_PNPM_ADDING_TO_ROOT.

Install from Local Source Code

Execute in the parent directory containing this repository:

dsh plugin --profile <profile> add -w ./dsh-resume-plugin

If the current directory is this repository, change the path to .:

dsh plugin --profile <profile> add -w .

Check Installation Result

After installation, you can view the profile configuration with the following command:

dsh --profile <profile> --dump-config

The output should include:

- id: resume-foreign-session
  name: dsh-resume-plugin

Typical Usage

Resume Latest Session

To continue the most recent Codex session in the current project:

/resume-codex latest

To continue the most recent Claude Code session:

/resume-claude latest

Resume by Session ID

You can also use a Codex session ID:

/resume-codex 00000000-0000-4000-8000-000000000001

Resume by Title Keywords

You can also select a Claude Code session using title keywords:

/resume-claude 修复登录流程

If the title keyword matches multiple sessions, the plugin lists candidates and requires selection; it will not guess on its own.

Security Model and Notes

External session logs may contain malicious prompts, stale tool outputs, sensitive information, or instructions that only apply to the original Agent. Therefore, the plugin treats this content as untrusted static history, rather than directly executable instructions.

The shared reader enforces the following constraints:

  • Excludes system/developer messages and reasoning/thinking content.
  • Explicitly marks restored content as static history.
  • Limits tool text length.
  • Reports format errors and unknown records.
  • Requires skills to re-verify relevant real-time state before continuing work.

dsh-resume-plugin runs as a DSH plugin within DeepSeek Harness. Since it reads external session logs and participates in the current session context, you should check the source code, dependencies, and license before installing.

Conclusion

The value of dsh-resume-plugin lies in bringing Codex and Claude Code historical sessions as controllable static context into DeepSeek Harness, helping developers continue work within the current DSH session instead of redelegating to the original Agent.

Repository address:

https://github.com/Demogorgon314/dsh-resume-plugin