dsh-better-chat-history: DeepSeek Harness Session I/O Optimization Plugin
dsh-better-chat-history is a session I/O optimization plugin for DeepSeek Harness (dsh), maintained by echo-xianyu and following the MIT license. Based on the philosophy of "everything is a plugin," this plugin optimizes chat history loading through read-path caching and write merging. It requires no modification of the DSH core and is compatible with dsh version 0.1.0-rc.6 or higher. Its core features include a three-level read-path cache: implementing LRU caching and concurrent de-duplication for `inspect`; utilizing direct memory slicing when `readFrom` is hit to avoid disk I/O; and enabling short-lived caching for `list` operations to reduce full disk scans. The plugin also features a built-in session warmer that preloads active sessions in the background. By listening to events for precise cache invalidation, it ensures no errors occur under read-only cache semantics.
Read More