AI Agent Hub
Back to plugins
🖥️

dsh-patch-edit-plus

Client Updated 2026.09.16

Run the following command in DeepSeek Harness:

dsh plugin install drscrewdriver/dsh-patch-edit-plus

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install drscrewdriver/dsh-patch-edit-plus in your DeepSeek Harness terminal to install; the source code repo is https://github.com/drscrewdriver/dsh-patch-edit-plus .

About this plugin

When models need to edit files inside DeepSeek Harness, the native edit tool can be verbose for small changes in large files, and there is no atomic way to batch changes across many files. dsh-patch-edit-plus fills that gap with a single apply_patch tool that accepts git/unified diff by default and optional Codex apply_patch syntax. Every patch is verified against current file content first; if any hunk mismatches the entire patch is aborted with zero bytes written, eliminating the partial-state headaches of sequential edits.

The plugin handles file creation, multi-hunk updates, deletion, and rename operations. Writes follow DSH's official intent dance end-to-end, while delete and move run through a sandbox-aware shell. CRLF line endings and missing trailing newlines are preserved faithfully. On hunk failure the error carries file name, hunk index, expected-line preview with visible whitespace, and the actual file excerpt so the model can retry with full context. Name collisions with other apply_patch providers are resolved by automatic suffixing (apply_patch_1, _2, ...) so DSH never fails to start.

Built for developers who make frequent cross-file batch edits in large codebases, and for teams driving DSH sessions with GPT-family models that naturally prefer Codex patch syntax. The plugin registers exactly one tool, never overrides a native tool or global service, and removes every trace of itself on unload, leaving the existing workflow completely untouched.

Use Cases

  • Small edits in large files without echoing full context
  • Atomic batch changes spanning multiple files
  • Driving DSH sessions with GPT-family models via Codex patch syntax

Best For

  • Developers making frequent cross-file edits in large codebases
  • Teams extending DSH with patch-based file editing
  • Automation pipelines requiring sandboxed delete and rename operations