Coprexist/dsh-session-recovery

Coprexist★ 1JavaScript最后同步: 2026-08-18

在 GitHub 打开

从原始磁盘恢复被删除/损坏的 dsh 会话记录与记忆库——DeepSeek Harness 实战验证的恢复工具集。Recover deleted or corrupted dsh session logs (session.jsonl.zstd) and memory (memory.db) from the raw disk — battle-tested recovery toolkit for DeepSeek Harness.

README 摘要

dsh-session-recovery Recover deleted/corrupted DeepSeek Harness sessions & memory from raw disk English · 中文 🛟 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. ✨ Features 🧠 Memory recovery Locate memory.db by its SQLite format 3 header, dump the window, rescue rows via SQLite's official .recover (skips corrupt pages, keeps readable data). 💬 Session recovery Scan disk for zstd frame magic 0xFD2FB528 , cluster frames by disk offset, split sessions at turn resets, rebuild official-format session.jsonl.zstd . 🔧 Automatic repair Renumber seq contiguously, deep-fix sourceEventSeqs / messageSeqs , normalize surfaceOp — the rebuilt log passes DSH's validation. 🔁 Resume repair Rebuilt 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. 🛡️ Safe by design Scripts only read the block device and write to a directo…

在 GitHub 查看完整 README →
工具/开发data-recoverydeepseek-harnessdshdsh-pluginsession-recoverysqlitezstd

分类