dsh-agent-policy: Checking Agent Policy Declarations and Code Consistency
dsh-agent-policy (@deepwhale-cn/dsh-agent-policy) is an admin-security class static audit plugin under DSH, maintained by feely0208. It does not intercept runtime requests; instead, it compares policy declarations such as policy.yml and agent.yml against the project code to check for violations of no-network commitments, missing human confirmation, wildcard permission grants, empty tool lists, and cases where Agent code exists without a corresponding declaration file. The installation command is `dsh plugin --profile web add @deepwhale-cn/dsh-agent-policy`; use `dsh-agent-policy --root` to audit a project, supporting `--demo`, `--list-rules`, `--html`, and `--json`, with an exit code of 1 on high-severity findings to facilitate CI integration. Its responsibilities differ from dsh-agent-scope: the latter assesses whether permissions themselves are overly broad, whereas this plugin only verifies consistency between declarations and implementations. MIT licensed, Node >=18.
Read Moredsh-agent-policy: DeepSeek Harness Policy Contract and MCP Initialization Defaults
dsh-agent-policy is a shared policy plugin for DeepSeek Harness (DSH), designed to address issues such as fragmented policy definitions, version inconsistency, and difficulty reusing configurations in agent development. It does not intercept tools; instead, it provides schemas, preset base classes, and MCP default behaviors for other plugins to consume. The plugin supports configuring preset templates (such as research) and MCP panel default values in `defaults.json`. Permission control is handled by `dsh-agent-gate`; uninstalling the plugin does not relax permissions, and configuration data remains persisted.
Read More