返回插件市场

dsh-capability-toggle-plugin

安全与治理

lifeopsgo/dsh-capability-toggle-plugin

从 DSH WebUI 编辑器切换单个代理能力(技能、MCP、工具、提示、审批、防护),支持会话、项目或全局范围,并实时强制执行。

  • deepseek-harness
  • deepseek-harness-desktop
  • deepseek-harness-plugin
  • deepseek-harness-plugins
  • dsh
  • dsh-plugin
  • dsh-plugin-desktop
  • dsh-plugins
GitHub Stars
3GitHub
浏览量
0DSH Plugin Hub
Forks
0GitHub
开放问题
0GitHub Issues
Manifest 版本
1.1.0dsh-capability-toggle-plugin
最近推送
2026年9月2日GitHub
许可证
MITTypeScript
插件类型
Host + Client同时运行于 Host 与 Web Client

验证与兼容性

这里展示目录实际采集到的证据;未声明的信息会明确标为未知。

运行时已验证
01精确来源: github · dsh-capability-toggle-plugin@1.1.002验证时间: 2026年9月3日03验证版本: 0.1.0-rc.7
当前版本兼容性
已在当前目录版本验证
声明的 Harness 范围
未声明
声明的平台
未声明
适用 Profile
web
构建授权
未检测到需要
权限声明
未声明
外部服务
未声明
遥测声明
未知
未发现已知风险标记

这不是安全背书;安装前仍应查看源码、权限和配置。

查看证据与判定范围

验证仅覆盖标出的来源、版本和 Harness 环境,不代表未来版本仍然兼容。

  • github:lifeopsgo/dsh-capability-toggle-plugin#5e27bd537605b21d8134e3192db50b6359e80356
  • 插件已在隔离环境完成加载检查。

README

查看源文件

dsh-capability-toggle-plugin

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

platform tests release license

English · 简体中文

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.

Quick start

Requires Node.js ≥ 22.6.

dsh plugin --profile web add github:lifeopsgo/dsh-capability-toggle-plugin#v1.1.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 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-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

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.
  • 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).

评论

0
最新优先