Archive manager for DSH Web: list archived sessions in the Settings page and delete them for real, including their log, archive marker, and projection cache.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-archive-manager-plus
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:MS666666/dsh-archive-manager
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Delete DeepSeek Harness sessions from the session menu, or manage archived sessions in Settings. Deletion removes the session log and related records; archiving alone only hides the session.
English | 中文
Compatibility
Plugin 0.1.10 is compatible with DeepSeek Harness v0.2.2-rc.5. On November 30, 2026, all 20 repository tests passed on Windows using the official rc.5 components, with no skips.
The tests covered delete confirmation in the native session menu, stopping an active Agent turn, deleting plain and zstd logs, and cleaning up workspace records and the projection cache. After the host restarted, the deleted session stayed gone and the other session in the same workspace was still present. A separate test listed and restored an archived session and confirmed that it kept its workspace membership and its log on disk.
The manual desktop check covered v0.2.2-rc.1. On November 6, 2026, session deletion was confirmed with plugin 0.1.8, which has the same runtime code as 0.1.10. The plugin also retains the legacy menu fallback for v0.2.1-rc.5.
Features
- Delete session in the session row's
⋯menu, with confirmation before any change. - Settings → Archive Manager: list archived sessions with their title, creation time, and log availability; restore or permanently delete them.
- Stop running work and release the session's writer and in-memory state before deleting its log.
- Remove workspace membership and notify the native sidebar session feed.
- Keep persistent deletion receipts and clean up stale archive records or late cache writes that would otherwise bring deleted entries back.
- Require same-origin POST requests and validate session IDs before filesystem operations.

Installation
Add Plugin — recommended
Open DeepSeek Harness → Settings → Plugins → Add Plugin. Depending on the UI locale, plugin management may also be available from the sidebar.
Enter the npm package spec:
dsh-archive-manager-plus@0.1.10Complete installation, then fully quit Harness, including its tray process, and reopen it once to load both plugin halves.
To install the newest npm release later, enter dsh-archive-manager-plus or use the host's plugin update action. For a local build, enter the absolute path to dsh-archive-manager-plus-0.1.10.tgz, without surrounding quotes in the input field.
Install from source on Windows
Clone or download this repository, then run the script from its root:
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -DryRun
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1
For a custom Harness home:
.\install.ps1 -DSHHome "D:\path\to\dsh-home" -DryRun
.\install.ps1 -DSHHome "D:\path\to\dsh-home"
| Parameter | Behavior |
|---|---|
-ProfileDir <path> |
Explicit profile directory; takes priority over home detection. |
-DSHHome <path> |
Explicit home, then DSH_HOME, then ~/.dsh. |
-ProfileName <name> |
Select a profile; otherwise detect desktop first, then web. |
-DryRun |
Preview without changing files. |
-SkipCopy |
Update only the profile manifest; the plugin files must already be installed. |
The script copies the plugin files, registers its dependency and bundle, and verifies the profile manifest with Node. Manifest writes use UTF-8 without BOM. It keeps a manifest backup and restores that backup if final manifest verification fails; this does not provide rollback for deleted sessions.
Manual profile setup
If the host's plugin manager is unavailable, install into the intended profile directory:
cd "<profile-directory>"
npm install dsh-archive-manager-plus@0.1.10
Ensure that profile's package.json contains the dependency and bundle entry below. Merge them into the existing manifest; do not replace other dependencies or bundles.
{
"dependencies": {
"dsh-archive-manager-plus": "0.1.10"
},
"dsh": {
"profile": {
"bundles": ["dsh-archive-manager-plus"]
}
}
}
Save without a UTF-8 BOM, then fully quit and reopen Harness. Installing into an unrelated project directory does not activate a Harness plugin.
Usage
Direct deletion: session row → ⋯ → Delete session → confirm. Confirmation archives the target, stops its running work, releases it, and deletes its log and related records. Canceling the dialog makes no changes.
Archive management: open Settings → Archive Manager. Use Restore to unarchive a session without deleting its log, or Delete to remove it permanently after confirmation.
Deletion is irreversible. If loading, publication, or saving is still in progress, the plugin may refuse deletion and show an error. If a later step fails, the session may remain archived; retry or inspect it in Archive Manager. Existing deletion receipts apply to sessions deleted by versions that recorded them; a leftover entry from an older version may need to be deleted once more.
Data affected
Deletion releases the loaded Agent and session, closes the log writer, and removes:
- The session directory under
<DSH_HOME>/sessions/<encoded-workspace>/<session-id>/. - Its archive/pin markers and workspace membership through the live registry.
- Its current per-session projection-cache record and any legacy cache entry.
- Its cached host index entries, followed by a native sidebar removal notification.
The plugin records deleted IDs in <DSH_HOME>/storages/archive-manager-deleted.json to repair stale state or late projection-cache writes. It does not scan for and automatically delete unrelated session logs. Historical cost ledgers are not removed.
Do not include credentials, usernames, machine-specific paths, or private conversation content in public issues.
Development and verification
The commands below use the repository’s pinned v0.2.2-rc.1 components. The v0.2.2-rc.5 check used Node 24 and official rc.5 components in a separate test copy, with the registerFactory method added to the menu test’s mock slot service.
npm run setup:integration
npm test
npm run test:integration
The setup command installs locked test dependencies into .compat-runtime inside this repository. Tests use temporary data directories and an offline model adapter; they do not touch the user's Harness home or call paid models. Without these dependencies, the three official-component integration tests are explicitly skipped; a run with skipped tests is not the full release validation.
client/client.js is a handwritten browser module bundle; lib/ contains the host ESM modules. No build step is required. Restart the host after host-side changes.
Before publishing, run the complete tests and npm publish --dry-run. Publish the same version from package.json to npm and create the matching GitHub tag/release.
License
Links
More in this category
dsh-market/dsh-market★ 14117
Browse, search and install community plugins from inside DeepSeek Harness settings, with category filters, one-click updates, enable/disable, theme switching and configuration backup.
zhu1090093659/dsh-web#packages/dsh-plugin-manager★ 10735
Plugin manager tab in DSH Settings → Plugins: install from npm or git with progress, enable/disable switches effective at next startup, conflict reconciliation with undo, and one-click hand-off to a fix session.
LivXue/dsh-plugin-shop#dsh-plugin-shop★ 666
A browsable daily catalog of DeepSeek Harness plugins harvested from npm and GitHub: one-click install, enable/disable, update and uninstall, the reason dsh would refuse an install shown before you press it, prepurchase facts (engines.dsh, dependency count, bin names, install scripts), rollback and favorites.
kingOfSoySauce/dsh-skin-market★ 351
Native skin marketplace and lifecycle manager that discovers community skins, displays previews and compatibility status, and provides verified one-click or manual installation paths.
awesome-dsh-plugin/dsh-find-plugin★ 245
Find plugins without leaving the agent: search this curated registry by keyword or category, with ready-to-run install commands.
bradeGithub/DSH-Plugins-Marketplace★ 212
GitHub-topic-driven plugin & skill marketplace: a Settings page that browses the auto-collected registry (the whole dsh-plugin topic plus the skills index, CI-refreshed every 2 hours) with one-click install, type detection, install-script and host-shadow-dependency safety confirmations, env-key management, and the STANDARD.md recognition spec.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.