deepseek-harness-hashline
Run the following command in DeepSeek Harness:
dsh plugin install magian1127/deepseek-harness-hashline
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install magian1127/deepseek-harness-hashline in the DeepSeek Harness terminal to install the hashline anchored file-editing plugin; source at https://github.com/magian1127/deepseek-harness-hashline
About this plugin
When a model edits the same file across multiple turns, line-number drift, mixed CRLF and LF endings, and invisible whitespace changes can silently break pure-text matching. The built-in read / edit tools struggle in multi-round, multi-hunk, atomicity-sensitive scenarios: a misremembered line number edits the wrong line, and a single whitespace mismatch fails the match entirely.
Hashline upgrades read results to a combined LINE:HASH anchor (line number plus short SHA-256 prefix), binding each edit to the exact line content the model most recently read rather than a mutable line number. Core capabilities include three anchored edit operations (set_line, replace_lines, insert_after), atomic batch writes where all anchors are validated first and overlapping edits are rejected upfront, file-version CAS to guard against concurrent overwrites, automatic recovery of malformed parameter shapes, UTF-8 BOM and mixed-EOL text fidelity, and native DSH read-block and diff-card result rendering. Enabling the replace-built-in-read-write toggle switches the agent-facing read / edit to strict anchored mode with seamless behavioral compatibility.
Ideal for developers driving model-based repeated edits of source code, configuration, or documentation within DeepSeek Harness, especially in multi-turn agent workflows, batch multi-hunk modifications, or headless and CI pipelines. The plugin is still experimental; interfaces may change, so validate thoroughly in an isolated environment before adopting in production.
Use Cases
- Line-number drift causes misaligned edits during multi-turn model file modifications
- Safe batch modification of multiple locations in one file within a single call
- Reliability of agent-driven source code edits in headless CI pipelines
Best For
- Developers driving repeated model-based source code edits in DeepSeek Harness
- Agent workflow builders requiring multi-round multi-hunk atomic file modifications
- Engineering teams running model editing tasks in headless or CI pipelines
Related Plugins
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.
An armor-breaking plugin for DeepSeek: rewrites instruction priority, expands refusal-blocked phrases, persists across sessions, and shows a green active indicator.