deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:CH3SH-LC/dsh-auto
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH(DeepSeek Harness)的 auto 权限档位插件:在 read / write / full 三档之外新增一档,让 write 及以下的请求直接放行,write 以上的请求交给独立的分类器模型判断,不再打扰用户。
参考 Claude Code 的 auto 权限语义:auto = workspace-write 沙箱 + 自动审批。相比 full 档的"无条件放行",多了一层模型判断;相比手动审批,省去了每次升级都要等人点确认。
sandbox_permissions: "danger-full-access" + justification 请求升级时,插件在命令分发前把完整调用参数和最近对话上下文(最近若干条用户/助手消息,条数与字符预算可配)一起交给分类器模型判断——允许则一次性放行,拒绝则命令不执行,模型直接看到拒绝理由(Auto permission policy denied this escalation: ...)。classifierProvider / classifierModel 指定独立模型;上下文窗口可用 classifierContextMessages / classifierContextChars 调整。以 Windows + Web profile 为例(其他平台把 %USERPROFILE% 换成 $HOME)。
克隆仓库并链接进 profile 的 node_modules(仓库自带预构建 lib/,开箱即用):
git clone https://github.com/CH3SH-LC/dsh-auto.git
New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\web\node_modules\dsh-auto" -Target "<仓库路径>"
在 $DSH_HOME\cordis.patch.yml(home 层,热重载)追加插件行和 auto 预设。patch 会整体替换 permission 行的 config,预设表必须写全:
- insert:
- id: dsh-auto
name: dsh-auto
- id: permission
name: '@deepseek-ai/dsh-permission-presets'
config:
presets:
read-only:
sandbox: read-only
approval: ask
workspace-write:
sandbox: workspace-write
approval: ask
auto:
sandbox: workspace-write
approval: ask
name: auto
description: Workspace writes run directly; escalations are judged by a classifier model.
danger-full-access:
sandbox: danger-full-access
approval: never
无需重启:在会话权限弹窗选择 auto,或发送 /permission auto。想让新会话默认 auto,在 $DSH_HOME\settings.yaml 加:
permission:
defaultPreset: auto
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。