CetOeil/dsh-process-guard

Refuses shell commands that kill processes by image name, wildcard, process group or unfiltered enumeration - the cleanup pattern that closes the DSH GUI window mid-turn.

Inspects every shell tool call before it runs and refuses shapes that terminate processes by image name, wildcard, process group or unfiltered enumeration, while leaving explicit-PID kills and -PassThru handle kills untouched. The refusal is written as guidance: it names what it blocked, explains that the image may host the DSH GUI, harness or terminal, and shows a safe replacement (start the process with -PassThru, wait on it, then kill that handle, or target a known PID with -Id). The README ties this to a 2026-09-18 incident in which a blanket Chrome/Edge kill for screenshot cleanup terminated the browser hosting the DSH Web GUI: the window disappeared, the client connection dropped, and the turn ended as interrupted with a tool result of "outcome unknown".

Tools & Capabilities ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add dsh-process-guard

Copied verbatim from the README's Install block. package dsh-process-guard, registry latest 0.2.1, and its repository field resolves back to github.com/CetOeil/dsh-process-guard. The README also documents a local-path and a git+https:// install form, plus the matching remove command.

Compatibility

The README says this release is verified against dsh 0.1.5-rc.3 and that the guard sits on the tool path via ctx.tools.guard(). It documents the limits explicitly: generated or separately stored commands, tools outside the inspected set, remote execution such as ssh host killall chrome, renamed or copied binaries, and unmodeled native process APIs are all outside what it can refuse.

Details

Alternatives

tancheng33/dsh-egress-guard · Q1hangL/dsh-ask-guard · platonai/dsh-browser4

More plugins in Tools & Capabilities

Browse more in Tools & Capabilities

Guides for Tools & Capabilities plugins