snowy-yang/dsh-shared-bash ↗★ 0
dsh-shared-bash
tmux-like shared persistent bash sessions for DeepSeek Harness: every agent in a profile can open, drive and read the same shells, keeping cwd, variables and background state between calls. 提供类tmux的持久化终端,保持环境变量和路径,适合需要AI执行复杂终端任务的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:snowy-yang/dsh-shared-bashREADME
Read the full README ↗Configuration
| Field | Default | Meaning |
|---|---|---|
bashPath | MSYS2 bash when installed, else bash from PATH | bash executable |
msystem | MSYS | MSYS, UCRT64, MINGW64 or CLANG64 |
login | true | Source the login environment (-l); off means --noprofile --norc and a bare PATH |
cwd | Host working directory | Default directory for new sessions |
commandTimeoutMs | 120000 | Default foreground wait for one command |
maxLines | 4000 | Retained output lines per session |
maxSessions | 16 | Concurrent sessions per profile |
env | {} | Extra environment variables for the shell |
Per-session cwd accepts POSIX-style paths that the MSYS2 installation owns (/tmp, /home/..., /c/Users/...) and translates them for the Host. shared_bash_open also enters that directory inside the shell itself: a login shell runs its profile scripts, and MSYS2's end in $HOME, so the spawn directory alone does not stick.