dsh-auto-approval
安全与治理 活跃维护

dsh-auto-approval

Andy8647/dsh-auto-approval

为工具调用提供 auto 审批层,自动分类每个工具请求并执行相应策略,安全操作无需人工确认即可放行,兼顾效率与风险控制,适合自动化工作流集成。

4
Stars 标星
0
Forks 分支
4
Watchers 关注
0
Open Issues
JavaScript
主要语言
None
开源协议
3.2 MB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Andy8647/dsh-auto-approval
git clone https://github.com/Andy8647/dsh-auto-approval.git
git clone git@github.com:Andy8647/dsh-auto-approval.git
README.md main

dsh-auto-approval

English | 中文

Automated tool-call approval for DeepSeek Harness: an auto tier for the approval policy that classifies every tool call as allow / deny (fully autonomous — no human in the loop, uncertain calls are denied).

A monorepo of two packages:

Package Role
packages/dsh-auto-approval host half: pre-execute classifier (L0 rules + L1 LLM, two-state allow/deny)
packages/dsh-client-ui-auto-approval client half: AA status chip beside the composer access-mode selector, fed by the host via a Typert remote

Demo

auto-approval two-state decision demo

The chip next to the composer shows the run state (AA on / AA off); hover for cumulative stats, click for a dialog with the on/off switch, config summary and the recent-decisions table. The demo covers: file read/write and ls whitelisted and dispatched directly, a harmless command allowed by the L1 classifier, and dangerous commands rejected by deny rules / legacy-ask rules (now denying) / the self-kill guard.

Install

Install both packages into the same profile (published to npm, ships built artifacts — no build environment needed):

# host half (required: the approval decision logic)
dsh plugin --profile web add dsh-auto-approval
# client half (optional: the AA status chip in the composer)
dsh plugin --profile web add dsh-client-ui-auto-approval

For source-based installs (development / self-hosting), see the host package README.

Development

pnpm install          # export NPM_TOKEN=$(cat ~/.dsh/npm-token) if any @deepseek-ai/* dep is still private
pnpm -r run build     # build both packages
pnpm -r run test      # host unit tests

License

BSD-3-Clause