dsh-decision-gate

A PreToolUse decision gate for DSH — five questions before every shell command, then allow, ask, or deny.

dsh-decision-gate

A PreToolUse decision gate for DSH (DeepSeek Harness): before every shell tool call (bash, pwsh, terminal_*) runs, the gate asks a judge five yes/no questions, maps the answers through calibrated thresholds to allow / ask / deny, and appends every decision to a JSONL log. Swappable judge backend, path-scoped exemption, pre-authorized list for approved irreversible steps.

Docs

Install

dsh plugin add SeasonTemple/dsh-decision-gate

Verify

python -m pytest tests -q
node tests/functional.mjs