@beihaizb/dsh-envsel
Session environment selector for DeepSeek Harness: per-language conda / standalone R / WSL / custom-path slots behind a /env command, the session_env tool, DSH_ENV_* shell facts, and a conversation-header dropdown. Installs with dsh plugin add. 适合需在多语言环境中切换解释器的用户;通过 /env 命令与头部下拉操作。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:beihzb/dsh-envselUsage
/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:
| Key | Default | Meaning |
|---|---|---|
listTtlMs | 300000 | Catalog cache TTL in milliseconds. |
condaCommand | conda | Conda executable name or absolute path. |
standaloneRRoots | [] | Extra standalone-R roots scanned after the platform defaults. |
wslEnabled | true | Whether WSL discovery is enabled (Windows only). |
registerTool | true | Whether the session_env model tool is registered. |
probeTimeoutMs | 20000 | Per-probe watchdog timeout in milliseconds. |
Example: