zhangzujian/dsh-subprocess-inherit-environment

DSH plugin that forwards the complete Harness environment through ctx.subprocess

A removable DSH plugin that forwards the Harness process's complete environment through the ctx.subprocess service — wrapping resolveExecutable, spawn, and spawnTerminal with an explicit environment layer built from process.env. DSH normally scrubs KEY/PASSWORD/SECRET/TOKEN/DSH_* names from subprocess environments; this plugin restores them, so model-generated commands, repo scripts, package installers, CLIs, MCP servers, and terminal programs can read them. Caller-provided entries merge after a fresh process.env spread; explicit overrides and undefined tombstones keep their meaning; disposal restores the original descriptors; double installation on the same runtime is rejected.

Other ★ 2 updated 2026-08-15 ✅ runtime-tested
View on GitHub ↗

Install

⚠️ Upstream documents a local-checkout install — the command it gives is a path on your own machine, so there is nothing pasteable here. See the README for its exact steps.

Compatibility

DSH 0.1.0-rc.6 profile bundle. Deliberately forwards the Harness process's complete environment through ctx.subprocess.

Details

Recent updates

forwards full process.env through ctx.subprocess; wraps resolveExecutable/spawn/spawnTerminal; safe apply/dispose with rollback; single-install guard.

FAQ

Is this safe?
It deliberately disables DSH's subprocess credential isolation — only install on trusted single-user deployments; prefer an exact allowlist otherwise.
What does it wrap?
The three ctx.subprocess operations: resolveExecutable, spawn, and spawnTerminal.
How do I remove it?
Run the remove command for @zhangzujian/dsh-subprocess-inherit-environment — disposal restores DSH's default credential scrub.

Alternatives

zbc-s-studio-cr-cn-dsh-skill-manager · safe-find-dsh-plugins · LeslieWylie/dsh-ops-kit

More plugins in Other

Browse more in Other

Guides for Other plugins