Jyleaves/dsh-win-bash-fix
Jyleaves★ 0JavaScriptLast synced: 2026-08-15
Windows Git Bash fix for DeepSeek Harness (dsh): MSYS sandbox conflict + terminal inspector, with the minimal-win collective-thinking preset (we/let's chain)
README excerpt
dsh-win-bash-fix 让 DeepSeek Harness (dsh) 在 Windows 上的 Git Bash 真正可用,并附带两套"健康思维链"预设( minimal-win / anchored-win )。 - 修复 :Windows 上 bash 工具 100% 启动失败的问题( PTY shell exited during startup / terminal inspection is unsupported on platform win32 ) - 预设 :persona 强制英文集体思维(few-shot 正反例 + 团队框架)——思维链稳定为 we / let's - 升级不丢 :纯运行时补丁(cordis 插件),不修改 dsh 安装文件 Overview 解决什么问题 :DeepSeek Harness 在 Windows 上使用 bash 工具(官方 minimal 预设等)时,bash 每次调用都失败: 症状 报错 bash 每次调用即失败 Error: PTY shell exited during startup 终端创建被拒绝 subprocess-local: terminal inspection is unsupported on platform win32 模型被迫绕路、反复重试,思维链大量挣扎型 let me (社区俗称"降智") — 适合谁 :在 Windows 上使用 dsh、希望 bash 工具真正可用、思维链保持健康( we / let's )的用户。 根因(三层,全部在 Windows 上) 1. 进程检查器未实现 win32 : dsh-subprocess-local 的 createProcessInspector() 只实现 Linux/macOS,win32 直接 throw ——每次 spawn 终端都炸。 2. MSYS 环境缺失 :node-pty 直接拉起 Git Bash 时没有 MSYSTEM / CHERE INVOKING / MSYS2 PATH TYPE 等环境变量,bash 无法以交互模式启动。 3. 🔑 核心根因——沙箱与 MSYS 冲突 :dsh 的 Windows 文件沙箱( dsh-sandbox-windows-acl )用 restricted token(受限令牌) 包一层再执行命令;而 MSYS2 运行时需要创建带用户 SID 的共享内存映射( CreateFileMapping ),被受限令牌拒绝( Win32 error 5 (ACCESS DENIED) )→ bash 启动即崩溃 。 为什么"思维链 let me"之前被认为是玄学 社区把 let me 视为"降智"标记,但真正的原因是: bash 工具在 Windows 上从未…
View full README on GitHub →Category
A public gallery of animated pets for Codex, Claude Code, DeepSeek Harness, Hermes, OpenCode, Gemini CLI, and more.
★ 3,820
hyhmrright/brooks-lintAI code reviews grounded in 12 classic engineering books — decay risk diagnostics with book citations, severity labels, and 6 analysis modes including full-sweep auto-fix
★ 1,338
ccch1mneyyy/dsh-TUI解决DSH 官方尚无终端 TUI 痛点的补位之作,献给偏爱cli的各位极客:Claude Code 风格全屏交互终端插件——像素鲸鱼顶栏、实时工作状态行、思考流式展开、双击 Esc 回滚、上下文进度条 + TPS 仪表。npm 一键安装。
★ 1,141