dsh-permissions
Claude Code-style permission rules engine: hard/deny/ask/allow tiers with a hard tier above full access, workspace-scoped rules, wildcard path protection, and a visual staged editor; rules persist in settings.yaml.
Claude Code 风格权限规则引擎:hard/deny/ask/allow 四级规则(hard 高于全访问、不可豁免)、workspace 作用域、通配符路径保护、可视化草稿式编辑器,规则持久化于 settings.yaml。
How to install
dsh plugin add dsh-permissions About
dsh-permissions 中文 | English 面向 DeepSeek Harness(dsh)的 **Claude Code 风格权限规则引擎**。双面 Cordis 插件:宿主侧在 tools/pre-execute 瀑布上做拦截判定,浏览器侧提供 **设置 → 权限** 可视化编辑器。 亮点 **四级规则、严格优先级**:hard > deny > ask > allow。 **hard 高于全访问**:即使会话处于全访问档(审批策略 never),hard 规则依然拦截、不可豁免;ask 规则跟随会话策略,全访问下自动放行。 **作用域**:global 规则全局生效;按 workspace 的规则叠加合并(冲突时 deny 永远胜出)。 **通配符匹配**(文件类工具 read/write/edit/glob/grep/read_image): write(*.pem) —— 路径以 .pem 结尾 write(*secret*) —— 路径包含 secret write(.ssh) —— 路径任意位置出现 .ssh 片段(大小写不敏感,\// 统一归一化) write(C:\users\*) —— 绝对路径前缀 裸 write —— 该工具全部调用 **持久化**:规则存于 dsh-permissions 设置命名空间,跨重启保留(<harness home>…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 1
- mo. downloads
- 1.3K
- Last push
- 2026-09-22
- Created
- 2026-08-15
Links
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- deepseek-harness, dsh-plugin, permissions, security
Related plugins
dsh-auto-mode
NanmiCoder/dsh-auto-mode
Adds an Auto permission preset between Workspace Write and Full access: routine work stays in the official workspace-write sandbox while the current session model reviews escalation and destructive calls, granting one exact wider access once, asking when the intent is ambiguous, and denying critical paths.
dsh-passwords
slywalker2006/dsh-passwords
Turns DeepSeek Harness into a server-grade multi-tenant platform: remote access + auto HTTPS, subuser permissions & token/daily quotas, sandbox enforcement, encrypted auth & audit log.
sofagent
KongFangXun/sofagent/tree/main/engine/dsh-plugins/cordis-plugin-sofagent-audit
Commit-time audit harness for AI coding agents: 24 git-diff rules (secrets, out-of-scope edits, prompt injection), HMAC-signed audit trail, snapshot rollback, and an MCP server with 84 tools. Installable via dsh plugin add.
dsh-vault
Ox0400/dsh-vault
Encrypted local credentials vault for the Harness: a web settings page and vault_* tools to store, search and copy passwords, API keys, TOTP secrets and card data, with health audits, expiry rotation, imports/exports and read-only/ask access modes.