ddtcorex/dsh-maestro-guard ↗★ 1
@ddtcorex/dsh-maestro-guard
Maestro 安全卫士:DSH 宿主端安全网关,通过流水线预执行钩子拦截工具调用,支持持久化审批授权、敏感词脱敏及权限策略控制。
AI 分析
核心用途是保障 DSH 工具执行的安全性,防止 AI 误操作或泄露敏感信息。适合对安全要求高、需要对敏感命令进行人工审批或自动拦截的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ddtcorex/dsh-maestro-guard说明文档
阅读完整 README ↗@ddtcorex/dsh-maestro-guard
Host-only safety gate for the DeepSeek Harness: gates tool execution before dispatch via a waterfall pre-execute hook — persistent approval grants, secret redaction before logging/persistence, and a pure allow/deny permission policy.
Part of the Maestro Harness suite (dsh-maestro-*). Cordis patch row id: dsh-maestro-guard.
Opt-in and intentionally not part of the meta-bundle one-liner until published: add it explicitly with
dsh plugin add @ddtcorex/dsh-maestro-guard.
What it provides
- Waterfall pre-execute integration — one Cordis row (
dsh-maestro-guard) wiring the guard handler into the tool-execution waterfall. - ApprovalStore — persistent approval grants with legacy migration, revoke, and read-modify-write safety under a mutex.
- SecretRedactor — redacts known secret families (
ghp_,xox, private keys, …) before calls are logged or persisted. - PermissionPolicy — pure, unit-testable allow/deny checks for tool calls.
Host-only: no client bundle; DSH types come from local structural declarations
(src/augment.d.ts).
Development
pnpm install
pnpm verify # tsc --noEmit
pnpm test # vitest run
pnpm build # tsc -> lib/
License
MIT