Rianico/dsh-better-edit
Rianico★ 3TypeScript最后同步: 2026-08-15
Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh) — dsh port of pi-hashline-edit-lsz
README 摘要
dsh-better-edit Hash-anchored read / edit / batch edit / undo last edit tools for DeepSeek Harness ( dsh ). Every line of a file gets a unique 3-character hash, and you edit by hash. No line numbers, no fuzzy matching, no edits landing on the wrong line. This is a dsh port of pi-hashline-edit-lsz (itself a self-maintained fork of pi-hashline-edit / pi-hashline-edit-pro by RimuruW and Yugimob). The hashline core is ported byte-for-byte; the tool layer is rewritten on dsh's plugin API. What you get - Read with anchors. Every line comes back as HASH│content . The hash is the line's address. - Edit by hash. edit targets a range of hashes ( remove from / remove to ), so edits always land on the lines you meant. - Anchors that stay put. Edit one part of a file and the hashes of the rest stay the same. Read once, keep editing. - Fresh anchors, automatically. After every write you get the new anchors (auto-read). After every edit you get the diff with the new hashes. - Undo when you need it. The last edit on a file can be reverted, even after a restart. - Safe writes. Permissions, line endings, BOMs, symlinks, and hard links survive every edit (writes go through ctx.fs , honoring sandboxed…
在 GitHub 查看完整 README →