DSH Plugins Marketplace

DSH Plugins

Plugins

/

Security & Audit

/

dsh-ruleset

c

dsh-ruleset

Manifest valid

Audit whether an agent actually follows your AGENTS.md-style rules: 15 predicates evaluated over native DSH events, a pre-execute approval gate for red lines, per-finding false-positive triage, and ba

UI (client)hasBundlePatch

dsh-ruleset (draft)

Behavioral rule compliance for DSH — one policy file drives both prompt injection and evidence-backed three-value checks.

Audits agent behavior, not plugin quality. For plugin conformance, see PerryLink/dsh-standards (ENTRY/FLOW/BOOST).

Relationship to the methodology

The four-tier enforcement model (interception / exit gate / detection / prompt-only) and the "detectable is not blocked" rule live in agent-rule-enforcement. This package is the detection tier: it measures behaviour against logs and never claims to block anything.

Interop: lib/export.js emits a generic JSONL event log (ts / session / tool / ok / checkpoint / outcome), which audit_events.py from that repo consumes directly. Verified: 1,138 events → 40 task segments → long_task_without_checkpoint 15/40.

Why

Most rule plugins inject text. Most audit plugins measure tooling. Neither answers: did the agent follow the rules it was told?

dsh-ruleset keeps one source of truth (policy.yaml):

  1. inject — rule text into the system prompt, hot-reloaded on file change
  2. observe — rule-by-rule verdicts: pass / violation / unknown, each pointing back to a seq or file

Contract: unknown is never read as pass (no data source or too few samples stays unknown).

Install

# from GitHub (works today)
dsh plugin --profile web add github:cengcengcai-creator/dsh-ruleset

# from npm (once published)
dsh plugin --profile web add dsh-ruleset

Status

Functional, self-hosted, no npm account needed — install straight from GitHub.

What it does today:

  1. Write rules in one sentence — a model turns it into a predicate you can adjust (/api/dsh-ruleset/parse, deterministic fallback included).
  2. Three tiers — redline / hard / soft, injected in that order so hard rules are not buried.
  3. Judge behaviour — 15 predicate types over native DSH events (approvals, sandbox modes, jobs, turns, file writes), never regex-guessing what the platform already records.
  4. Gate red lines — a tools/pre-execute guard returns ask for sudo, chmod 777, curl | sh, system-path writes, credential-shaped strings. Hits are logged to .ruleset/guard.log.
  5. Keep findings honest — per-finding lifecycle (open/fixed/accepted/false_positive/superseded), false positives subtract from hit counts and are never deleted.
  6. Compare against a baseline — two-proportion z-test (ported from OpenClaw's audit-verdict.py); |z| < 1.96 is reported as "no meaningful change" instead of red.
  7. Verify what reached the model — every distinct injected rule text is fingerprinted into .ruleset/injected.log.
  8. Own nothing — AGENTS.md is read-only; policy.yaml is written only on explicit user action, always after a backup; one-click rollback and export are built in.

Rule hygiene (/api/dsh-ruleset/hygiene): duplicates, conflicts, rules without predicates, token cost.

Tests: npm test — 20 cases (validation, predicates, extraction, dedupe, plugin-load smoke, guard behaviour).

Known limits: no hot reload (host restart required), client-side slot props are not inspectable, model judging is advisory only (not calibrated with kappa yet).

Community listings

Listed:

  1. Included — awesome-dsh-plugin/awesome-dsh-plugin under Security & Permissions (merged 2026-11-18 via PR #16379); this list also powers the in-app plugin market index.

Pending review:

  1. kejixiaoliang/awesome-dsh-plugins — health checks / diagnostics / audit category

Not on npm yet; install from GitHub until it is:

dsh plugin --profile web add github:cengcengcai-creator/dsh-ruleset

Comments

Loading…

Similar plugins

dsh-rule-engine

by jilian-dsh

Rules execution engine for dsh: parses AGENTS.md, hard-blocks rule-violating tool calls, text-based B/D rule auditing, /guard command, version-guard for versioned files, and free-zone support (engine

Security & AuditDevelopment & InfrastructureManifest valid

★ 3

↓ 171/wk

MIT

JavaScript

Sep 23, 2026

dsh plugin --profile web add dsh-rule-engine

by YukimuraSol

DeepSeek Harness plugin: renders AGENTS.md as an independent system-prompt section, re-read on every prompt assembly instead of injected as user messages.

Manifest valid

★ 0

MIT

JavaScript

Oct 28, 2026

dsh plugin --profile web add dsh-agents-section

by Leeaoyin

Audits your agent harness stability using deepseek harness.

Manifest valid

★ 0

↓ 82/wk

MIT

TypeScript

Aug 17, 2026

dsh plugin --profile web add dsh-harness-audit

by yunling-bionic

Reviews side-effecting tool calls against the project rules and the current goal before they run, and denies anything out of scope with a fail-closed verdict and no bypass switch.

Security & AuditDevelopment & InfrastructureManifest valid

★ 2

MIT

JavaScript

Nov 2, 2026

dsh plugin --profile web add dsh-rule-guard

Stops the agent after N consecutive failures on the same tool. Instead of another retry it pushes a four-part stop instruction: what was tried, the exact error text, the likely cause, and what the use

Workflow & AutomationManifest valid

★ 0

dsh plugin --profile web add dsh-fail-guard

by julescules

Windows agent safety for DeepSeek Harness: preview risky calls, protect workspace boundaries, and explain audit decisions.

Security & AuditManifest valid

★ 0

MIT

JavaScript

Sep 5, 2026

dsh plugin --profile web add dsh-windows-workspace-guard