Evidence snapshot reviewed Sep 16, 2026GitHub checked Aug 21, 2026
Evidence-verifiedPlugin BundleCoding & ReviewWeb Profile

DSH Diff Approval

Review pending DeepSeek Harness edits as diffs, then keep or revert files, blocks, or selected line ranges.

At a glance

What it does

Review pending DeepSeek Harness edits as diffs, then keep or revert files, blocks, or selected line ranges.

Use cases
Coding & ReviewCode ReviewGit WorkflowsUI
Works with
Deepseek HarnessGitSvnPerforce
Compatibility

Web Profile
Cordis >=4.0.1; React ^18.2.0; Harness version not declared in supplied evidence

Trust & status

Evidence-verified
Checked Sep 12, 2026, 1:55 PM UTC

Code-evidenced contributions

What it adds to DSH

Web UIPending changes review panel

Adds a sidebar panel to review tracked agent edits as file or block diffs and keep or revert them.

Mechanism evidence

Before you choose it

DSH Diff Approval tracks successful edit, write, and str_replace_editor mutations and collects them in a sidebar review panel. Review syntax-highlighted file diffs, decide on individual blocks or entire files, undo decisions, and optionally import local Git, SVN, or Perforce workspace changes.

Best for

DeepSeek Harness web users who want a deliberate approval step before accepting agent-made workspace edits.

Common tasks

  • Review all tracked agent edits before keeping them.
  • Keep or revert a specific change block, selected line range, or entire file.
  • Import existing local version-control changes when the pending list is empty.
  • Copy diff line references into the composer while reviewing a change.

Permissions and data

Works with local workspace changes and stores pending-review state locally per workspace.

Permissions
  • Tracks successful DSH edit, write, and str_replace_editor mutations.
  • Can write reverted file content; reverting a newly created file deletes it.
  • Can open a reviewed file in its default app or reveal it in the system file manager.
  • Uses the deployment shell executor for read-only Git, SVN, or Perforce import commands.
Data handling
  • Stores pending state at `<dshHome>/diff-approval/workspaces/<workspaceId>.json`.
  • A session without a workspace keeps entries only in memory.
Credentials
  • No credential requirement is declared in the supplied evidence.

Limitations

  • Automatic tracking covers only edit, write, and str_replace_editor mutations.
  • Deletions made outside those tools are only sensed for files already being tracked.
  • VCS import requires the relevant Git, SVN, or Perforce CLI on PATH.
  • Including untracked files in an import is off by default and can be slow for large workspaces.

What DSHub checked

  • The immutable source commit, package structure, and bundle patch were verified.
  • The manifest declares a DSH web client bundle and Cordis/React peer dependencies.
  • The README documents the DSH installation command and review workflow.

What DSHub did not check

  • Installation, build, tests, and runtime behavior were not executed.
  • The npm tarball contents were not audited.
  • Compatibility with a particular DeepSeek Harness version was not established.

Pinned install

Install DSH Diff Approval

This plugin bundle does not have a DSH Plugin install action. Use its source documentation for the delivery method.

Visit the source project

Maintainer source

Project README

View at commit 8f0aac3
Maintainer-authored contentCaptured from README.md on Sep 12, 2026. The text and repository-relative media are fixed to commit 8f0aac37a046 with content hash 48315439409d; provider-hosted badges may update independently. README commands are upstream documentation; the DSHub copy action above is the verified, version-pinned install.

dsh-diff-approval

English | 中文

npm version CI

A DeepSeek Harness (DSH) plugin for pending-change review: it automatically tracks every successful edit, write, and editor (str_replace_editor) mutation, folds them into a single pending list in the sidebar where each file's diff can be reviewed and kept/reverted — and it can also import the workspace's version-control repository's local changes (Git / SVN / Perforce) in one click.

Pending changes panel

The panel also collapses its file list into a floating card and expands to fullscreen:

Collapsed file list Fullscreen
Collapsed file list Fullscreen

For Markdown files, the source-line diff can also be shown as a rendered before/after preview:

Markdown preview

