AI Agent Hub
Back to plugins
🧩

dsh-session-delete

admin-security Updated 2026.08.19

Run the following command in DeepSeek Harness:

dsh plugin install BakaCirno233/dsh-session-delete

Paste the following prompt into your AI chat to install this plugin:

In DeepSeek Harness, open the target profile's package.json (e.g. ~/.dsh/profiles/desktop/package.json), add the dsh-session-delete dependency and bundle declaration (plugin source: https://github.com/BakaCirno233/dsh-session-delete), then run pnpm install in the profile directory and restart the app to complete the installation.

About this plugin

DeepSeek Harness sessions pile up over time, yet there is no built-in screen to review or remove old ones. dsh-session-delete adds a Session Management page under Settings, where every session shows up with its live and running status, and you can permanently delete the ones you no longer need.

A delete is more than dropping a record: it removes the persisted log file, detaches the session reference from every workspace registry, and lets the SQLite FTS search index self-clean on the next query. Safety is baked in with a two-step confirmation dialog, a pre-delete check of the target, and a post-delete verification that the persisted list no longer contains the session. Active sessions—those opened during the current app run—are refused, because a live Agent may still rewrite their logs and an incomplete delete would leave orphaned state. After a restart those sessions become cold and can be removed normally.

If you want to keep your DSH session history lean, free up disk space, or make sure the search index stays accurate, this plugin is the scalpel you have been missing.

Use Cases

  • DSH has accumulated months of stale sessions and you need to bulk-clean them
  • Reclaim disk space used by obsolete persisted session logs under ~/.dsh/sessions/
  • Old sessions create noise in the FTS search index and degrade search quality

Best For

  • Long-term DSH users who want periodic maintenance of their session history
  • Disk-space-conscious developers looking to purge persisted session data
  • Operators who need a clean search index free from stale session noise