shuxue6662-a11y/dsh-risk-guard

Audits every tool call into local JSONL with a deterministic risk score, and blocks only irreversible catastrophes.

Produces the answer to what an agent actually did, which is otherwise only reconstructable by reading transcripts: every tool call is recorded with a redacted argument set, success or failure, risk tags and an explainable score, and /risk-guard prints a bill with scores, tags, reasons and the risky-calls table for a session, a turn or all history. The scoring covers destructive deletes, credential reads, network egress, writes outside the workspace, dependency installs and heavy builds, with bonus weight for rapid repeats and consecutive high-risk calls. The blocking half is deliberately narrow — protected-path deletion, disk wipe or format, force-push to protected branches, and network commands referencing credential files — because a fuse that fires on judgement calls gets disabled.

Agent Capabilities ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add dsh-risk-guard

The npm line, then restart the Web UI and use the /risk-guard slash command. The README's own second option installs the bare package and adds a risk-guard row to cordis.patch.yml by hand; the dsh plugin form above is the one that does both. Everything it records stays under <DSH_HOME>/risk-guard/ with no network calls and no telemetry.

Compatibility

The badge and README target dsh 0.1.0-rc.6, a specific prerelease, so treat the harness line as a claim to check rather than a range. Scoring is deterministic and makes zero LLM calls, so the audit costs nothing and cannot itself be argued with by a model. Defaults are conservative in the direction that matters: the fuse starts enabled and blocks only listed catastrophes, while audit retention is 30 days with monthly files gzipped above 50 MB.

Details

Alternatives

nilesh32236/dsh-squad · Inceptzws/dsh-project-guard · juhe291/dsh-token-panel

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins