dsh-session-doctor
Run the following command in DeepSeek Harness:
dsh plugin install luoxin10086/dsh-session-doctor
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install luoxin10086/dsh-session-doctor in DeepSeek Harness to install the plugin. Source: https://github.com/luoxin10086/dsh-session-doctor
About this plugin
DSH session logs are the sole medium through which humans and the system exchange memory, yet a systemic gap exists: the write path never validates message shape, so a tool-result content written as a bare string produces no error until the next load, where it surfaces as a SessionPersistenceCorruptionError that makes the entire history unavailable. dsh-session-doctor plugs this write-without-validation, explode-at-load crack.
Three capabilities work together: scan validates every frame using the same rules as the DSH loader, reporting corrupted sessions with line numbers, seq, and cause; repair losslessly wraps confirmed string-content defects (backup, frame-level rewrite, zero-fail re-verification before commit); watch (v1.1) subscribes to live session events and alerts on violations the moment they are written, catching problems before the next load. It fixes only one confirmed defect, reports all others without touching them, and has zero runtime dependencies.
Who should use it: DSH users seeing history unavailable errors can run scan and repair to restore their sessions; power users worried about third-party plugins corrupting records can enable watch for real-time sentinels; developers auditing render-contract violations can run the bundled audit script.
Use Cases
- Quickly scan and losslessly repair corrupted session logs when GUI reports history unavailable
- Enable the real-time watch sentinel to catch third-party plugin write violations instantly
- Audit session data integrity after a DSH upgrade
Best For
- DSH daily users hitting session history load failures
- Power users managing multi-plugin environments and worried about data safety
- DSH plugin developers auditing render-contract compliance
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.