dshbase

Plugin directory / Developer / dsh-agent-policy

dsh-agent-policy

Verified · install-tested on dsh xingyingyuzhui

✓ Actively maintained

View on GitHub ↗ ← Back to plugin directory

0Stars
0Forks
0Open issues
—Language
2026-08-19Last push
Cross-platformPlatform

What it does

Shared Claw/session policy schema for DeepSeek Harness. 策略契约,不拦截工具。

✅
Our take
Works — verified, early-stage project

Shared Claw/session policy schema for DeepSeek Harness. 策略契约,不拦截工具。 It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

dsh-agent-policy · 策略契约

治理套件 Phase 1–2 的共享契约:policy schema、预设基类、MCP 初始化默认、策略版本。不拦截工具。

其它插件只消费这份 schema,不要再复制一份方言。卸掉本插件不会放宽权限——闸还在 dsh-agent-gate,缺省回落到 DSH 原有 permission-presets。

MCP 工具名是 mcp__<服务>__<工具>。none 全关;explicit 只放行 servers.allow;init-defaults 在名单为空时放行。真正拒绝和隐藏在闸里。

安装

dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-policy

建议装在 dsh-agent-registry / dsh-session-permissions / dsh-agent-gate 前面。装完重启 dsh web。

本地开发:

dsh plugin --profile web add link:/abs/path/to/dsh-agent-policy

数据

写在 ~/.dsh/agent-policy/defaults.json:

  • preset:新建 Claw Agent 的常驻模板(research / developer / …)。设置里叫 Claw Agent模板
  • mcp:none | explicit | init-defaults(新 Agent 的 MCP 面默认值)
  • servers.allow / servers.deny:初始化可见的 MCP 服务名

BOOTSTRAP.md 还在时,闸额外放行问名字和写本工作区人设文件;不在这份默认里放宽终端。

卸载

dsh plugin --profile web remove dsh-agent-policy

已写出的 defaults.json 会留在磁盘上。

License

MIT

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-agent-policy for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:xingyingyuzhui/dsh-agent-policy

Headless (CLI) profile:

dsh plugin --profile headless add github:xingyingyuzhui/dsh-agent-policy

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7819 plugins →