dsh-better-edit
基于哈希锚定的 read / edit / batch_edit / undo_last_edit 工具:每行分配唯一的 3 字符内容哈希,编辑按哈希而非行号定位;对已提供状态逐行校验,过期范围会被拒绝并回传新锚点。
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.
怎么安装
dsh plugin add dsh-better-edit 简介
Edit by content address — not by line numbers, not by string replacement. Fewer tokens. More attention for real work. Zero misapplied edits.</strong> --- *"The harness — not the model — is the bottleneck."* — Can Bölük, *The Harness Problem* Most edit tools ask the model to echo the old code **token-for-token** before it can change anything — and that's exactly where agents fail: 46–51% patch-format failure rates for several models with replace-style edits. **dsh-better-edit** goes deeper. Every line of a file gets a unique 3-character content hash, and edits target hashes. The old text is nev…
推荐参考
信息
- 协议
- MIT
- 语言
- TypeScript
- GitHub 星标
- 32
- 月下载
- 4.6K
- 最近更新
- 2026-09-22
- 创建于
- 2026-08-14
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- dsh, dsh-plugin, edit, hashline, hashline-edit, oh-my-pi, pi, tools