dsh-file-changes: View AI-Modified Files with Line-by-Line Explanations

Introduction

DeepSeek Harness (DSH) displays what the AI says during a conversation, but to see which files were actually modified and what specific changes were made, you often need to switch to your editor. dsh-file-changes adds a File changes tab to the DSH right sidebar, listing every file modified in each turn of the current session. Changes are presented in a unified diff format and can be reviewed at any time. When you select a piece of code, the plugin provides a plain-text explanation without modifying your files or the conversation.

Plugin Positioning

dsh-file-changes is a client-side plugin for DeepSeek Harness, maintained by LokiBendi. It solves the problem of: when an AI agent modifies multiple files during a session, how to continuously track changes and get on-demand code explanations without leaving DSH.

Core Features

File Changes & Ordering

  • Files modified in each turn are sorted in reverse chronological order, with the most recent first.
  • Each file displays a unified diff with both old and new line numbers.
  • Files are automatically categorized by type: Code, Vault (e.g., Obsidian note directories), Scratch (tmp, cache/scratch), and Generated (dist, node_modules, lock files, etc.).
  • Changes generated by scripts are also detected and tagged as script.
  • On initial load, noisy files are collapsed by default.

Code Explanation

  • Select code within a diff and click Explain this to view an explanation in the tab.
  • After selecting code, you can request a line-by-line explanation with a brief annotation beneath each line (up to 80 lines).
  • You can type a custom question after selecting code, and the plugin will answer specifically about that region.
  • Previous explanations remain viewable even after the session ends.

Session Summaries

  • Explain turn: Generates a summary of an entire turn’s modifications, covering what changed, the scope of impact, and the order to review.
  • Explain mode (/explain on): Once enabled, a summary annotation is automatically appended at the end of each code-change session.

Opening & Browsing

  • Click a file name to open its diff.
  • Click the Open button to open the file in the default application (the button label adapts, e.g., “Open in Visual Studio Code”).
  • Right-click on a file row or a diff line to open the DSH file menu: sidebar preview, floating panel, show in folder, other applications, and copy path.

Permissions & Privacy

  • AI explanations only run when explicitly triggered by the user; they never fire automatically.
  • You can set a daily token cap and see an estimated cost before initiating an explanation.
  • A Never send to AI list is configurable (e.g., .env, *.pem, *.key, *secret*, etc.). Matching files will never be sent to the model.

Installation & Enablement

Requirements

DeepSeek Harness 0.2.2-rc.2 or later (desktop app or dsh web). Having git in your PATH is optional; if not configured, script change detection will be disabled.

Install from GitHub

  1. Open Plugins from the DSH left sidebar.
  2. Select Add plugin.
  3. Enter github:LokiBendi-Dev/dsh-file-changes and install.
  4. Refresh the DSH page (Ctrl+R / Cmd+R).
  5. Select File changes from the + menu in the right sidebar.

To update, open the plugin’s page in the Plugins section and install the new version using the same method.

Local Development Install

git clone https://github.com/LokiBendi-Dev/dsh-file-changes.git

Then, in DSH, ask the agent to run: Install the DSH bundle at \link:/absolute/path/dsh-file-changes`. Once the link is enabled, the plugin uses your local folder directly. Rungit pull` to update; disable and re-enable the plugin to reload after installing.

Typical Usage

  • Open the + → File changes panel in the right sidebar and continue conversing with DSH.
  • Files modified in each turn appear at the top of the list.
  • Click a file to view its diff; the right sidebar updates automatically.
  • Select one or more lines in the diff and click Explain this to get an explanation.
  • Type a question after selecting code to get a targeted answer.
  • Click Open to open the file in your default editor.
  • Use the search box to find content across all diffs, notes, and summaries.

Use Cases & Notes

Ideal for developers who need to continuously track the scope of AI modifications and review or understand generated code. The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license (MIT) before installing.

In Summary

dsh-file-changes provides continuously accessible file change diffs and on-demand explanations in the DSH right sidebar, helping you complete code review and comprehension without leaving DSH. For more details, visit the plugin directory page: https://www.skillhub.cn/plugins/LokiBendi-Dev/dsh-file-changes; source repository: https://github.com/LokiBendi-Dev/dsh-file-changes.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye