beihzb/dsh-envsel ↗★ 3

@beihaizb/dsh-envsel

提供多语言环境选择器与切换命令 适合需要在会话中动态切换 Python、R 或 WSL 环境的用户。

包名
@beihaizb/dsh-envsel
兼容性
待验证
Harness 依赖范围
^0.1.7-rc.1 || ^0.2.0-rc.1
Cordis 依赖范围
^4.0.1
版本
0.3.0
许可证
MIT
最近更新
2026年10月10日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:beihzb/dsh-envsel

Usage

/env command

/env                        show the current selection
/env python=mycondaenv    set the Python slot (conda name / R name / wsl:distro:name / custom:name)
/env r=R-latest            set the R slot
/env cli=base               set the CLI slot (PATH prefix)
/env python=                clear one slot
/env list [filter]          list all discoverable environments
/env add 
             remember an interpreter or install directory on this machine
/env unpin custom:    forget a pinned path
/env clear                  clear every slot
/env wsl                    rescan WSL distributions (Windows only)

session_env tool

The model can manage selections itself with action=list|get|set|pin|unpin.

Header dropdown

The Env button in the conversation header opens per-language dropdowns. The catalog is scanned lazily on first open (probing conda and WSL takes a few seconds). "Add path" pins any absolute interpreter or install path into the machine-local cache.

Configuration

The plugin works with no configuration. Optional config on the envsel row in your profile's cordis.patch.yml:

KeyDefaultMeaning
listTtlMs300000Catalog cache TTL in milliseconds.
condaCommandcondaConda executable name or absolute path.
standaloneRRoots[]Extra standalone-R roots scanned after the platform defaults.
wslEnabledtrueWhether WSL discovery is enabled (Windows only).
registerTooltrueWhether the session_env model tool is registered.
registerContexttrueWhether the selection is contributed to the per-turn runtime context (needs DSH 0.2.0-rc.1 or newer; a host without the binding renders nothing).
probeTimeoutMs20000Per-probe watchdog timeout in milliseconds.

Example: