Preface¶
When running agents long-term or connecting multiple workspaces in DeepSeek Harness (DSH), the sidebar accumulates a large number of historical sessions. DSH itself supports archiving and pinning sessions, but it does not provide an API for deleting sessions; if you only “hide” them in the UI, the session directories and projection caches on disk still occupy space. When you need to truly clear them from disk, and you want archived/pinned sessions to be centrally managed per workspace, you need a community plugin to fill this gap.
Below is dsh-session-curator maintained by Motues: it performs permanent file-level deletion on top of DSH’s existing archiving capabilities, and provides a centralized management interface for archives and sessions in the settings.
What Is This¶
dsh-session-curator is a DSH plugin positioned for session deletion and archive management. It is maintained by Motues, with source code and documentation available in the GitHub repository, and the community directory page at SkillHub: Motues/dsh-session-curator.
The plugin performs deletion operations on disk itself: after deletion, the session directory and its projection cache are removed from disk and are unrecoverable. If you may want to use the session again in the future, you should use DSH’s built-in Archive—archiving also hides it from the sidebar, and can be fully undone.
Core Features¶
All capabilities are derived from the feature descriptions in the plugin’s README, organized by entry point as follows.
| Entry Point | Function |
|---|---|
Session row ⋯ menu |
Delete session: permanently delete from disk after confirmation |
| Settings → Session manager | Two tabs archived / pinned, grouped by the session’s original workspace folder, with support for single-row and batch operations |
| Session manager → Settings | Basic options (default tab, grouping, whether to show archived in sidebar, row details, sorting), installed version, and upgrade prompts with specific commands when a newer version is available on npm |
| Confirmation dialog | Emphasizes permanent deletion, suggests using Archive instead, and requires checking “I cannot undo this” |
| Disk usage tab | Read-only statistics on total usage, as well as the largest / longest-unopened sessions, which can be archived in place |
Additional constraints (explicitly stated in the README):
- Deletion is permanent; it will not touch running sessions or the session currently in use.
- Content you want to keep should be archived, not deleted.
Installation and Activation¶
The installation command follows the repository README. The npm package name is dsh-session-curator (currently published version 0.3.1, see package.json).
Desktop profile:
dsh plugin --profile desktop add dsh-session-curator
Web profile:
dsh plugin --profile web add dsh-session-curator
To install from GitHub instead of npm:
dsh plugin --profile desktop add github:Motues/dsh-session-curator
Note: The above commands execute pnpm within the corresponding profile and write the package into dependencies and dsh.profile.bundles. The Host side needs to restart DSH to take effect; the Client side only needs to refresh the page. The published package has no additional dependencies, requires no build step, and can directly use the ESM under lib/ (lib/index.js for host, lib/client.js for the client bundle).
Environment requirements (package.json): Node >= 20; DSH version must satisfy the range declared in engines.dsh (>=0.2.0-rc.2 <0.2.2-0). License: MIT.
Typical Usage¶
-
Permanently delete a session that is no longer needed
In the sidebar, select Delete session from the⋯menu on the target session row, read the warnings (irreversible, suggests Archive first), check the confirmation item, and execute. The plugin removes the session directory and projection cache from disk. -
Batch organize archived or pinned sessions
Open Settings → Session manager, view the list under the archived or pinned tab grouped by original workspace folder, and handle single rows or use batch operations. -
Decide archiving based on usage and activity
In the Session manager’s Disk usage tab, view total usage and the “largest / longest-unopened” sessions, and archive selected items in place to avoid accidentally deleting histories that may still be useful. -
Adjust sidebar and list behavior
Enter the Session manager’s Settings to configure the default tab, grouping method, whether to show archived sessions in the sidebar, information displayed on rows, sorting, etc.; if a new version is available, the interface will provide upgrade command prompts consistent with the README.
Use Cases and Notes¶
Who it’s for: Developers who keep a large number of sessions in DSH long-term, need to truly free up disk space, or want to uniformly view and operate archived and pinned sessions by workspace folder.
Notes before use:
- The plugin reads and writes session-related files with the permissions of the current DSH process; before installation, it is recommended to read the source code and the MIT license to confirm that the behavior meets your security and compliance requirements.
- Deletion is unrecoverable; for sessions you are unsure whether you will still need, prefer Archive.
- The DSH ecosystem emphasizes “everything is a plugin”; community directories like SkillHub are independent sites with no official affiliation with DeepSeek/幻方. This article introduces a community plugin, not an official built-in feature.
Conclusion¶
dsh-session-curator fills the gap in DSH’s missing permanent session deletion capability and consolidates archiving, pinning, and disk usage views into the Session manager, making it suitable for scenarios where you need to actively clean up session directories while keeping archiving reversible. For further information, visit the SkillHub directory page and GitHub: Motues/dsh-session-curator.