How to use dsh-better-edit
Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh) — dsh port of pi-hashline-edit-lsz
This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.
This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.
Quick start
Hash-anchored read/edit/batch_edit/undo_last_edit tools for DeepSeek Harness (dsh) — dsh port of pi-hashline-edit-lsz
— source: plugins.ai_summary
Install & verify
dsh plugin --profile web add dsh-better-edit
Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.
— source: plugins.install
Key points
- szJ │ console.log("world");
editis one uniform payload:{ "path": path, "edits": [[from, to, replacement], …] }—pathhoisted, arity byedits.length;- replacement text is emitted once, and the old text is never repeated in the call.
- Session-keyed — sub-agent serves never validate the main session's edits and vice versa.
- Drift notices — served territory outside the range that changed on disk is reported once per episode, not as a warning.
— source: plugin_wiki.readme_en (fallback readme_raw)
Pitfalls
Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.
— source: general rule