dsh-guard-pack
Discovered★ 3Nine DeepSeek Harness guard plugins in one installable set: secret-leak blocking, a per-session cost cap, auto-formatting after edits, and more.
dsh-guard-pack
English | 中文
Nine guard plugins for DeepSeek Harness that catch the expensive mistakes coding agents make, installed with one command.
Each guard watches tool calls before or after they run. When an agent is about to do something you'd regret, the call is stopped and the model is told why and what to do instead, so it usually fixes course in the same step.
| Plugin | What it stops | npm |
|---|---|---|
| dsh-block-secret-leaks | Reading .env and key files, printing or uploading secrets, committing them, hardcoding them in source. Redacts any that reach tool output. New. | |
| dsh-session-cost-cap | A session (with its subagents) spending more than you set. Warns the model first, then asks you before each tool call. New. | |
| dsh-format-after-edit | Unformatted code. Runs Prettier, Biome, dprint, Ruff, Black, gofmt, rustfmt or clang-format on every edited file. New. | |
| dsh-protect-tests | Edits that make tests pass by testing less: .skip, deleted assertions, expect(true). | |
| dsh-block-placeholder-edits | // ... existing code ... written over real code. | |
| dsh-protect-generated-files | Hand edits to lockfiles and generated code. | |
| dsh-enforce-package-manager | npm install in a pnpm repo, pip install in a uv project. | |
| dsh-block-hanging-commands | Commands that wait for input or never exit: editors, REPLs, dev servers, git commit without -m. | |
| dsh-load-agent-rules | Ignoring the Cursor, Copilot, Windsurf and Cline rule files your repo already has. |
Install all of them
With DSH installed and dsh on your PATH:
git clone https://github.com/acus9345/dsh-guard-pack
cd dsh-guard-pack
node scripts/install.mjs
That adds all nine to the web profile (the browser UI you start with dsh web). Options:
node scripts/install.mjs --profile headless --profile web # several profiles
node scripts/install.mjs --only secret,cost,format # some of them
node scripts/install.mjs --remove # take them out again
node scripts/install.mjs --dry-run # print the commands only
Or skip the clone and paste one of these:
# bash / zsh
for p in dsh-block-secret-leaks dsh-session-cost-cap dsh-format-after-edit dsh-protect-tests dsh-block-placeholder-edits dsh-protect-generated-files dsh-enforce-package-manager dsh-block-hanging-commands dsh-load-agent-rules; do dsh plugin --profile web add "$p"; done
# PowerShell
"dsh-block-secret-leaks","dsh-session-cost-cap","dsh-format-after-edit","dsh-protect-tests","dsh-block-placeholder-edits","dsh-protect-generated-files","dsh-enforce-package-manager","dsh-block-hanging-commands","dsh-load-agent-rules" | ForEach-Object { dsh plugin --profile web add $_ }
Every plugin works with no configuration. To change one, open Plugins in DSH's sidebar and click it, or see its README.
Repository layout
The three new plugins live here as npm workspaces. The other six have their own repositories, linked above.
packages/
dsh-block-secret-leaks/
dsh-session-cost-cap/
dsh-format-after-edit/
e2e/ end-to-end tests that run the real dsh with a scripted model
scripts/install.mjs
Development
npm install
npm run typecheck
npm test # unit tests for every package
npm run test:e2e # real dsh runs against a scripted local model, no API key needed
The end-to-end tests include a dsh plugin add install, which needs pnpm on your PATH.
To release a package, bump its version and CHANGELOG.md, then push a tag named <package>-v<version>, for example dsh-session-cost-cap-v0.1.1. The release workflow tests everything, publishes that package to npm with trusted publishing, and creates the GitHub release.
MIT licensed. Written by acus9345. Bug reports and ideas are welcome in the issues.
Comments
Loading…
Similar plugins
by FoyonaCZY
Quality-of-life plugins for DeepSeek Harness: workspace rewind, desktop notifications, auto-format, live git context, secret redaction, and a done-means-green verify gate.
★ 0
MIT
JavaScript
Sep 2, 2026
dsh plugin --profile web add dsh-kitby darkmagic-ai
DSH (DeepSeek Harness) security guard plugin: blocks/asks on dangerous commands & sensitive paths, redacts secrets in tool output, local JSONL audit log + guard_report. DSH 安全护栏插件。
★ 0
MIT
JavaScript
Nov 5, 2026
dsh plugin --profile web add dsh-guardrailby vitkuz573
DSH plugin: peak-hour billing guard for DeepSeek Harness, plus token-saving settings UI and a live session cost strip
★ 0
JavaScript
Oct 10, 2026
dsh plugin --profile web add @local/dsh-token-saverby DamonBao
Safety-first five-agent orchestration plugin for DeepSeek Harness (DSH), with leases, scopes, checkpoints, validation, and recovery.
★ 3
↓ 20/wk
TypeScript
Sep 12, 2026
dsh plugin --profile web add @jcy2387/dsh-dungeon-partyby Yazzyk
DeepSeek Harness (dsh) 插件:在 Web GUI 里手动点选文件或目录,屏蔽 agent 对它们的读取、搜索、写入与编辑。A dsh plugin that denies an agent read/search/write/edit access to chosen files and directories, picked from the plugin's own We
★ 3
MIT
JavaScript
Nov 8, 2026
dsh plugin --profile web add dsh-file-shieldby drm-nz
Redacts secrets from tool output before it reaches the model or the session log. A DeepSeek Harness plugin.
★ 0
MIT
JavaScript
Nov 1, 2026
dsh plugin --profile web add dsh-redact