dsh-better-edit: Anchoring DSH File Read/Write and Editing with Content Hash
dsh-better-edit is a client-side plugin for DeepSeek Harness, maintained by Rianico. It replaces line numbers and str_replace with content-based hashing (3 characters per line), providing read, edit, and undo_last_edit functionalities. Editing transmits only the start/end hashes and new text, with pre-write validation of the model's read range; expired lines are rejected and new anchors are returned. Available on npm as version 0.4.0 under the MIT license. Installation: npx @deepseek-ai/dsh plugin --profile web add dsh-better-edit. Suitable for structural edits in long conversations, with limited benefits for single-line changes. Benchmark reports indicate approximately 31% output token savings relative to str_replace, with 23/23 correctness achieved on a 12-edit corpus.
Read More