scotlight/dsh-guardian-approval

Under Auto Approve, routes each approval request to a separate reviewer model that scores risk before the agent proceeds.

Makes Auto Approve defensible by putting a second, fixed model in front of each request: collect evidence (tool call, arguments, egress payload pre-read), ask the reviewer for a verdict, then allow, deny or delegate. It implements the Codex Guardian policy in full, including the risk-by-authorization matrix, and the rule that actually stops prompt injection: file and tool content is untrusted evidence, so only an explicit user instruction authorises, and do what the file says does not authorise the dangerous thing inside the file. Every verdict — allow, deny, error, circuit-open, delegated — is appended to ~/.dsh/auto-approval-audit.jsonl with its risk, authorization and rationale, so the approvals you did not see are still reviewable after the fact.

Agent Capabilities ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add -w dsh-guardian-approval@0.1.1

The README's own line, -w included, pinned to the version its authors tested. Restart DSH Web, then fill in Settings, Plugins, Plugin config: an OpenAI-compatible endpoint, a reviewer model, and the API key, which is stored in the DSH credential store and never in the repo. Pick the Auto Approve preset in a session to activate — with any other preset the plugin is not in the loop. The screenshots in the README are of that config page and the policy editor.

Compatibility

Node.js 22.19 or later, and DSH 0.1.0-rc.6 or later in the 0.1 release line, developed and CI-tested against rc.8. The reviewer is an independent channel — endpoint, model, reasoning effort and timeout are configured separately — so hot-swapping the agent's own model never silently moves the reviewer with it. The data boundary is stated rather than implied: the reviewer receives sanitized tool arguments, bounded recent direct-user messages and, for egress-shaped actions, up to four 2KB local-file excerpts, and redaction is best-effort and cannot be complete.

Details

Alternatives

TingRuDeng/dsh-smart-approval · arrow949/dsh-turn-approval · zhangweiii/dsh-ai-approval

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins