dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DSH plugin: replace file-change approval prompts with a real diff review (line diffs, word highlights, disk-sourced context, one file per card)
A DeepSeek Harness (DSH) plugin: install it into a profile alongside your own plugins.
See what you approve. When the model asks permission to change a file, the native card shows the tool arguments: old_string and new_string as raw text, no file context, no line numbers. This plugin replaces that ask with a real diff review: red and green lines side by side, word-level highlights inside changed lines, surrounding file content with true line numbers, and exactly two buttons.
alternative · falls short the native approval card · raw tool arguments; you reconstruct the diff in your head, every ask reading the file yourself · you become the diff engine, and the model already read it once auto-approve and hope · no review at all
edit rendered as a real diff INSIDE the native approvalcard, through the card's own conversation.approval.detail seat: disk- anchored line numbers, a context window around the change, and word-level highlights (via dsh-diff-view)
pairs removals left with additions right, unified groups each change run as all removed lines then all added
write shows the new content as additions, merged against the currentfile when one exists; deletion commands (rm and friends) render a review notice so the command text gets read before allowing
package's host route; when the file cannot be read, the operands still render as an aligned diff with blank numbers, never lying numbers
the card says so instead of showing a diff that cannot apply
the same file that the model has already emitted joins one merged review. The card shows "N edits merged", the grid renders all changes merged against the disk copy (sequential anchors), and the native card's answer applies to the whole group. Later same-file asks auto-answer with the outcome the user already saw
card shows one tab per pending file, each with its own merged diff and its own Allow/Reject buttons; decide the files in any order. Nothing settles until every file has a decision, then the asks answer in schedule order with the decisions you made per file. The native card's bottom buttons step aside while the tabs own the ask
decisions automate that exact answer, never wider)
Requires a DeepSeek Harness checkout and a profile, here web. Clone the plugin into a plugins folder:
mkdir -p ~/dsh-plugins && cd ~/dsh-plugins
git clone https://github.com/joao-paulo-santos/dsh-approval-diff.git
# from the harness checkout
pnpm dsh plugin --profile web add ~/dsh-plugins/dsh-approval-diff
# verify the profile still composes
pnpm dsh --profile web --dump-configRestart the harness after installing: the host half loads at boot. The client half hot-reloads once installed.
edit, write, deletion-only bash).Everything else renders no detail and stays fully native.
composer takeover and its per-card buttons are retired: the native card owns the chrome and the buttons. Approvals arrive one at a time (the session queues them internally); arming replaces the old batch decision workflow for repeated edits to the same file.
*(none yet)*