DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Gov — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
G

dsh-gov

Gov

Agent governance suite for DeepSeek Harness (enterprise companion): policy-based tool gating (allow/deny/ask), structured JSONL audit trail, and per-agent token quotas against the host token meter — state under $DSH_HOME/gov

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:863683348/dsh-gov#bb061250a1dcead15edc202b4666c7d54f36da4a
READMECompatibilityVersions

Compatibility and provenance

Gov is published as dsh-gov and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/11/2026

Versions

0.1.0stable
9/11/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
9/11/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in security-access.

Doctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consolePocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).Mobiledsh-mobileDeepSeek Harness mobile adaptation and secure access plugin, supporting LAN, remote connections, Android App, and mobile browsers.DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.

README

dsh-gov — Agent Governance Suite (enterprise companion)

权限、审计、成本 —— DSH 进企业前必须有的东西,做成一个插件。策略门禁(allow/deny/ask)、结构化审计日志、按 agent 的 token 配额,状态持久化在 $DSH_HOME/gov/。

为什么需要它

企业引入 DSH 时第一波问题永远是:

  • 谁能让 agent 跑高危工具? 策略门禁:按工具/agent/工作区规则,allow / deny / ask,通配符 + 优先级,默认放行、命中即裁决、平局 fail-closed(deny > ask > allow)。
  • 出事了怎么追溯? 每次工具调用(决定 + 结果)都写入结构化 JSONL 审计日志(audit.jsonl),可查询、可导出、可汇总。
  • 钱花哪去了? 接宿主 tokenMeter,按 agent 累计 token 用量,周期配额(day/week/month/total),超限注入上下文警告,可一键重置。

安装

dsh plugin --profile <profile> add dsh-gov

用法(模型侧)

工具 gov,action 一览:

action说明
status治理总览:规则数、审计事件汇总(allow/deny/ask/error/ok)、配额用量
policy_list / policy_add / policy_remove规则管理(tool 支持 * 通配;priority 高者胜;平局 fail-closed)
audit_query / audit_export查询审计(limit/agent/tool/since 过滤);导出日志路径
quota_get / quota_set / quota_reset按 agent id(或 global)的 token 预算

示例:

gov policy_add tool="pwsh*" policyAction=ask reason="shell commands require approval" priority=10
gov quota_set id=alice quotaLimit=100000 period=day
gov audit_query decision=deny limit=20

配置

key默认说明
root$DSH_HOME/gov治理数据目录(gov.json + audit.jsonl)
defaultPeriodday新配额默认周期
defaultLimit0默认配额(0 = 不限;>0 时启用 step 计量)
prestepWarntrue超限时向模型上下文注入警告
sectionOrder5提示词段落顺序

设计

  • 纯逻辑分层:lib/policy.js(规则引擎)、lib/audit.js(审计模型)、lib/quota.js(配额计算)零依赖可单测;lib/index.js 负责接线(tools/pre-execute 门禁、tools/result 观察、agent/pre-step 计量)。
  • 全局而非会话:状态和日志在 DSH home,跨工作区一致。
  • fail-safe:计量失败、持久化失败都不阻塞 agent;策略引擎平局默认 fail-closed。
  • 审计日志是纯追加 JSONL,可被任何合规管道消费(二期:导出 SOC2 素材、多租户隔离)。

测试

node test/policy.test.mjs && node test/audit.test.mjs && node test/quota.test.mjs

FAQ

  • 默认放行还是默认拒绝? 默认 allow(与 DSH 一致);需要收紧就加规则,平局时 fail-closed(deny > ask > allow)。
  • 审计日志会记录工具参数吗? 不会。只记工具名、agent、工作区、决定、理由、结果(成功/失败)——不含参数内容。
  • 配额按什么计? 宿主 tokenMeter 的 totalTokens(当前请求+响应压力),按 agent id 累计到周期。
  • 计量失败会卡住 agent 吗? 不会,fail-safe:计量/持久化异常时跳过该步。

License

MIT