dsh-better-edit:用内容哈希锚定 DSH 的文件读写与编辑
dsh-better-edit 是 Rianico 维护的 DeepSeek Harness 客户端插件,用每行 3 字符内容哈希替代行号与 str_replace,提供 read、edit、undo_last_edit。编辑只传起止哈希与新文本,写入前校验模型已读范围,过期行拒绝并回传新锚点。npm 0.4.0,MIT 许可。安装:npx @deepseek-ai/dsh plugin --profile web add dsh-better-edit。适合长会话结构性编辑;单行改动收益有限。基准报告相对 str_replace 约省 31% 输出 token,12 次编辑语料 23/23 正确性。
阅读全文