AythyaCrispus/dsh-minimal-msys21

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 Analysis

核心用途是在 Windows 环境下为 DSH 提供可用的持久化 MSYS2/Git Bash 终端工具。适合在 Windows 上使用 DSH 且需要执行 Bash 命令的用户。

Package
dsh-minimal-msys2
Version
0.4.0
Last updated
Aug 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AythyaCrispus/dsh-minimal-msys2

使用

  1. danger-full-access 模式启动/切换会话(MSYS2 bash 与 Windows 受限令牌不兼容,这是硬限制):
    $env:DSH_PERMISSION_MODE = 'danger-full-access'
    dsh web
    
    或在 Web UI 的会话设置中把沙箱模式切到 danger-full-access。
  2. 新建会话,Agent 选择 Windows Minimal Mode(选择器里显示英文名)。
  3. 工具列表应为 bash + str_replace_editor

配置 bash 路径(GUI)

MSYS2 与 Git Bash 的安装路径不同,无需改配置文件:

  1. 打开 Web GUI 设置 → 插件配置 →「Windows 极简模式」(卡片标题跟随界面语言,中文界面显示「Windows 极简模式」,英文界面显示 "Windows Minimal Mode");
  2. bash 路径 输入框填写你的 bash.exe 绝对路径(如 C:/msys64/usr/bin/bash.exeC:/Program Files/Git/bin/bash.exe),点击 保存
  3. 该值写入 $DSH_HOME/.credentials.yamlDSH_MSYS2_BASH 条目(经凭据域持久化,绕开 rc.6 的 settings 白名单);后端启动 bash 时优先读取;点「清除」并保存可恢复默认值。

也可以直接设置环境变量 DSH_MSYS2_BASH(优先级高于凭据文件),或编辑 $DSH_HOME/.agent-presets/minimal-msys2/agent.cordis.ymlterminal-bash 行的 shellPath(优先级最低,作兜底默认)。