log-li/dsh-automode1

dsh-auto-mode

CC-style auto-approval for DeepSeek Harness: deterministic rules + model-agnostic classifier as final authority. Robust verdict parser, non-bash pre-execute escalation envelope, circuit breaker, fail-closed semantics.

AI 分析

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

パッケージ
dsh-auto-mode
バージョン
0.4.1
ライセンス
MIT
最終更新
2026/08/22

インストール

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

ドキュメント

README 全文を読む ↗

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.