liceses/dsh-gitbash-preset121

@icelily/dsh-gitbash-preset

DeepSeek Harness plugin: installs the 'minimal-gitbash' agent preset — the Windows variant of the shipped minimal preset that routes the bash tool through Git for Windows bash (MSYS), with automatic shell discovery and sandbox-aware gating.

AI 分析

该插件适合在 Windows 环境下使用 DSH 且需要运行 Bash 工具的用户。它能自动探测 Git Bash 路径并提供沙箱权限控制,是 Windows 开发者实现本地脚本执行的必备预设。

パッケージ
@icelily/dsh-gitbash-preset
バージョン
0.1.2
ライセンス
MIT
最終更新
2026/08/16

インストール

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

ドキュメント

README 全文を読む ↗

使用

  1. Web 界面新建会话,选择 极简模式 (Git Bash)
  2. 二选一启用 bash:
    • 把会话沙箱切到完全访问,之后所有 bash 调用直接走 git bash;
    • 或保持 workspace-write,让模型在第一次调用失败后按提示用 sandbox_permissions: "danger-full-access" + justification 单次升级(走正常审批流程)。

配置

预设配置agent-presets/minimal-gitbash/agent.cordis.ymlgitbash-executor):

字段默认说明
shellPath自动探测显式指定时优先(如 'C:\\Program Files\\Git\\bin\\bash.exe'
timeoutMs120000单次命令默认超时(上限 maxTimeoutMs
maxTimeoutMs600000超时上限
maxOutputBytes64000单流保留字节数(溢出写入 spill 文件)
graceMs3000终止进程的 SIGTERM→SIGKILL 宽限

插件配置cordis.patch.yml 插入行):

字段默认说明
forcefalse预设已存在时是否用包内文件覆盖(保留用户额外文件)