log-li/dsh-automode

Claude Code-style auto-approval mode for DeepSeek Harness: deterministic deny/allow bands first, then a two-stage classifier, with a circuit breaker that hands decisions back to a human.

Sits between the agent and the harness and intercepts every tool call before execution. Regex deny bands and prefix-glob allow rules decide deterministically at zero LLM cost (deny is evaluated first and wins), config.allowPaths is treated as full trust so file operations and bash writes inside it skip review, and escalated calls are auto-granted through the approval bridge. Anything left goes to a two-stage classifier: a one-token filter pre-screens, only flagged actions get the structured review, and identical actions reuse a verdict cache for 5 minutes. A circuit breaker pauses auto mode after 3 consecutive or 20 total DENYs and routes decisions to a human; one human decision resumes and resets it. Every allow, deny and bridge decision is appended to ~/.dsh/auto-mode/decisions.jsonl, and the mode is selectable from the permission picker or with /auto alongside read-only, workspace-write and danger-full-access. The README is explicit that this is a guardrail rather than a sandbox: it runs inside the DSH process and reduces unsafe autonomous tool use but is not an OS security boundary.

Agent Capabilities ★ 7
View on GitHub ↗

Install

dsh plugin add @log.li/dsh-automode

Copied verbatim from the README's Install block. package @log.li/dsh-automode, registry latest 0.17.0, and its repository field resolves back to github.com/log-li/dsh-automode. The README adds that dsh web must be restarted afterwards.

Compatibility

The README states support for dsh 0.1.0-rc.6 through 0.2.x (peer range >=0.1.0-rc.6 <0.3.0-0), with the current 0.2 line tested on 0.2.1-rc.2. It also documents a cosmetic optional script that adds a lightning glyph to the permission picker, which must be re-run after every npm update @deepseek-ai/dsh or plugin reinstall because those wipe it.

Details

Alternatives

BOWLUNA/dsh-custom-mode · Aik358/dsh-auto-memory · frozo-ai/dsh-budget

More plugins in Agent Capabilities

Browse more in Agent Capabilities

Guides for Agent Capabilities plugins