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 正確性。

閱讀全文