dsh-wsl-git: Truncated Git Status and Diff Summary Plugin

Preface

When developing agents using DeepSeek Harness (DSH), context window management is critical. Directly loading the full git status or diff output into the context can easily cause token overflow or signal noise. The dsh-wsl-git plugin aims to solve this problem by providing lightweight Git summary information, enabling agents to quickly understand code change status.

Plugin Introduction

dsh-wsl-git is a DSH client plugin for WSL environments. It provides truncated git status and diff summaries to prevent giant diffs from flooding the context. This plugin is maintained by user 173787247 and is licensed under the MIT License.

Core Features

The plugin provides three core tools:

  1. git_tool_status
    Checks whether Git is available.
  2. git_status_summary
    Outputs status -sb results with change counts.
  3. git_diff_stat
    Outputs only the --stat format diff summary.

Installation

Install using the official command:

dsh plugin --profile web add github:173787247/dsh-wsl-git

For bulk linking, you can refer to the scripts in dsh-wsl-kit, although this plugin itself is not directly included in install.sh.

Configuration and Usage

The plugin supports the following configuration options: allowRoots, timeoutMs.

Note: This plugin does not provide commit / push functionality.

Typical invocation examples:
- git_tool_status
- git_status_summary
- git_diff_stat

Compatibility

Minimum requirement: DeepSeek Harness version ≥ 0.1.2.
Plugin version: 0.1.1.
This plugin is usually used together with the optional dsh-wsl-kit suite.

Notes

Run the plugin with the permissions of the current DSH process. Before installation, it is recommended to check the source code and license (MIT).

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

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

Xiaoye