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.

AI 분석

核心用途是为敏感或高风险的工具调用提供AI自动审查与安全拦截。适合需要自动化执行工具但又希望引入智能安全防护的开发者或高级用户。

패키지
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.