Dsh Protect Tests — Development skill for Claude Code
DeepSeek Harness plugin that blocks agent edits that weaken tests, such as .skip, deleted or watered-down assertions.
How to install Dsh Protect Tests
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open acus9345/dsh-protect-tests and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Dsh Protect Tests does
DeepSeek Harness plugin that blocks agent edits that weaken tests, such as .skip, deleted or watered-down assertions.
Alternatives in Development
- Dsh Plugin Cc — Bridge Deepseek-harness into Claude Code for review, critique, delegation, and session import 80 ★
- Dsh Usage — 🌊 Persistent dock & fully-customizable balance/usage panel for DeepSeek Harness — activity heatmap, dual-chan 74 ★
- SpecFusion — 在 DeepSeek Harness / Claude Code / Cursor / Codex / Gemini CLI 里直接搜索 20 个中国开放平台的 65,600+ 篇 API 文档;零配置,支持 Skill 66 ★
README
dsh-protect-tests
English | [中文](README_zh.md)
Tell an agent "make the tests pass" and sometimes it does exactly that, just not the way you meant. A failing test gets `.skip`. An assertion gets commented out. `expect(total).toBe(42)` turns into `expect(total).toBeDefined()`. The run goes green and the bug is still there.
This [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin looks at every edit to a test file before it's applied, comparing the old text with the new. If the change makes the tests check less, the edit is refused and the model is told what it did: (haha claude is so useful i mean like idk)
dsh-protect-tests blocked this change to src/sum.test.ts because it makes the tests check less:
- replaces specific assertions with existence/truthiness checks (0 → 1): `expect(sum(1, 2)).toBeDefined()`
Tests should keep failing until the code is fixed. Fix the implementation instead, or make
the test more accurate without weakening it. If the test itself is wrong (the requirement
changed, or it tested a bug), tell the user which test you are changing and why, then
repeat the identical call once to confirm.
Install
dsh plugin --profile web add dsh-protect-tests
That's the `web` profile, the browser UI you start with `dsh web`. If you run DSH another way, use `headless` (scripts and CI) or `acp` (editor integrations) instead. Each profile keeps its own plugin list, so add it to every profile you use. It's on as soon as it's installed. Remove it with `dsh plugin --profile web remove dsh-protect-tests`.
From a clone
To try local changes, build a tarball and install that:
git clone https://github.com/acus9345/dsh-protect-tests
cd dsh-protect-tests
npm install
npm pack
dsh plugin --profile web add ./dsh-protect-tests-0.2.0.tgz
What it notices
- New skips.
it.skip,test.only,xit,xdescribe,@pytest.mark.skip/xfail,@unittest.skip,t.Skip(),@Disabled,#[ignore], and the e
Related Skills
Update Guard
Create or upgrade a Genesis agent's guard — the per-agent invariants (self_protect + must_match / must_not_mat
Deepseek Harness Token Saver
🔥 Cut 91% of tokens, lose zero capability 省 91% token · 能力零损失 — Scope DSH skill catalogs & MCP tool schemas p
Dsh Guard Pack
Nine DeepSeek Harness guard plugins in one installable set: secret-leak blocking, a per-session cost cap, auto
Break Down Tests
Explain existing automated tests and assertions without editing code.
Oh My Dsh
oh-my-dsh:面向 DSH (DeepSeek Harness) 的插件生态——700+ 插件,只通过扩展接缝注册,不修改 agent-loop 骨架
Deepseek Harness Acp
ACP server implementation for DeepSeek harness. dsh-acp
Related Agents
Ds Flash
DSH (DeepSeek Harness) worker on the flash tier - fast and cheap. Delegate simple, well-scoped subtasks: mecha
Sm Readers
Owner of the Readers part. Everything the plugin knows comes from files on this PC. Its code: server/sources/,
Harness Test Writer
Writes the acceptance tests for an approved /harness plan before any implementation, so the implementers have