DeepSeek Harness 插件

dsh-file-changes

Per-turn file-change panel: lists created/modified files at the end of every answer, shows their diffs, and reveals them in the OS file manager(英文原文)

跳到安装方式

来源信息

GitHub 仓库
mixin-ai/dsh-file-changes
最近更新
2026年8月14日
分类
插件市场与管理
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/mixin-ai/dsh-file-changes
插件名:dsh-file-changes
作者:mixin-ai

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

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, Windows explorer /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 generic kind: 'edit' locations) into turn-scoped data published under the fileChanges key, and renders it through the chat view's conversation.chat.turnTail slot chain.

  • Code Mode (run_code) — nested dispatches carry no presentation views

on the wire, so the host half listens to tools/execute / tools/result for executions with a parent (Code Mode sub-calls), rebuilds change records from the write / edit / str_replace_editor arguments, and serves them over /api/file-changes/changes. The panel merges both sources, deduplicated by path.

  • RevealPOST /api/file-changes/reveal validates a JSON payload,

loopback origin, and an absolute existing path before handing it to the platform opener.

Structure

FileRole
lib/index.jsHost half: nested-dispatch tap + the two HTTP routes
lib/client.jsBrowser bundle: turn accumulator + panel/diff/reveal UI
cordis.patch.ymlBundle patch mounting the dual-half row
smoke.test.mjs / client.test.mjsHost 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