AI Agent Hub
Back to plugins
🧠

dsh-session-doctor

Memory Updated 2026.09.05

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