AI Agent Hub
Back to plugins
dsh-better-edit preview

dsh-better-edit

Client Updated 2026.08.26

Run the following command in DeepSeek Harness:

dsh plugin install Rianico/dsh-better-edit

Paste the following prompt into your AI chat to install this plugin:

Install https://github.com/Rianico/dsh-better-edit as a DeepSeek Harness plugin to enable hash-anchored editing.

About this plugin

dsh-better-edit is designed for long, multi-step file-editing sessions in DeepSeek Harness. It addresses the failure modes of line-number or string-replacement editing: a single insertion can shift every later line number, models may have to repeat old code, and unverified ranges can silently land in the wrong place. Instead, it uses content hashes as line anchors, so edits are addressed by what the agent actually saw rather than by fragile positions.

The plugin provides hashline-style reading and editing: read returns each line with a hash anchor, edit targets hash ranges, and every range is checked against served rows before any write. Stale or unseen ranges are rejected and re-served with fresh anchors for retry, while ASCII-whitespace-insensitive anchors tolerate common formatters. With support for chained edits and atomic same-file batches, it is best suited for developers and coding agents doing structural refactors, repeated edits, or long sessions where an edit must not land on the wrong line; it offers less benefit for one-line touch-ups or brand-new files.

Screenshots

Use Cases

  • Making continuous edits to the same file in long sessions
  • Avoiding line-number drift after insertions
  • Applying atomic batches of edits to one file

Best For

  • Developers using DeepSeek Harness
  • Coding agents that need reliable file edits
  • Teams doing frequent structural refactors