Introduction

The DSH plugin mechanism emphasizes “everything is a plugin.” For developers already using Claude Code, a specific problem is: local sessions are located in ~/.claude/projects. If you want to continue processing these contexts in DeepSeek Harness (DSH), you need an actionable import entry.

dsh-plugin-claude-import addresses this problem. It provides two agent tools, claude_session_list and claude_session_import, and also offers a “Claude Import” dock in the Web GUI, which imports selected sessions as seed context blocks or full markdown continuation documents.

What is this

This is a DSH plugin, repository address is https://github.com/changhang155/dsh-plugin-claude-import, license is MIT. It provides session list, session import, creating new DSH sessions, and Web GUI entry, for importing Claude Code sessions into DSH for further processing.

Core Capabilities

Below are the verified capabilities.

Session List

claude_session_list can list Claude Code sessions under ~/.claude/projects. The fields listed in verified facts include:

  1. id
  2. project
  3. title
  4. mtime
  5. size
  6. message stats

Session Import

claude_session_import can import a session. The import result can be:

  1. a seed context block, suitable as the initial context for a new DSH session;
  2. a full markdown continuation document, suitable for use as a more complete markdown document.

Create New DSH Session

When claude_session_import uses createSession=true, it creates a DSH session under the project directory of the Claude session and uses the imported context as the first message of that session.

One-Click Import via Web GUI

The “Claude Import” operation is provided in the Web GUI’s conversation header. When using it, you can input a session ID and then click “Import”. The plugin will create a DSH session, open it, and seed an import command.

Installation and Usage

Install using the bundle process under the web profile:

dsh plugin --profile web add dsh-plugin-claude-import

The plugin supports DSH bundle installation; the dsh.bundle patch layer and cordis.patch.yml in the package participate in plugin registration.

After installation, you can use the following command to check if claude-related items appear in the configuration:

dsh --profile web --dump-config | grep claude

Manual Installation to Existing Profile

Do X first, then Y: install the package first, then register the cordis.patch.yml line.

cd ~/.dsh/profiles/web
pnpm add dsh-plugin-claude-import

Then register the plugin line in ~/.dsh/profiles/web/cordis.patch.yml:

- insert:
    - id: claude-import
      name: 'dsh-plugin-claude-import'

Installation from GitHub

You can also install using the GitHub repository address:

dsh plugin --profile web add github:changhang155/dsh-plugin-claude-import#<sha>

The <sha> here needs to be replaced with the actual commit SHA used.

Peer Dependencies and Script Permissions

The plugin declares the following peer dependencies:

@deepseek-ai/cordis ^4.0.1
@deepseek-ai/dsh-tools ^0.1.0-rc.6
@deepseek-ai/dsh-host-apiproxy ^0.1.0-rc.6
@deepseek-ai/schemastery ^3.18.1

When installing in a bare profile, you may need to pnpm add these peer dependencies first or create a symlink to node_modules/@deepseek-ai under the DSH installation directory.

If pnpm refuses to run scripts, you can allow builds in the pnpm-workspace.yaml of that profile:

allowBuilds:
  dsh-plugin-claude-import: true

Then re-run the installation command.

Typical Usage

Initiated from Agent

First, ask the agent to list Claude Code sessions:

Please list Claude Code's historical sessions.

After selecting an ID, ask it to import as a seed and create a new DSH session under the Claude session’s project directory:

Import session <id> as a seed and create a new DSH session in its project directory.

Initiated from Web GUI

Click “Claude Import” in the conversation header of the Web GUI, optionally enter a session ID, and then click “Import”.

Following the steps above, the plugin will create and open a DSH session, while writing the import command as the seed context.

Applicable Scenarios and Notes

Suitable for people who already have local Claude Code sessions and want to continue processing these contexts in DSH. The following conditions must be met before use:

  1. dsh >= 0.1.0-rc.6
  2. Node.js >= 18
  3. Claude Code is installed on the local machine and sessions are located in ~/.claude/projects

It is important to note that the import is heuristic parsing:

  1. Session titles come from Claude’s ai-title / summary rows;
  2. The touched-files list only covers Write/Edit (and Read) tool calls;
  3. local-command-mode sessions will be detected and labeled, rather than being treated as ordinary sessions.

Additionally, DeepSeek Harness is currently in developer preview, and compatibility and interfaces may change. This plugin targets the 0.1.0-rc.6 npm line. Since the plugin will read local session files under the permissions of the current DSH process, you should check the source code, dependencies, and license before installing.

Conclusion

The value of dsh-plugin-claude-import is quite specific: it turns Claude Code’s local sessions into contexts that DSH can continue to use, and provides entry points for both the agent and the Web GUI. GitHub Repository: https://github.com/changhang155/dsh-plugin-claude-import. The verified data does not provide a directory page URL, so this article does not list a directory page link.