Introduction¶
When a DeepSeek Harness (DSH) Session leaves the current browser environment, it is difficult to continue working with it on another machine. Existing approaches either rely on local file exports or require manually copying logs and attachments; profile bundles cannot be carried over at all. Reproducing a complete session history and plugin state in a clean environment demands a large amount of manual work.
The dsh-export-center plugin provides batch export and restore capabilities: after selecting a Session, it generates an archive through the official api/session.export interface, including logs, sub-agent sessions, and all attachments; upon restore, it recreates the Session on the target machine, preserving original timestamps, rebuilding the sub-agent hierarchy, and saving attachments by content-addressed ID. Profile bundles can also be exported as a slim manifest and restored on another machine.
What It Is¶
dsh-export-center is a DeepSeek Harness plugin developed by maintainer liren1120. It packages DSH Sessions and profile bundles into portable archive containers, supporting cross-machine migration.
Core Features¶
Session Archive & Restore¶
- Session selection: select individually or by date range.
- Archive content: read through the official
api/session.exportinterface, including the standardsession.v4.jsonllog, sub-agent logs, and all referenced attachments. - Restore: after importing the container on the target machine, the Host creates a new Session for each log, preserving original creation times and event times; attachments are re-saved by content-addressed ID; the sub-agent hierarchy is rebuilt; the root Session is mounted to the specified Workspace.
- Localization: file names, the archive README, and the manifest
aboutfield follow the current UI language; Session content is not translated.
Profile Bundle Migration¶
- Export: export installed profile bundles as a slim manifest (
name,version,spec,sourceKind,enabled). - Restore: after importing the manifest, the panel displays the exact specifications to be installed; for bundles that already exist but are disabled, they can be enabled directly.
Encrypted Export¶
- Optional password: enter a password during export to generate an AES-GCM-256 encrypted
.dshbakpackage instead of a plain ZIP. - Encryption parameters: PBKDF2-SHA-256, 210000 iterations, 16-byte random salt, 12-byte random IV, file header
DSHENC1. - Security guarantees: the password must be entered twice and can be revealed for verification; upon import, decryption is checked first — if the password is wrong, nothing is uploaded; the password is unrecoverable.
Incremental Export¶
- New/changed: only exports Sessions that have never been exported on this machine, or Sessions modified since the last successful export.
- State persistence: export records are stored on the Host side; clearing browser storage or switching browsers does not reset them.
Duplicate Protection¶
- Skip by default: on import, archives already restored on the current machine are skipped by default.
- Force overwrite: a “copy a duplicate anyway” option is provided for cases where a duplicate restore is genuinely needed.
Pre-Import Preview¶
- Dry-run: before executing an archive import, the Host first presents an execution plan listing the Sessions to be created. No data is written until you confirm.
Migration Report¶
- After import completes, a dialog appears showing the list of successful and failed restores. Supports copying a summary and saving as JSON; the panel retains a “last import” entry for easy re-viewing.
Forked Sessions Support¶
- Seed source marking: if an exported Session is an
isSeededseed source, its flag and the exact inheritance cut are preserved; after restore, it retains its forked status.
Installation & Activation¶
Install via Discover¶
- Add the index URL in DSH’s Discover:
https://raw.giteeusercontent.com/lirenmelodic-resonance/dsh-export-center/raw/master/market/index.json
- Find “Export center” in the list and install it.
Install via Repository¶
After checking out the repository, run:
dsh plugin --profile <name> add <absolute path to this directory>
- Enable the
dsh-export-center-pluginbundle on the Plugins page, or add it to the profile’sdsh.profile.bundlesconfiguration. - DSH must be restarted: the Host loads it at startup; without a restart, the panel will show “Host not loaded”.
Directory Installation Constraints¶
- The installation directory path must be pure ASCII.
- After installation, the directory cannot be moved; the profile records that path as a link.
Typical Usage¶
Batch Export Sessions¶
- Open the Export center panel in DSH.
- Select the Sessions to export; filter by date range if needed.
- Click Export and choose whether to encrypt.
- Download the generated ZIP or
.dshbakarchive file.
Restore on Another Machine¶
- Copy the archive file to the target machine.
- Select Import in the Export center panel on the target machine.
- Choose the archive file and enter the password (if encrypted).
- Review the preview plan, then confirm to execute the restore.
- Check the migration report to verify the restore results.
Migrate Profile Bundles¶
- Export the profile bundle manifest on the source machine.
- Import the manifest on the target machine.
- The panel lists the bundles to be installed; enable the ones you need.
Use Cases & Notes¶
Suitable for scenarios requiring cross-machine migration of Session history and plugin environments, such as:
- Migrating a development environment to a new machine.
- Synchronizing Session state across multiple machines.
- Backing up important sessions for future restoration.
Notes:
- The plugin runs with the current DSH process privileges.
- It is recommended to review the source code and license before installation.
- A plain ZIP export contains all session messages and attachments — keep it secure.
- Imported archives are untrusted input: their text becomes readable session history, and their profile bundle manifests can request installations. Only import archives from trusted sources, and read the manifest spec list before importing.
- Imported Sessions and profile bundles are logically equivalent to ones created manually; assess the risk of subsequent operations yourself.
- Only npm names and two public Git repositories are applied automatically when importing a manifest; other sources require an additional trust checkbox.
Conclusion¶
dsh-export-center addresses the pain point of DeepSeek Harness environment migration. Through a standardized archive format and Host-side restore logic, it makes cross-machine migration of Sessions and profile bundles reproducible. For more details, refer to the plugin directory page and the GitHub repository.