Control agent capabilities from the DSH WebUI — with real runtime enforcement.
English · 简体中文
Session · Project · Global — blue check = on, red cross = off, dashed dash = unset.
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.
Requires Node.js ≥ 22.6.
dsh plugin --profile web add github:lifeopsgo/dsh-capability-toggle-plugin#v1.1.0Restart the existing DSH Web GUI process, then refresh the page. Start it with the command below when it is stopped:
dsh --profile web webOpen the control beside the ➕ button while the agent is idle. Replace web with another profile name when needed.
Upgrade or remove
# Upgrade or downgrade: use any tag listed on the releases page
dsh plugin --profile web add github:lifeopsgo/dsh-capability-toggle-plugin#v1.1.0
# Remove
dsh plugin --profile web remove dsh-capability-toggle-pluginEach capability has three independent levels:
session › project › global › default (enabled)
The nearest explicit value wins. Unset defers to the next level; with every level unset, the capability remains enabled. The row badge always shows the resolved result.
The button displays only its current state: click to toggle on ↔ off, or use its small clear badge to return to unset.
| Tab | Controls |
|---|---|
| Skills | Individual model-invocable skills, including project-level skills discovered from the session's workspace (.dsh/skills, .agents/skills) |
| MCP | MCP servers; expand a row to inspect member tools |
| Tools | Individual model-visible tools and their guidance sections |
| Prompt | A safe, presence-checked allowlist of prompt injections |
| Security | Approval escalation and five opt-in safety guards |
Every mechanism is scoped to the current agent; global registrations are not mutated.
| Family | Enforcement |
|---|---|
tool / mcp |
Removed with ctx.tools.restrict({ deny }); forced calls are refused |
skill |
Shadowed by a same-named modelInvocable:false runtime skill |
prompt |
Shadowed with empty text, or suppressed with suppressRuntimeContext() |
approval |
Scoped approval requests resolve to rejected |
guard |
tools/pre-execute blocks or requests confirmation for matching calls |
Turning off Approval escalation rejects every approval request from that agent without changing the system /permission setting.
Safety guards are opt-in:
Additional behavior: switches lock while the agent runs, state survives popup close and turn boundaries, and the UI follows the WebUI language.
Planned, not yet implemented:
- Cross-project config sync — copy or link project-level settings from another project instead of configuring each project from scratch.
Filter and select-all— shipped in v1.1.0: the toolbar's search box filters rows, and each level's bulk menu applies enable/disable/clear to every currently visible row.Bulk actions on a filtered selection— shipped in v1.1.0 together with the filter (search narrows, bulk acts on what's shown).
