Bundle
dsh-agent-gate
Claw/session permission gate for DeepSeek Harness. 按分层权限拦截工具、走一次性审批,并写审计。官方沙箱由权限插件钉。
- Source
- xingyingyuzhui
- stars
- 1 stars
- License
- MIT
- Updated
- Updated yesterday
Readme
# dsh-agent-gate · 权限闸 按分层权限拦截工具(`tools/pre-execute` + `tools.guard`),需要时走官方一次性审批,并在 `~/.dsh/agent-gate/audit.jsonl` 记一笔。Claw 会话的官方沙箱由 `dsh-session-permissions` 钉成 `read-only` / `workspace-write`。设置里有 **审计** 页:按时间、结果、工具类型、Claw Agent 筛选,并可导出当前筛选结果。 Agent 技能拒绝名单会从该会话的官方技能目录和 `/` 选单里拿掉,不只拦 `skill` 工具。未授权的 MCP 服务同样会拒绝,并在会话开始时从模型可见工具里拿掉。 策略计算复用同目录的 `dsh-session-permissions`(官方 ∩ Agent ∩ 会话)。闸只拦 Claw 会话;工作区会话只走官方权限。闸可以单独卸:拦截会停,官方文件沙箱只要权限插件还在就会继续钉。 ## 安装 ```sh dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-gate ``` 建议同时安装 `dsh-session-permissions`。装完重启 `dsh web`。 本地开发: ```sh dsh plugin --profile web add link:/abs/path/to/dsh-agent-gate ``` ## 卸载 ```sh dsh plugin --profile web remove dsh-agent-gate ``` 卸掉后不再拦截新调用。官方文件沙箱由权限插件继续钉,不会因为卸闸而变宽。 ## License MIT
Install
dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-gate#495f5a4d9c3a62ad364358313d3457643de7ba33
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-agent-gate from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.