dsh-tool-git: Structured Git Tools with Destructive Command Protection for DeepSeek Harness

dsh-tool-git is a Git tool plugin developed specifically for DeepSeek Harness (DSH), designed to address the risks of Shell injection and the difficulty of parsing outputs when executing Git commands through bare Bash. This plugin runs Git operations via a shell-free subprocess runner, avoiding the risk of model inputs being interpreted by the Shell, and parses outputs such as status, diff, and log into structured JSON for stable processing by agents. Its core capabilities cover common Git operations including status, diff, commit, and checkout, and it introduces a destructive command protection strategy. The destructivePolicy option is set to deny by default to reject dangerous operations.

Read More