Rianico/dsh-better-edit
Hash-anchored read / edit / batch_edit / undo_last_edit tools: every line gets a unique 3-character content hash, edits target hashes instead of line numbers, and served-state verification rejects stale ranges with fresh anchors.
A better edit tool for DeepSeek Harness, powered by hash-anchored positioning instead of line numbers or string replacement — fewer tokens and more context space for real work. Anchors are derived from file content hashes, so edits stay correct as the file changes and the model never needs to count lines or guess at byte offsets. The tool battery is verified against a 23/23 correctness suite, and the README documents how anchors work and how the tools compare with the built-in edit path.
Install
dsh plugin --profile web add dsh-better-editnpm package dsh-better-edit 0.4.1 (registry-verified 2026-08-28): dsh plugin --profile web add dsh-better-edit, or from GitHub npx @deepseek-ai/dsh plugin --profile web add github:Rianico/dsh-better-edit, or from a local checkout. No config — the profile's next session runs with the hashline tools installed.
Compatibility
DeepSeek Harness web profile (hash-anchored edit tools replace the stock edit surface).
Details
- Repo: Rianico/dsh-better-edit
- Category: Tools & Capabilities
- Stars: 19
- Version: npm dsh-better-edit 0.4.1 (registry-verified 2026-08-28)
- Last push: 2026-08-27
- First seen: 2026-08-14
Recent updates
hash-anchored file edits; no line numbers / string replacement; 23/23 correctness battery; fewer tokens per edit.
FAQ
- How does hashline positioning work?
- Edits target anchors derived from file content hashes rather than line numbers or string replacement, so they stay correct as the file changes.
- Is it verified?
- The README documents a 23/23 correctness battery comparing hashline edits against the stock edit tool.
- What is the token benefit?
- Hash-anchored edits are more compact, leaving more context space for the actual work in the conversation.
Alternatives
Nwflower/dsh-file-claim · dongsheng123132/dsh-cost · TonyDua/dsh-web-search-exa