ChatGPTClaudeGrok / X / CursorGemini

dsh-hashline-edittool: An Anchor-Based File Editing Plugin for DeepSeek Harness

hyperion2144/dsh-hashline-edittool

Tools & CapabilitiesVerified
Listed on 2026-08-22
Page last updated 2026-10-27

Hash-anchored line edit tools for DeepSeek Harness, enabling precise edits without echoing old code, reducing tokens and improving stability in long sessions.

dsh-hashline-edittool is an editing plugin built for DeepSeek Harness that replaces line numbers and old-code echo with variable-length Base62 content anchors, letting the model pinpoint and modify file lines by sending short anchors. Compared with traditional str_replace edits, it significantly reduces token consumption and failure rates, making it ideal for long sessions and structural edits. The plugin offers ins, del, and replace operations, supports chained edits, and verifies every edit precisely so wrong-line edits cannot silently land. Maintained by hyperion2144 under the MIT license.

How to Install

install
npmdsh plugin --profile web add dsh-hashline-edittool
Category
Tools & Capabilities
Platform
DSH Plugin
Author
hyperion2144
Distribution
Plugin

dsh-hashline-edittool Key Features

Hash anchor targetingNo old code echoFewer tokensPost-edit verificationChained edit support
Listed on dsh-plugin.org

dsh-hashline-edittool Repo Summary

What Does It Do?

dsh-hashline-edittool is a DSH plugin for DeepSeek Harness that provides line-anchored edit tools using variable-length Base62 content anchors instead of line numbers or old-code echo. It solves the high token cost and high failure rate of traditional str_replace edits, where models must re-type old code token-for-token. Its core capabilities include anchor-based editing, exact verification, and chained edit support. Maintained by hyperion2144 under the MIT license, last updated 2026-09.

Core Features

  • Anchor-based editing: each line gets a unique variable-length Base62 anchor (2 chars for the first 3,844 lines), edits target anchors instead of old text, reducing edit tokens.
  • Exact verification: every edit range is checked against what the model saw, so wrong-line edits cannot silently land; failures return fresh anchors.
  • Chained edits: post-edit diff rows carry new anchors, enabling consecutive edits without re-reading the file.
  • Flexible operations: supports ins, del, replace semantics; replace can omit anchor_end for single-line replacement, multi-line replacement requires explicit range.
  • Session-stable anchors: anchors remain stable within a session, edits above do not affect lower anchors.

How to Use This Plugin?

After enabling it in DSH, the read tool returns lines with anchors (default separator is colon), and the response starts with an ANCHOR:FILELINE header. To edit, specify anchor ranges and operation semantics via an edits array; for example, a replace operation can omit anchor_end for a single-line replace, while multi-line replace requires both anchors. This plugin is best for long sessions and structural edits, not for one-line touch-ups or new files.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: hyperion2144/dsh-hashline-edittool. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub
ChatGPTClaudeGrok / X / CursorGemini

DSH Plugin FAQ