✨ Features

  • Diff view: syntax-highlighted whole-file diff with +/− counts, an overview ruler on the scrollbar showing where changes sit, and an in-file search (Ctrl+F, step with F3 / Shift+F3) that highlights matched words. Rows are virtualized, so huge files stay smooth.
  • Block navigation & decisions: jump between change blocks with Ctrl+↑/↓ (or the previous/next buttons) — the focused block flashes, navigation is anchored to the scroll position and wraps at the top/bottom. Hover a block to Keep or Revert just that block from a small actions frame that also shows its position (e.g. "2/5"); after a single-block decision, focus advances to the next block. The lead rows left above the jumped-to block are configurable in settings.
  • Selection frame: drag to select a range of lines and a frame appears to Keep / Revert exactly that range.
  • Per-file and bulk decisions: the files in the file list can be kept / reverted one at a time, or Keep all / Revert all from its footer.
  • Resolved files stay listed: once every change in a file has been kept/reverted, the entry remains in the list and the panel asks whether to remove it or keep it for later.
  • Undo / Redo: every keep, revert, and import is undoable with Ctrl+Z / Ctrl+Shift+Z (rebindable in Shortcuts; Ctrl+Y remains an alias), active while the panel is open — text inputs keep their own editing.
  • Quick summon & file cycling: Ctrl+D (configurable in settings) toggles the review panel from anywhere and Esc closes it; Ctrl+Tab / Ctrl+Shift+Tab cycle through the pending files.
  • Line references: select text in the diff — the status bar shows its (file:line) / (file:start-end) reference; click it (or press Ctrl+L) to copy, and with the setting on it auto-pastes into the composer and focuses it. References in the composer and queued messages are auto-aligned when the referenced file changes: surviving lines re-map to their new range, and a fully-removed line becomes (file:LINE_MISSING).
  • Highlight language: auto-detected from the file extension, or overridden from a dropdown.
  • Auto-wrap: a "Wrap lines" toggle beside the language selector wraps long lines for that language (CJK breaks between characters, Latin words stay whole), remembered per language.
  • Side-by-side split view: an opt-in two-column diff (left "before" | right "current"), line-aligned with per-side horizontal scrolling and a shared vertical scrollbar. Toggle it from the toolbar or in settings (default: single-column unified view). In split view, changed blocks are aligned by content similarity and changed lines show intra-line word diffs — whole words for Latin text, per-character for CJK.
  • Markdown preview: for Markdown files, toggle between the source-line diff and a rendered before/after preview (Preview / Source). The preview content max width is configurable.
  • Customizable appearance: from the "Diff view" settings group, adjust the diff's code font size (%), line height (px), and the added / removed line colors, with a live preview.
  • External changes: files already in the pending list are monitored — if one is later modified outside the reviewed edits (another tool, an editor), the panel adopts the new content and flags the divergence.
  • Open / Reveal: while reviewing a file's diff, open it in its default app or reveal it in the system file manager with one click.
  • Import workspace changes: when the list is empty, click the button to import the workspace's local changes from Git / SVN / Perforce — modified, deleted, and (opt-in) untracked files. The VCS root is found by walking up from the workspace, so a workspace inside a subdirectory works too.
  • Settings: a "Diff Approval" section in DeepSeek Harness settings, grouped into Diff view (code font size, line height, added / removed colors) and Shortcuts (rebind the panel's keyboard chords) plus preferences for auto-paste on copy, whether untracked files are included when importing, the diff's tab width (2 / 4 / 8 spaces), the side-by-side split view, the block-jump lead rows, the Markdown preview default and width, and the quick-summon chord.
  • Persistence: pending state is stored per workspace at <dshHome>/diff-approval/workspaces/<workspaceId>.json and survives restarts — unhandled changes are still there when you come back, even in a fresh session.

📦 Install

If dsh is on your PATH:

dsh plugin --profile web add dsh-diff-approval

Or, if you run the harness through npx (e.g. npx @deepseek-ai/dsh web):

npx @deepseek-ai/dsh plugin --profile web add dsh-diff-approval

or manually: add the package to your profile's package.json dependencies and insert this row into the profile's cordis.patch.yml:

- insert:
    - id: diff-approval
      name: dsh-diff-approval
      # Optional: relocate durable pending state (defaults to
      # <dshHome>/diff-approval/workspaces).
      # config:
      #   storageDir: ~/dsh-pending

Then restart dsh web.

🚀 Usage

  1. Work with the agent as usual — successful edit / write / editor (str_replace_editor) calls are recorded automatically.
  2. Click the Pending changes action at the sidebar footer, review each file's diff, and Keep / Revert.
  3. When the list is empty, Import workspace changes pulls in the workspace's local Git/SVN/Perforce changes.

📝 Notes

  • Only tracked mutations (edit, write, and str_replace_editor editor calls) are recorded automatically. Deletions made outside these tools (e.g. shell rm) are sensed only for tracked files: the entry turns "File is gone" and its Revert restores the file.
  • The VCS import runs read-only Git/SVN/Perforce commands through the deployment's shell executor, so the respective CLI must be on PATH. Importing untracked files (default off) scans the whole workspace, which can be slow on large trees.
  • For a newly-created file, the whole-file revert action reads Delete and removes the file.
  • Reverting a file writes it back with its current line endings (LF / CRLF) preserved.
  • Sessions with no workspace keep their entries memory-only; corrupt persistence files are rejected and can be deleted to reset.
  • The sidebar footer entry stacks vertically with other plugins' footer actions and defers to the dedicated dsh-footer-order plugin when it is present.

🛠 Development

corepack pnpm install
pnpm run typecheck   # tsc over both faces
pnpm run build       # emits lib/index.js and lib/client.js
pnpm test

Operate deliberately

Install and manage

Prerequisites and target Profile

Target Web Profile

Delivery Dsh Bundle Git — 9087/dsh-diff-approval#8f0aac37a0465cde6cda580521ca30636228dc84

Verify, update, and remove

Show lifecycle commands
Verify
dsh plugin --profile web list

Compatibility and access

DeepSeek Harness web bundle; requires Cordis and React peers Cordis >=4.0.1; React ^18.2.0; Harness version not declared in supplied evidence

Review compatibility evidence

Risk facts

Workspace File Changes

Reverting a new file deletes it; reverting a file writes its preserved line endings back to disk.

Evidence
Local Persistence

Pending-review state is stored per workspace under the DSH home directory.

Evidence
Vcs Cli Access

Workspace import invokes read-only Git, SVN, or Perforce commands through the deployment shell executor.

Evidence
Evidence and editorial reviewManifest, Bundle patch, distribution and freshness

Immutable evidence

Review status and source activity

AI reviewed

MIT-licensed plugin. Use it where users understand that Revert can write files and can delete newly created files.

AI reviewed Sep 12, 2026, 1:56 PM UTCGitHub facts last checked Sep 12, 2026, 1:56 PM UTC

No material source change has been recorded since this evidence baseline.

Next step

Follow the Plugin installation workflow

Subscribe to material changes for DSH Diff Approval