Anionex/dsh-smarter-edit
DSH Smarter Edit replaces the native edit tool with Codex-compatible freeform apply_patch: instead of reconstructing an exact old_string/new_string pair through JSON, the model expresses a code change as a contextual diff hunk, cutting exact-match edit failures, repeated-source tokens and structured-JSON overhead.
DSH Smarter Edit gives DeepSeek Harness a better file-editing tool. DSH's native edit(file_path, old_string, new_string) asks a coding model to reconstruct exact source strings and send both old and new code through structured JSON arguments, so an edit can fail when old_string differs in whitespace, indentation or characters even though the chosen code change was correct. Smarter Edit replaces edit with Codex-compatible freeform apply_patch: the model describes the change as a contextual diff hunk ( Begin Patch / Update File: / @@ with - and + lines) and lets patch hunks locate the change, removing the exact-string pair from the model-facing tool and cutting the repeated-source and structured-JSON overhead of the editor protocol.
Install
dsh plugin --profile desktop add @anionex/dsh-smarter-editCopied verbatim from the README's Install block. npm package @anionex/dsh-smarter-edit at 0.1.9 (registry check 2026-10-16; the registry repository field resolves back to this repo).
Compatibility
The plugin replaces DSH's native edit tool with a freeform apply_patch tool, so the model-facing surface changes but the rest of the tool set is untouched. The README is explicit that the maintainers will not publish a token-reduction percentage until controlled A/B tests produce one - the intended reduction comes from less repeated old source, less repeated unchanged source, less JSON escaping, and fewer retries after exact-match failures, not from a measured claim.
Details
- Repo: Anionex/dsh-smarter-edit
- Category: Coding & Development
- Stars: 2
- Version: GitHub repo Anionex/dsh-smarter-edit (2*); npm package @anionex/dsh-smarter-edit at 0.1.9 (registry check 2026-10-16; the registry repository field resolves back to this repo). TypeScript; ships CI, releases and npm types. English-targeted README with a README.zh.md Chinese translation.
Alternatives
030611/dsh-context-provenance · 030611/qiushi-dsh-evidence-audit · 0x3fffff/dsh-desktop-launcher