dsh-gitbash-preset: A Git Bash Preset That Makes DeepSeek Harness Minimal Mode Usable on Windows
liceses/dsh-gitbash-preset
A DSH plugin that installs the Minimal (Git Bash) agent preset, mapping bash calls to Git for Windows' bash so the minimal mode works on Windows.
dsh-gitbash-preset is a plugin for DeepSeek Harness that maps the bash calls in the built-in minimal mode to Git for Windows' bash (MSYS), solving the issue where the minimal mode is unusable on Windows due to PTY platform limitations and missing shell. The plugin provides an installable preset variant that keeps the same minimal persona and str_replace_editor dual-tool surface, while using sandbox-aware gating to ensure it does not bypass security boundaries. Features like automatic bash path detection, idempotent installation, and a new shell per invocation let Windows users use DSH's minimal mode smoothly.
How to Install
dsh plugin --profile web add @icelily/dsh-gitbash-preset- Category
- Development & Operations
- Platform
- DSH Plugin
- Author
- liceses
- Distribution
- Plugin
dsh-gitbash-preset Key Features
dsh-gitbash-preset Repo Summary
What Does It Do?
dsh-gitbash-preset is a DSH plugin for DeepSeek Harness that maps the bash calls in the built-in minimal mode to Git for Windows' bash (MSYS), making the minimal mode actually usable on Windows. It solves two layers of problems that prevent DSH's minimal mode from working on Windows: PTY platform limitations and missing shell. The plugin delivers an installable preset variant that keeps the same minimal persona and str_replace_editor dual-tool surface, while using sandbox-aware gating to ensure it does not bypass security boundaries.
Core Features
- Idempotent installation: copies the bundled preset to the user preset root on startup, skips if it already exists, and can be forced to overwrite with a force flag.
- Automatic bash detection: checks GIT_BASH environment variable, common install directories, bash.exe in PATH, and finally falls back to bash, without hardcoding paths.
- Sandbox-aware gating: commands are only executed under a full-access policy; when restricted, it provides clear upgrade guidance and does not bypass the sandbox.
- Minimal unchanged: fixed persona, str_replace_editor, no context compression, consistent with the original minimal mode.
- New shell per invocation: since PTY persistent sessions are unavailable on Windows, each bash command runs in a new shell, not preserving cd/export state.
How to Use This Plugin?
After enabling the plugin in DSH and restarting, create a new session in the web interface and select "Minimal Mode (Git Bash)". To enable bash, you can either switch the session sandbox to full access so all bash calls go through git bash directly, or keep workspace-write and let the model upgrade permissions once after the first failure, following the prompt. The plugin also offers configuration options such as shellPath, timeoutMs, and maxOutputBytes that can be adjusted in the preset configuration.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: liceses/dsh-gitbash-preset. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
