dsh-session-cleaner
Run the following command in DeepSeek Harness:
dsh plugin install new-256/dsh-session-cleaner
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install new-256/dsh-session-cleaner inside DeepSeek Harness to install this plugin; the source repository is at https://github.com/new-256/dsh-session-cleaner
About this plugin
The DSH web GUI ships without a native way to delete sessions, so cleaning up old conversations means hand-editing directories with real risk of mistakes and no safety net. dsh-session-cleaner drops a session trash bin straight into the sidebar, giving you archive, preview, restore, and permanent-delete controls without ever leaving the DSH interface.
The design centres on two-level reversible deletion: the first pass moves the physical session directory into .session-cleaner-trash and purges the workspace.json cache, letting you restore it at any time; only a second, explicit action triggers the irreversible permanent purge. A name-collision guard extracts the exact sessionId from the React Fiber tree instead of guessing by title, and the confirmation dialog side-by-side shows the first user instruction of every session sharing the same name so you can tell them apart. A conversation preview built on multi-frame zstd decompression plus JSONL extraction lets you inspect content before acting, filtering out system-injected messages to surface only real human prompts. On top of that, a scheduled auto-purge task with adjustable retention days and check intervals handles expired entries in the background, while path-traversal validation and active-session rejection keep every step auditable and safe to undo.
If you live in DSH, have accumulated a growing pile of historical sessions, and want your delete workflow to be both safe and recoverable, this plugin is built for that exact use case—it does one job well, blends seamlessly with DSH theming, and stays out of your way.
Use Cases
- Deleting DSH sessions with a two-level recoverable safety net to avoid accidental loss
- Distinguishing same-named sessions by previewing conversation content before confirming deletion
- Scheduling automatic purge of expired sessions to cut down manual directory maintenance
Best For
- DSH power users steadily accumulating a large backlog of sessions
- Small teams that require strict data-safety guarantees and rollback capability
- Independent developers looking to minimize manual session-directory upkeep
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.