Introduction¶
When developing agents in DeepSeek Harness (DSH), conversations, workspaces, and attachments often already reside within DSH’s v4 Session system. If you have accumulated a large number of local sessions in other harnesses like omp, Claude Code, or Codex CLI, the common approach is to manually dig through JSONL files or rely on the source tools to keep running—neither of which allows for unified retrieval within DSH, nor enables you to continue writing history as an independent conversation.
Below is the community plugin dsh-session-import (maintainer: Lipraty, categorized as a memory capability on GitHub). It copies local sessions from supported coding agents into an independent DSH-formatted archive, then imports them one by one as new DSH conversations and workspaces. You can then continue working within DSH without relying on source runtime bridging or replaying historical tool calls.
What is this¶
dsh-session-import is a DSH bundle plugin installable via GitHub (MIT licensed, current package version 0.2.1, no separate npm package released yet). In one sentence: it discovers session archives from locally supported harnesses, syncs them into saveable DSH v4 conversion copies, and then imports them as native DSH conversations.
The plugin utilizes DSH’s built-in React/module loading, themes, and optional native UI components. The repository includes committed lib entries and handwritten Client bundles, so no further npm install or build steps are required on your machine for the plugin.
Core Features¶
The README summarizes the workflow into four steps, with “Sync” and “Import” deliberately separated:
- Discover: Scan session archives of locally supported harnesses.
- Sync: Write readable, valid history into a saved DSH v4 conversion copy.
- Import: Import that copy as a brand-new native DSH conversation and workspace.
- Subsequent work happens entirely within DSH, with no source runtime bridging or historical tool execution.
regarding boundaries, the documentation emphasizes:
- Sync only updates the conversion copy; it does not create, modify, replace, or archive existing DSH conversations, nor does it check existing conversation logs.
- Every Import generates a new conversation ID; repeated imports (including concurrent identical calls) will not reuse old conversations.
- Once the copy is saved, it can be imported even if the source harness archive is deleted; subsequent changes on the source side will not alter the already imported DSH conversation.
On the UI side (Import sidebar page): a harness list on the left, records on the right; searchable by title, directory, or session ID; a virtual list displays nearby rows and shows the total count at the bottom. After selecting a harness, you can Sync All (processes readable sources sequentially; a single failure can be reported and abort subsequent processing); each row’s Import creates a new conversation individually. During import, you can choose to omit reasoning or tool outputs in that conversation, and the saved full conversion copy will not be trimmed. If the original workspace directory does not exist, you can select a different target directory.
Currently listed integration sources (excerpt, subject to the README table):
| Harness | Scope Summary |
|---|---|
| omp | JSONL v3, selected root-to-leaf history, text/reasoning/tools/images and compaction projection; sibling branches, account pins, and source runtime state are not migrated. |
| Claude Code | Project JSONL UUID mainline, readable thinking/tools/results and embedded images; disk format is internal; preserved-message compaction re-chaining and recursive subagent import are not supported. |
| Codex CLI | Legacy rollout JSONL, canonical response stream, readable reasoning/tools and provenance (README is truncated after this row, details subject to repository). |
Environment & Compatibility¶
- Requires DeepSeek Harness with native v4 Session, Session Controller, workspace, attachment, and the client-module services used by this plugin.
- Current integration target is DSH
0.2.0-rc.2and its v4 persistence relationship rules; compatibility with other or unreleased runtime versions is not guaranteed. - DSH host requires Node.js 24+; SQLite adaptation uses built-in
node:sqlite, does not launch upstream CLIs, and does not run source database migrations.
Installation & Activation¶
In DSH, open Plugins → Add Plugin → Git repository and enter the version-pinned address:
https://github.com/Lipraty/dsh-session-import#v0.2.1
After installing and enabling the bundle, reload/restart only when DSH prompts. Open Import in the sidebar to use it; no manual profile insertion or separate building is needed. The package declares dsh.bundle.patch, distributes cordis.patch.yml with the package, which the Host loads from the same package; the browser module registration name is dsh-session-import.
If 0.2.0 fails to install: the initial version lacked the bundle declaration, so DSH might reject non-bundle packages; 0.2.1 fixes the declaration, includes the patch in the artifact, and aligns the Client module ID. Please retry using the pinned URL above to avoid using old cached revisions. If there are still manual omp-import or session-import entries in your profile, disable the old entries before enabling the bundle—their routes, tools, and panel keys conflict and cannot be loaded simultaneously (/omp-import/* route names are reserved for compatibility).
For development only, you can clone to plugins/dsh-session-import under the target profile and use manual insertion (do not enable alongside the managed bundle):
- insert:
- id: session-import
name: ./plugins/dsh-session-import/lib/index.js
Do not “fix” installation issues by deleting conversion copies, workspace registrations, or session logs; leave dependency installation and bundle enabling to DSH.
The plugin accesses local machine sessions and archive paths with the current DSH process permissions; please review the GitHub repository source code, MIT license, and THIRD_PARTY_NOTICES.md (third-party notices reserve independent rights descriptions and are not covered by the project’s MIT authorization) before installing.
Typical Usage¶
- After installation and activation, go to Import in the sidebar.
- Select the harness to process on the left (e.g., omp, Claude Code, or other sources with existing local archives).
- To refresh locally readable history, perform Sync All on the current harness; wait for sequential sync to complete and watch for single-item failure prompts.
- Use search in the right-hand list to locate the target session, click Import on that row; each operation creates a new DSH conversation.
- If only streamlined display is needed, omit reasoning or tool outputs in the import options; specify an alternative directory if the workspace does not exist.
- Open the new conversation in DSH to continue collaborating; imported conversations are not affected by subsequent Syncs of the source archive.
The documentation does not require executing sync or import for “install only” scenarios; when using a coding agent to assist with installation, the README provides a scoped prompt (install plugin only, no auto sync/import, no model connectivity requests, etc.), which can be copied from the “Install with an LLM” section of the repository README.
Use Cases & Notes¶
Suitable for: Users who have sessions stored in tools listed in the support list (like omp, Claude Code, Codex CLI) and want to continue them as independent conversations and workspaces within DSH, unify retrieval, and retain repeatable import conversion copies.
Notes:
- What is synced is a projection of “readable valid history,” not the full runtime state of the source tool; branches, account pins, and some compaction/subagent capabilities are explicitly out of scope.
- Import does not reuse old conversation IDs; repeated imports will result in multiple parallel conversations.
- The community directory SkillHub Plugin Page is an independent ecosystem site with no official affiliation to DeepSeek / High-Flyer; stars and categories are subject to display on each site (GitHub currently shows 2 stars, Category: Memory).
Conclusion¶
dsh-session-import separates “Discover → Convert to DSH v4 copy → Import as new conversation” into two controllable steps, allowing you to migrate existing coding-agent history into DSH workflows without switching harnesses. Please refer to the repository for instructions and version-pinned installation addresses.
- Community Directory: https://www.skillhub.cn/plugins/Lipraty/dsh-session-import
- GitHub: https://github.com/Lipraty/dsh-session-import