Jinsight-gif/dsh-plugin-gitbash0

dsh-plugin-gitbash

Run commands on the Windows host's Git for Windows Bash from DeepSeek Harness. WSL-aware, auto-detects the git-bash install path, zero runtime dependencies.

AI 分析

核心用途是允许 Agent 在 Windows 环境下直接调用 Git Bash 执行终端命令。适合在 Windows 平台上开发、且需要 Bash 兼容环境执行脚本的用户。

パッケージ
dsh-plugin-gitbash
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/08/23

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jinsight-gif/dsh-plugin-gitbash

ドキュメント

README 全文を読む ↗

Configuration

Table row config for the bundle row (or your preset row):

KeyTypeDefaultMeaning
gitBashPathstringExplicit path to bash.exe. Trusted as-is, no detection.
autoDetectbooleantrueSearch well-known install locations when no explicit path is set.
timeoutMsnumber120000Default per-call timeout; a single call can override with its timeoutMs argument.
maxOutputCharsnumber65536Tail-truncate captured stdout/stderr to this many characters per stream (the full capture still exists in the collector/spill).

Resolution order: config.gitBashPathDSH_GITBASH_PATH env var → auto-detection (unless autoDetect: false). Self-healing: when no path resolves at mount time, every call re-runs the resolution — installing Git for Windows or mounting a drive takes effect without a DSH restart.

Auto-detection candidates:

  • Windows host: %ProgramFiles%\Git\bin\bash.exe, %ProgramFiles(x86)%\Git\bin\bash.exe, then bash via PATH.
  • WSL / POSIX: /mnt//Program Files/Git/bin/bash.exe and the (x86) variant (checks every mounted drive letter).

Example — explicit path as row config:

- id: tool-gitbash
  name: 'dsh-plugin-gitbash'
  config:
    gitBashPath: '/mnt/e/Program Files/Git/bin/bash.exe'

No time to edit config? Set the environment variable:

export DSH_GITBASH_PATH='/mnt/e/Program Files/Git/bin/bash.exe'