AI Agent Hub
Back to plugins
🖥️

dsh-session-cleaner

Client Updated 2026.09.09

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