7starsseeker/dsh-jev-guard

Intercepts every bash or pwsh call before it runs and asks one question: will this irreversibly delete or overwrite real data? It then allows, revises, blocks or escalates.

The judgement is layered so that the cheap checks run first: L0 static hard rules run offline and cannot be overridden, then a read-only/rebuildable pre-screen, and only then a Jev semantic judgement that takes roughly 300 ms. Jev is a System One model that returns a structured decision with no prose, which is why the author calibrates it as yes/no: 114 cases at 90.4%, with the Chinese text sent as-is. The verdict is allow, revise with a downgrade template, block, or escalate, so dangerous commands can be softened rather than only stopped. Because it lives on the host's pre-execute hook, the decision happens before the command text reaches a shell.

Tools & Capabilities ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add dsh-jev-guard

The npm line; dsh-jev-guard@0.5.6 resolves its registry repository to this repo. The README's other install lines point at local paths, which are not usable as public instructions.

Compatibility

Requires Node 20 or newer because it uses the global fetch, with zero runtime dependencies and no npm install step needed. It hooks DSH's native tools/pre-execute pipeline, so it is a hard interception rather than a prompt-level warning to the model. The author's platform badge lists WSL and Windows.

Details

Alternatives

tancheng33/dsh-egress-guard · CetOeil/dsh-process-guard · drscrewdriver/dsh-perm-gate

More plugins in Tools & Capabilities

Browse more in Tools & Capabilities

Guides for Tools & Capabilities plugins