dsh-knj-session-management
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
Related Plugins
Memory layer for coding agents that indexes local session history and auto-recalls relevant context before edits, commands, and failures, with no manual search needed.
Traceable, searchable cross-session memory for AI agents that turns conversation knowledge into a typed knowledge graph and recalls relevant subgraphs instead of replaying full history, natively integrated with DeepSeek Harness.
Gives DSH AI cross-session long-term memory, to-do and skill management, plus multi-session orchestration, external AI delegation, and an infinite canvas that grows with you.
dsh-mnemon is a three-tier, pluggable, Agent-driven memory system for DeepSeek Harness, combining Runtime memory, Project Documents, and replaceable Memory Spaces with nine long-term providers.