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:
- git_tool_status
Checks whether Git is available. - git_status_summary
Outputsstatus -sbresults with change counts. - git_diff_stat
Outputs only the--statformat 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).