dsh-agent-session-import: Bring Third-Party Agent Chats into DeepSeek Harness
howtomakeaname/dsh-agent-session-import
Import local conversation histories from Cursor, Codex, Claude Code, ZCode and Kimi into DeepSeek Harness sessions, with a DSH plugin sidebar panel for grouped selection and two import modes.
dsh-agent-session-import is a DSH plugin that converts local conversation histories from coding agents such as Codex, Claude Code, Cursor IDE, ZCode, and Kimi into DeepSeek Harness sessions. It solves the problem of old chats being stranded across tools after switching to DSH: open Import Sessions in the sidebar, tick conversations grouped by project, choose Faithful or Resume-safe mode, and the history lands in the matching workspace. The plugin only reads original data, has zero runtime dependencies, and keeps imported records in a mapping file under the home directory.
How to Install
dsh plugin --profile web add github:howtomakeaname/dsh-agent-session-importReplace --profile with the profile name you actually run (see ls ~/.dsh/profiles/): usually web in the browser UI, desktop or desktop-NNN in the desktop app.
- Category
- Sessions & Messages
- Platform
- DSH Plugin
- Author
- howtomakeaname
- Distribution
- Plugin
dsh-agent-session-import Key Features
dsh-agent-session-import Repo Summary
What Does It Do?
It is a DSH plugin for DeepSeek Harness that imports local conversation histories from third-party coding agents and turns them into DSH sessions. It solves the problem of old chats being stranded across different tools after switching to DSH, letting you pick and import them right from the DSH sidebar. The host side only reads each agent's local data while the browser side renders an import panel, with zero runtime dependencies and no build step required. It is maintained by howtomakeaname under the MIT license.
Core Features
- Multi-source scanning: reads local data from Codex, Claude Code, Cursor IDE, ZCode, and Kimi, covering their jsonl, sqlite, and vscdb stores.
- Grouped session list: the Import Sessions panel groups conversations by project folder and shows title, update time, message count, and Imported/Archived badges, with search, scope switching, and group-level select-all.
- Two import modes: Faithful keeps thinking and tool calls as structured cards, while Resume-safe converts the same content to plain text and strips tool/thinking wire structures so any model can safely continue the chat.
- Progress and retry: a modal shows overall progress, the current item, and per-item results, failed items can be retried individually, and the list refreshes when the import finishes.
- Source note injection: the first user message of each imported session carries a note telling the model which agent the history came from and that historical tool names differ from current DSH tools.
- Extensible providers: adding a source only requires implementing the status/list/load contract and registering it, so agents like Aider or Continue can be plugged in following the docs.
How to Use This Plugin?
After enabling it in DSH, an Import Sessions entry appears in the sidebar. Open it, pick a source on the left, expand a project group and tick the conversations to import (or use Select unimported to grab all new ones), choose Faithful or Resume-safe mode, then click Import. The progress modal reports each result, and finished sessions land in the matching workspace group and show up in the sidebar list. Imported records are kept in a session-import mapping file under the DSH home directory, and re-imported conversations display a badge; the plugin only reads original data and makes no network requests, and deleting that mapping file merely resets the imported markers without removing any session.
How to Troubleshoot This Plugin?
- The sidebar entry does not appear after import: on desktop the hot composition usually takes effect within seconds; if not, restart DSH.
- Continuing a chat in Faithful mode is rejected by the model service: the model API may validate foreign tool_use and thinking entries in history, so switch to Resume-safe mode for stable continuation.
- Some conversation content is missing: Codex does not persist full reasoning chains in plaintext and only keeps a visible summary locally; Kimi supports only Agent / Kimi Code sessions since regular chats live on the server; ZCode's schema is bound to 0.16.x.
- Content is truncated or individual lines are lost: tool results over 20,000 characters and thinking over 12,000 characters are truncated and annotated, very large histories are read page by page, and corrupted lines are skipped and counted in the stats.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: howtomakeaname/dsh-agent-session-import. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
DSH Plugin FAQ
