dsh-patch-edit-plus
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
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.