Nuo-cl/dsh-auto-mode0

dsh-auto-mode

DSH plugin: auto mode that routes permission-gated tool calls through an LLM review before approving, blocking, or asking for confirmation.

包名
dsh-auto-mode
版本
0.1.1
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Nuo-cl/dsh-auto-mode

Configuration

All options have defaults; a bare {} config is valid.

PathTypeDefaultMeaning
classifier.provider / classifier.modelstring''Route for classifier calls; empty follows the session's current model.
classifier.maxTranscriptMessagesnumber40Trailing transcript messages fed to the classifier.
classifier.maxTokensnumber512Classifier output budget.
classifier.temperaturenumber0Classifier sampling temperature.
classifier.askFallbackbooleantrueClassifier decision "ask" (uncertain risky call) falls back to the human approval chain; false treats it as a rejection.
rules.allowstring[][]Always-allow rules (see rule syntax below).
rules.denystring[][]Always-reject rules; evaluated before everything else.
rules.environmentstring[][]Free-form environment facts injected into the classifier prompt.
allowliststring[]read, glob, grep, todo_write, web_search, job_list, list_agentsTools approved without a classifier call.
failClosedbooleanfalsetrue: classifier failure rejects; false: falls back to the normal approval chain.

The auto-mode preset's label, description, and sandbox mode live in cordis.patch.yml, because the permission-preset table must be available when @deepseek-ai/dsh-permission-presets constructs its settings schema.

Rule syntax

tool            match a tool by name (case-insensitive), e.g. `read`
tool:pattern    match a tool whose request reason contains the pattern, e.g. `read:/etc/`, `pwsh:rm -rf`
*               any tool
*:pattern       any tool whose reason contains the pattern

A pattern containing * or ? is a wildcard match against the whole reason (read:/etc/*); any other pattern is a case-insensitive substring match.