AI Agent Hub
Back to plugins
🧠

dsh-knj-session-management

Memory Updated 2026.09.01

Run the following command in DeepSeek Harness:

dsh plugin install yangdongzhen590/dsh-knj-session-management

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

Run dsh plugin install yangdongzhen590/dsh-knj-session-management in the DeepSeek Harness terminal to install this plugin; the source is available at https://github.com/yangdongzhen590/dsh-knj-session-management .

About this plugin

DSH persistent sessions accumulate indefinitely. Over time session_projcache.json can balloon to several hundred megabytes, and every checkpoint write blocks synchronously for over a second, making session creation and switching noticeably sluggish. Disk scans, FTS indexes, and workspace indexes all degrade linearly with session count, yet the DSH host provides no API to delete or archive sessions. dsh-knj-session-management fills that gap: archive, restore, or permanently delete sessions with all three indexes automatically kept in sync; enforce a per-workspace retention policy that auto-archives the oldest non-running sessions beyond a configurable limit; and include a size-governance panel showing projcache size, per-workspace session counts, and archive statistics. Before archiving or deleting you can one-click copy the wiki-distill instruction to distill knowledge into your wiki first, so nothing of value is lost. If you use DSH daily and have hundreds or thousands of persistent sessions piling up across workspaces, if creating and switching sessions feels slower every month, or if the projcache file is eating through your disk, this plugin is built for you.

Use Cases

  • Persistent sessions accumulate and slow down creation and switching
  • session_projcache.json bloats to hundreds of MB and needs governance
  • Need per-workspace auto-cap that archives the oldest non-running sessions

Best For

  • Developers who use DSH daily and have large accumulations of persistent sessions
  • Users concerned about projcache size and disk footprint
  • Users who want to distill sessions into a wiki before cleanup