DSH 插件市场DeepSeek Harness 社区插件目录

dsh-better-edit

已验证 工具与能力 ★ 42 1.2.1

Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.

一句话定位

Hash-anchored read/edit/undo_last_edit tools for DeepSeek Harness (dsh). Every line gets a unique 3-char hash (A-Za-z0-9) that stays stable across edits; stale or ambiguous anchors are rejected, never fuzzy-matched. Undo persists across restarts.

安装方式

在 DSH 的 web profile 中执行下面的命令;装完刷新页面即可。

$ dsh plugin --profile web add dsh-better-edit@1.2.1

兼容的 DSH 版本

未声明

作者与热度

Rianico · ★ 42 · 更新于 2026-11-04

关于这个插件

dsh-better-edit High-precision, hash-anchored file editing for DeepSeek Harness (dsh). Replaces fragile line numbers and token-wasting code echoes with content-addressed line hashes — 0 silent miswrites, 0 token re-reads. English · 简体中文

Why You Need It • Core Pillars • Quick Start • Tools • Benchmark • How Anchors Work • Development What is dsh-better-edit? A high-precision file editing plugin for DeepSeek Harness (dsh) that replaces volatile line numbers and token-wasting code echoes with immutable, content-addressed 3-character line hashes (szJ│code). Core Philosophy: Local compute is free; the model's context window is the most precious resource. By shifting verification, snapshotting, and alignment to the host, dsh-better-edit slashes output tokens by 40–60%, auto-rebases external file drift (e.g., Prettier, Git), and eliminates silent miswrites without forcing full-file re-reads. Why You Need It The 3 Fatal Editing Traps of Autonomous Coding Agents

File editing is the #1 point of failure for autonomous agents. Traditional tools break down in three distinct ways: Core Pillars 1. 🪙 Token Economics (40–60% Context Savings) $O(R)$ Edit Payloads: The model emits only { "path": "...", "edits": [["a1b", "c3d", "..."]] }, never echoing existing code. Self-Serving Diffs: Every applied edit returns fresh anchors in the post-edit diff — zero re-read roundtrips to chain edits. Zero-Token Auto-Rebase: Non-conflicting exterior shifts resolve locally without agent intervention — 0 tokens, 0 retries. Atomic Multi-Item Batches: Apply up to 32 same-file edits in one tool call; overlapping spans abort atomically ([E_BATCH_ABORT]) before touching disk. 2. 🛡️ Resistance to External Writes (Drift & Concurrency) Auto-Formatter Immunity: Strips ASCII whitespace before hashing. Prettier, Black, and ESLint format-on-save passes never rotate anchors. Exterior Shift Auto-Rebase: External edits, git checkouts, or background processes outside the edit span rebase seamlessly without agent intervention. Fail-Closed Reject-and-Serve: Contested interior spans fail closed without disk corrupti

No config. Next session runs with hashline tools. Verify: dsh 0.2.0+ is supported. Registration uses agent/created, path resolution follows the session's live working directory (workingDirectory, with the session header as the pre-0.2.1 fallback), and tool-guidance order comes from systemPrompt.getSectionOrder. There is no peer range and no runtime version probing: compatibility comes from that stable surface plus optional-service fallbacks, so a composition that omits workingDirectory or agentPresets keeps working. See it work

read serves HASH│content — the hash _is_ the address:

edit by hashes — always lands where you meant:

Returns a diff with fresh anchors — next edit needs no rea

相似插件