AythyaCrispus/dsh-minimal-msys2 ↗★ 1
dsh-minimal-msys2
Windows 极简模式 / Windows Minimal Mode: persistent bash + str_replace_editor dsh plugin — registers an agent preset, provides a working persistent-bash backend on Windows, and exposes a GUI-editable bash path in the plugin-settings section (persisted via the credentials domain).
AI 분석
核心用途是在 Windows 环境下为 DSH 提供可用的持久化 MSYS2/Git Bash 终端工具。适合在 Windows 上使用 DSH 且需要执行 Bash 命令的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AythyaCrispus/dsh-minimal-msys2使用
- 以 danger-full-access 模式启动/切换会话(MSYS2 bash 与 Windows 受限令牌不兼容,这是硬限制):
或在 Web UI 的会话设置中把沙箱模式切到 danger-full-access。$env:DSH_PERMISSION_MODE = 'danger-full-access' dsh web - 新建会话,Agent 选择 Windows Minimal Mode(选择器里显示英文名)。
- 工具列表应为
bash+str_replace_editor。
配置 bash 路径(GUI)
MSYS2 与 Git Bash 的安装路径不同,无需改配置文件:
- 打开 Web GUI 设置 → 插件配置 →「Windows 极简模式」(卡片标题跟随界面语言,中文界面显示「Windows 极简模式」,英文界面显示 "Windows Minimal Mode");
- 在 bash 路径 输入框填写你的
bash.exe绝对路径(如C:/msys64/usr/bin/bash.exe或C:/Program Files/Git/bin/bash.exe),点击 保存; - 该值写入
$DSH_HOME/.credentials.yaml的DSH_MSYS2_BASH条目(经凭据域持久化,绕开 rc.6 的 settings 白名单);后端启动 bash 时优先读取;点「清除」并保存可恢复默认值。
也可以直接设置环境变量 DSH_MSYS2_BASH(优先级高于凭据文件),或编辑 $DSH_HOME/.agent-presets/minimal-msys2/agent.cordis.yml 里 terminal-bash 行的 shellPath(优先级最低,作兜底默认)。