@ddv12138/dsh-hash-edit
Hash-anchored read/replace/undo for DeepSeek Harness (DSH), ported from pi-hashline-edit-pro. Every line gets a stable 3-char base-62 anchor; stale/ambiguous anchors are rejected, never fuzzy-matched; undo persists across restarts.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ddv12138/dsh-hash-edit说明文档
阅读完整 README ↗@ddv12138/dsh-hash-edit
Hash-anchored read / replace / undo for DeepSeek Harness (DSH) 为 DeepSeek Harness (DSH) 开发的哈希锚行读写 / 替换 / 撤销插件
Ported from pi-hashline-edit-pro · 移植自 pi-hashline-edit-pro
What it does · 它能做什么
Every line of a text file carries a stable 3-character base-62 anchor. Tools address lines by anchor instead of line number or raw text, so edits never corrupt the file: stale or ambiguous anchors are rejected — never fuzzy-matched. Undo persists across restarts.
每个文本文件的每一行都带有一个稳定、唯一的 3 位 base-62 锚点。工具通过锚点(而非行号或原文)定位行, 因此编辑绝不会损坏文件:过期或歧义锚点一律拒绝——绝不模糊匹配。撤销记录跨重启持久化。
Install · 安装
This is a DSH bundle —
an npm package that ships a cordis.patch.yml layer. A bundle is what you author and distribute; a user
installs it into a profile:
这是 DSH 的 bundle(插件包)——
一个携带 cordis.patch.yml 配置层的 npm 包。插件作者只发布 bundle;用户把它安装进一个 profile:
# from a local checkout 从本地检出安装
dsh plugin --profile demo add ./dsh-hash-edit
# from GitHub 从 GitHub 安装
dsh plugin --profile demo add github:ddv12138/dsh-hash-edit
# from npm 从 npm 安装
dsh plugin --profile demo add @ddv12138/dsh-hash-edit
Mounting the bundle's patch inserts the @ddv12138/dsh-hash-edit row, which takes over editing (see next section).
Because you install it per profile, it works from any preset / profile — this is how "usable from any
preset" is realized in DSH's model.
把该 bundle 的 patch 装载进 profile 后,会插入 插件行,从而编辑(见下节)。 由于是按 profile 安装,它能在 下工作——这正是 DSH 模型里“任何 preset 都能用”的实现方式。