dsh plugins中文
← Back to popular plugin directory

DSH Session Recovery

Coprexist/dsh-session-recovery · productivity

After rm -rf /.dsh or file corruption, dsh conversation logs (session.jsonl.zstd) and memory (memory.db) can usually be recovered straight from the raw block device — this repo is a battle-tested manual plus the scripts that made it work.

★ 2GitHub stars
0Forks
2026-08-25Last updated
JavaScriptLanguage
MITLicense

Key features

  • Memory recoveryLocate memory.db by its SQLite format 3 header, dump the window, rescue rows via SQLite's official .recover (skips corrupt pages, keeps readable data).
  • Recover deleted/corrupted DeepSeek Harness sessions & memory from raw disk
  • Session recoveryScan disk for zstd frame magic 0xFD2FB528, cluster frames by disk offset, split sessions at turn resets, rebuild official-format session.jsonl.zstd.
  • Automatic repairRenumber seq contiguously, deep-fix sourceEventSeqs/messageSeqs, normalize surfaceOp — the rebuilt log passes DSH's validation.
  • Resume repairRebuilt sessions can fail at resume (invalid persisted inbox splice, Messages with role 'tool' must be a response to tool_calls) — repair-session.js (or the /session-repair web command) replays DSH's inbox/surface/wire rules and fixes the file.

Install command

dsh plugin --profile web add github:Coprexist/dsh-session-recovery
View GitHub repository ↗Back to popular plugin directory