# dsh-capability-toggle-plugin
**Control agent capabilities from the DSH WebUI — with real runtime enforcement.**
[](#quick-start)

[](https://github.com/lifeopsgo/dsh-capability-toggle-plugin/releases)
[](./LICENSE)
[](./README.md) [](./README.en.md)
Session · Project · Global — blue check = on, red cross = off, dashed dash = unset.
## What it is
A **DeepSeek Harness (DSH) WebUI** plugin for controlling **skills, MCP servers, tools, prompt injections, approval escalation, and safety guards** at session, project, or global scope. Depending on the family, disabling removes, suppresses, rejects, or intercepts the capability on the agent's next step.
## Compatible DSH versions
This plugin targets the **DSH 0.2 generation**, declared as one range:
```
>=0.2.0-0 <0.3.0-0
```
That means "any 0.2 release, prereleases included". Every DSH version on npm is a
prerelease, so enumerating exact release candidates meant the plugin was declared
incompatible and skipped at startup whenever the host shipped a new one. Since
v2.4.0 a single generation-scoped range covers the whole 0.2 line.
The upper bound is `<0.3.0-0` on purpose. The compatibility gate evaluates semver
with `includePrerelease: true`, where `0.3.0-rc.1` sorts *below* `0.3.0`; writing
`<0.3.0` would let the next generation through, and 0.3 carries breaking changes.
| DSH version | How it was checked |
| --- | --- |
| 0.2.0-rc.1 | Full suite green under those dependencies at v2.0.1 (380 tests) |
| 0.2.1-rc.2 | The same gates at v2.1.0, plus browser verification |
| 0.2.1-rc.5 | Typecheck, 412 tests and production build at v2.3.0 |
| 0.2.2-rc.3 | Typecheck, 412 tests and production build at v2.4.0, plus confirmation that the host config entry and the client slot occupant are live in that runtime |
**A range states whether the plugin installs; it cannot state whether an API
exists.** The plugin relies on two host seams — the composer's
`data-composer-overlay` escape hatch and the `inputTriggers` source roster — and
tests assert both against the installed artifacts. If a seam disappears the
related feature degrades instead of throwing. Other 0.2.x versions have not been
run through the gates one by one.
## Quick start
Requires **Node.js ^22.19.0 or ≥ 24.0.0** (same as DSH 0.2.x).
```bash
dsh plugin --profile web add github:lifeopsgo/dsh-capability-toggle-plugin#v2.5.0
```
Restart the existing DSH Web GUI process, then refresh the page. Start it with the command below when it is stopped:
```bash
dsh --profile web web
```
Open the control beside the ➕ button. The panel opens while an agent runs — writes land once it is idle. Replace `web` with another profile name when needed.