log-li/dsh-automode1

dsh-auto-mode

CC 风格的 DSH 自动审批插件,结合确定性规则与模型无关分类器

AI 分析

核心用途是提供安全的自动审批机制,通过正则拦截高危操作,自动放行安全命令。适合需要平衡自动化执行效率与系统安全性的用户。

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

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:log-li/dsh-automode

Configuration

Key options in cordis.patch.yml (all have defaults):

OptionDefaultDescription
modePreset"auto"Permission preset this plugin owns. Empty = observe all sessions.
dryRuntrueShadow mode: decide + record, but always delegate. Set false to enforce.
hardDenyexfil, curl pipe, …Regexes that always deny.
sensitiveDeny.ssh/, .env, …Sensitive targets: deny + safer-alternative guidance.
allowCommandstrash *, git status, …CC-style prefix globs. Zero-LLM auto-allow.
allowPaths[]Curated full-trust directories. Danger-full-access writes here auto-allow.
breakerConsecutive3Consecutive DENY count to trip the breaker.
breakerTotal20Total DENY count to trip the breaker.
timeoutMs45000Classifier call timeout.
classifyContextChars6000Context budget for task-alignment input.
preExecuteGatetrueEnable the pre-execute deny-band + escalation pre-screen.