DeepSHPlugins
dsh-capability-toggle-plugin 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-capability-toggle-plugin

工具與整合TypeScriptMIT

在 DSH WebUI 中為技能、MCP 伺服器、工具、提示詞注入、審批升權和安全守衛提供會話、專案與全域性三級控制,並在當前 agent 作用域內強制執行。

3 Starslifeopsgo 更新時間 2026-09-10
訪問 GitHub 倉庫
dsh-capability-toggle-plugin 專案預覽

專案介紹

中文

在 DSH WebUI 中為技能、MCP 伺服器、工具、提示詞注入、審批升權和安全守衛提供會話、專案與全域性三級控制,並在當前 agent 作用域內強制執行。

English

Adds session, project, and global controls in the DSH WebUI for skills, MCP servers, tools, prompt injections, approval escalation, and safety guards; enforcement is scoped to the current agent.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
lifeopsgo
倉庫
lifeopsgo/dsh-capability-toggle-plugin
GitHub Stars
3
Forks
1
開發語言
TypeScript
許可證
MIT
最近推送
2026-09-10
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

65/ 100
維護活躍
100
文件與實用資訊
100
生態關注度
25
安裝便捷訊號
75
專案宣告訊號
100

近 1 天仍在更新;README 含完整安裝與使用說明;關注度尚低(3)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:lifeopsgo/dsh-capability-toggle-plugin

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-capability-toggle-plugin

Control agent capabilities from the DSH WebUI — with real runtime enforcement.

platform tests release license

English · 简体中文

Capability controls for Skills, MCP, Tools, Prompt, and Security

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

One build serves the whole 0.1.x line. The composer slot's owner share changed at DSH 0.1.2 — the session snapshot object was dropped in favor of the framework's sessionId prop and useSession hook — and this plugin reads both shapes.

DSH versionStatusHow it was checked
0.1.1-rc.2supportedunit tests, typecheck, build, and a real browser session (panel rendered, toggles written)
0.1.2-rc.1supportedunit tests, typecheck (Host and Client faces), and a load check against an installed 0.1.2 host; the browser run above was on 0.1.1 only
0.1.3-alpha.1 / -alpha.2supportedevery DSH symbol this plugin consumes was diffed from 0.1.2-rc.1 to current HEAD and is unchanged; not built or run against an installed 0.1.3 host

The declared peerDependencies admit all of the above, including the prereleases npm publishes as next (0.1.2-rc.1) and alpha (0.1.3-alpha.x), and reject 0.2.0 and later.

Quick start

Requires Node.js ≥ 22.6.

dsh plugin --profile web add github:lifeopsgo/dsh-capability-toggle-plugin#v1.3.0

Restart the existing DSH Web GUI process, then refresh the page. Start it with the command below when it is stopped:

dsh --profile web web

Open 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.3.0

# Remove
dsh plugin --profile web remove dsh-capability-toggle-plugin

Features

Three-level resolution

Each 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.

Capability families

TabControls
SkillsIndividual model-invocable skills, including project-level skills discovered from the session's workspace (.dsh/skills, .agents/skills)
MCPMCP servers; expand a row to inspect member tools
ToolsIndividual model-visible tools and their guidance sections
PromptA safe, presence-checked allowlist of prompt injections
SecurityApproval escalation and five opt-in safety guards

Enforcement

Every mechanism is scoped to the current agent; global registrations are not mutated.

FamilyEnforcement
tool / mcpRemoved with ctx.tools.restrict({ deny }); forced calls are refused
skillShadowed by a same-named modelInvocable:false runtime skill
promptShadowed with empty text, or suppressed with suppressRuntimeContext()
approvalScoped approval requests resolve to rejected
guardtools/pre-execute blocks or requests confirmation for matching calls

Security controls

Turning off Approval escalation rejects every approval request from that agent without changing the system /permission setting.

Safety guards are opt-in:

GuardAction
Read-only modeBlock file writes, creates, and edits
Protect secretsBlock access to common secret files and credentials
Dangerous shellConfirm high-risk shell commands
Destructive gitConfirm history- or work-losing git commands
Outbound networkConfirm network tools and outbound shell actions

Usage stats

Skills, MCP servers, and tools carry a small badge showing how many times the model called them this session (called 7). Counts update when a turn ends while the panel is open, live for one agent's lifetime, and are never persisted — the same retention as a safety guard's matched N badge.

The tally counts requests, not successful runs: a call a guard blocked or sent to confirmation still counts, because the model asking for a capability is the signal worth seeing. Guards are matched against rather than called, so they keep their own badge and show no usage count; prompt and approval rows show none either.

Panel preferences

A disclosure arrow beside the panel title opens three display preferences, stored in localStorage so they survive page reloads and restarts:

PreferenceEffect
Show “enabled / total” on tabsRenders each tab badge as a fraction (67/106) instead of a bare total, so the strip reports how much of each family is active at a glance. The tooltip states both numbers in words either way.
Show call statsHides or shows the per-row usage badge described above.
Level columns to showNarrows the grid to Session, Session + Project, or all three columns.

The fraction counts a guard as enabled only while it is active. A guard row reuses the same disabled field to mean ACTIVE — the inverse of every default-on family — so a Security tab with the approval gate open and all five guards inactive reads 1/6, not 6/6.

Narrowing the level columns is display-only: the three-level resolution keeps running exactly as before, so a hidden project or global override still applies. Each row's badge and level switches always reflect the resolved state — a default-on family reads Active/Disabled, a guard reads Guarding/Inactive — which is why hiding a column cannot hide an effect. The name column absorbs the freed width, and the layout is driven by CSS variables so it stays aligned with the narrow-screen adaptation.

Additional behavior: switches lock while the agent runs, state survives popup close and turn boundaries, and the UI follows the WebUI language.

Roadmap

Planned, not yet implemented:

  • Cross-project config sync — copy or link project-level settings from another project instead of configuring each project from scratch.
  • Capability invocation stats — shipped in v1.2.0: skills, MCP servers, and tools badge how many times the model called them this session.
  • Fraction-format tab counts — shipped in v1.3.0: each tab badge renders as enabled / total, and the panel's disclosure arrow holds three display preferences. A guard counts as enabled only while active, so its inverted disabled flag never inflates the Security numerator.
  • Settings menu for customizable defaults — expose the plugin's own options in a settings menu, such as the default stance for newly discovered capabilities (today a capability with all three levels unset resolves to enabled, except the opt-in safety guards, which stay inactive).
  • Show only enabled / only disabled — add a state filter next to the search box, which today matches names and descriptions only. Guards need the same care the fraction counts need: a guard reuses disabled to mean ACTIVE, so "only disabled" must not list a guard that is actually enforcing. The filter would also narrow what bulk actions apply to, since they act on every currently visible row.
  • 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).

MIT — see LICENSE

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案