dsh-file-changes
Manifest validDeepSeek Harness web plugin: per-turn file-change panel with diff viewing and filesystem reveal
dsh-file-changes
A DeepSeek Harness Web plugin that shows a file-change panel at the end of every answer. When a turn creates or modifies files, the panel lists each one under the closing message with three actions:
- Open — click the file name to open it with the OS default application;
- View diff — a modal renders the turn's actual applied changes (whole-file content for new files) using the harness DiffBlock primitive;
- Reveal — locate and select the file in the OS file manager
(macOS
open -R, Windowsexplorer /select,, desktop Linux opens the containing directory). The action appears only on loopback access with a native opener available.
The panel complements the built-in "Produced" row: it adds created/modified badges, per-file diffs, and per-file filesystem reveal.
Install
# from GitHub
dsh plugin --profile web add git+https://github.com/mixin-ai/dsh-file-changes
# from a local checkout
dsh plugin --profile web add link:/path/to/dsh-file-changes
Restart dsh web, then refresh the browser page.
How it works
- Native mode — the client half registers a conversation definition (like
@deepseek-ai/dsh-client-ui-deliverables) that accumulates successful mutation tool calls from their presentation views (card: 'diff'hunks, or generickind: 'edit'locations) into turn-scoped data published under thefileChangeskey, and renders it through the chat view'sconversation.chat.turnTailslot chain. - Code Mode (
run_code) — nested dispatches carry no presentation views on the wire, so the host half listens totools/execute/tools/resultfor executions with aparent(Code Mode sub-calls), rebuilds change records from thewrite/edit/str_replace_editorarguments, and serves them over/api/file-changes/changes. The panel merges both sources, deduplicated by path. - Reveal —
POST /api/file-changes/revealvalidates a JSON payload, loopback origin, and an absolute existing path before handing it to the platform opener.
Structure
| File | Role |
|---|---|
lib/index.js | Host half: nested-dispatch tap + the two HTTP routes |
lib/client.js | Browser bundle: turn accumulator + panel/diff/reveal UI |
cordis.patch.yml | Bundle patch mounting the dual-half row |
smoke.test.mjs / client.test.mjs | Host and client logic tests |
Run the tests with:
node smoke.test.mjs && node client.test.mjs
Limitations
- Files created indirectly by terminal commands (e.g.
bash) are not detected — the same vocabulary limit as the official produced-files row. - Host-side Code Mode records live in memory (2-hour / 2000-per-session ring); a server restart clears them.
- The reveal endpoint trusts loopback same-origin JSON requests only.
License
MIT
Comments
Loading…
Similar plugins
by jwilson411
DeepSeek Harness plugin: append-only JSONL of filesystem touches (path, op, sha256 before/after) with no file contents
★ 0
MIT
JavaScript
Sep 1, 2026
dsh plugin --profile web add dsh-mutation-receiptby chzisnull
DeepSeek Harness plugin: search files by name or content, customizable shortcuts, and in-app text editing
★ 2
↓ 603/wk
MIT
JavaScript
Nov 5, 2026
dsh plugin --profile web add dsh-file-finderby ghbhiee
File browser, preview, and web terminal panel for DeepSeek Harness — session-docked workbench plugin
★ 0
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-plugin-workbenchby houlain
DeepSeek Harness plugin: workspace file browser + code viewer + session change diff + per-hunk partial revert (Trae-style). Windows verified only; Linux/macOS untested — use with caution.
★ 1
MIT
TypeScript
Nov 3, 2026
dsh plugin --profile web add dsh-workspace-studioby dkjsiogu
DeepSeek Harness plugin: browse host files/folders in the Web composer and insert absolute paths
★ 0
MIT
TypeScript
Aug 15, 2026
dsh plugin --profile web add dsh-path-browserby new-Beginner
Codex-like diff review plugin for DeepSeek Harness Web: interactive side-by-side diffs, compact floating dock, and turn-scoped deliverable change tracking.
★ 0
MIT
TypeScript
Sep 14, 2026
dsh plugin --profile web add dsh-diff-review-likecodex