dsh-chat-diff-summary-legacy: Git Change Summary Bar for Current Conversation Round

In the DSH Desktop 2.0.13 / DeepSeek Harness 0.1.5-rc.2 environment, developers often need to check git diff or git status in the terminal after a conversation to confirm which files the Agent modified. dsh-chat-diff-summary-legacy addresses this pain point by providing a real-time statistics bar directly above the input box, showing the net changes made to the repository during the current conversation turn.

What It Is

This is a Legacy plugin designed for DSH 0.1.5-rc.2 and compatible versions, maintained by kahomesl and licensed under MIT. It compares working tree snapshots to calculate lines added and removed at the end of the current conversation turn. It does not modify the actual repository and does not rely on persistent storage.

Core Features

  1. Real-time Statistics Display: The statistics bar updates with conversation progress, showing the total number of files involved in the current turn and net lines added/removed (e.g., “9 files changed +95 -13”).
  2. Expandable File List: Clicking the statistics bar expands to show the detailed list of file changes.
  3. Theme Adaptation: Colors directly inherit the host (DSH Desktop) theme tokens, supporting dark/light mode switching.
  4. Non-intrusive Statistics: Based on private snapshot comparison, it does not execute git add, commit, or checkout operations, keeping the original repository completely safe.

Installation and Activation

Install via the dsh plugin command. After installation, DSH Desktop must be restarted to take effect, as the plugin needs to load Node-side logic.

dsh plugin --profile <profile> add link:/path/to/dsh-chat-diff-summary-legacy

Usage

After installation and restarting the host process, a statistics bar appears above the input box during conversations.
* Collapsed State: Displays a concise numerical summary.
* Expanded State: Displays a detailed file list, with a width approximately 1/3 of the input box when expanded.

Notes

  • Legacy Version: This plugin does not use interfaces introduced in 0.1.6 and later, and is only applicable to the 0.1.5-rc.1 to 0.2.0 kernel series.
  • Statistics Scope: The scope covers the entire repository root directory; relative paths show only filenames.
  • Non-Git Workspaces: If the working directory is not a Git repository, the plugin creates a private repository in a temporary directory for statistics.
  • Non-persistent: Statistics data only exists in the current process memory and will be cleared after restarting the host process.

Summary

This plugin is suitable for developers who need to quickly confirm Agent code changes on the DSH 2.0.13 / 0.1.5 kernel series. It does not modify the code repository, requires no additional configuration, and directly resolves the information gap of “what was changed.”

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

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

Xiaoye