dsh-session-optimizer: Replacing JSONL with SQLite for More Controllable DSH Session Pagination and Resource Usage

dsh-session-optimizer, maintained by imuyue, is a client plugin for DeepSeek Harness that replaces the official compressed JSONL session storage with a one-session-per-database SQLite approach, preserving the session header contract while coexisting with the original directory. The plugin offers a Web read-only console, an import/export migration CLI, and hybrid routing. The README demonstrates notable latency improvements in pagination and header loading under long-session benchmarks, along with approximately 39% file size reduction. Installation requires running `npm install` in the profile directory and applying patches to disable `session-persistence`, enable `session-persistence-sqlite`, and configure `config.root`. It is suited for local users who work with long conversations. Before installing, verify that Node >= 24.9, DSH >= 0.2.2-rc.1, and process permissions are in order. Licensed under MIT.

Read More