dsh-workspace-envrc
Run the following command in DeepSeek Harness:
dsh plugin install TTTPOB/dsh-workspace-envrc
Paste the following prompt into your AI chat to install this plugin:
Run the install command in DeepSeek Harness to enable this plugin; the source repository is https://github.com/TTTPOB/dsh-workspace-envrc.
About this plugin
In DSH, when an Agent runs a Bash command or spawns a local stdio MCP process, the environment is flat. It neither discovers .envrc files in the working directory nor inherits the variable isolation that direnv has already configured. dsh-workspace-envrc fills exactly that gap: it delegates .envrc discovery, evaluation, hash authorisation, and allow/deny decisions entirely to the system-installed direnv binary. The plugin does not parse .envrc, does not maintain an authorisation database, and does not mutate the Harness process.env. Its only job is a reversible method decorator around the existing DSH seams.
Two integration paths carry the logic. First, when the initiating Agent resolves to a canonical workspace through scope ancestry, both foreground and background Bash executions freeze the direnv-determined environment at the moment the child process starts; workdir, timeout, and sandbox policy remain exactly as the caller set them. Second, local stdio MCP lines mapped to the same workspace receive the same wrapping, while global, HTTP, foreign-scope, or malformed lines pass through untouched. Neither path uses shell: true to assemble command strings, and on fiber dispose the descriptors are restored in reverse order; a failed MCP install rolls back the already-attached Bash adapter.
This plugin is built for developers and teams who already lean on direnv across multiple projects or workspaces and simultaneously run DSH Agents. It does not replace direnv or introduce a new environment-configuration layer; it simply lets the Agent-side execution honour the .envrc files you have already written.
Use Cases
- Agent Bash executions automatically inherit .envrc environment variables from the working directory
- Local stdio MCP processes load direnv-evaluated environment on startup without manual export
- Parallel workspaces isolate their environments by Agent scope with no cross-contamination
Best For
- Developers who rely on direnv heavily for per-project environment variables
- Cross-discipline teams running DSH Agents across multiple workspaces
- SRE or platform engineers who need Agent executions and local MCP processes to share native environment configs
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.