Session Capability Toggle

Introduction

The DeepSeek Harness (DSH) plugin architecture allows developers to compose tools and skills as needed. However, once enabled by default, the model gains access to all available capabilities. In high-frequency or complex scenarios, this can introduce unintended behaviors or unnecessary resource consumption. The existing approach to adjusting the capability scope relies on preset configurations or session restarts, which are heavyweight operations with coarse granularity.

Capability Toggles is a client-side plugin that allows you to toggle tools and skills on or off per plugin group within the current conversation. Changes take effect immediately upon toggling—the very next model request reflects the difference—and the effect is scoped to the current session only, leaving other sessions unaffected.

Core Features

  • A “Capabilities” chip appears on the input card’s tool row. Clicking it opens a capability list grouped by plugin.
  • Three levels of granularity are supported: individual tool, individual skill, and entire group (plugin) toggles. Group headers support a partially-selected (indeterminate) state.
  • When a tool is toggled off, its schema is no longer included in the model’s next request. When a skill is toggled off, it disappears from the skill catalog, and typing /name in the input box will no longer inject it.
  • State is persisted per session. Different sessions do not interfere with each other, and state is retained after DSH restarts.
  • A “Restore All” button is provided to clear all toggled-off items in the current session with one click.

Installation & Enablement

This plugin has not yet been published to npm. You can install it using the following methods:

On DSH’s Plugins page, use “Add plugin” and point it to this directory (e.g., D:\codes\dsh-capability-toggles). It will be added to the current profile via link: and registered in bundles. Restart DSH after installation.

Method 2: Manually Edit the Profile

Add the following to the profile’s package.json (e.g., %USERPROFILE%\.dsh\profiles\desktop\package.json):

{
  "dependencies": {
    "@dsh-external/dsh-capability-toggles": "link:D:/codes/dsh-capability-toggles"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "@dsh-external/dsh-capability-toggles"
      ]
    }
  }
}

Then install dependencies and restart DSH:

cd "$DSH_PROFILE_DIR"     # e.g. ~/.dsh/profiles/desktop
pnpm install

The link: path points to the source directory. After modifying files in src/, you do not need to re-run install, but you must restart DSH for the host to reload the code.

Configuration

The bundle’s default configuration resides in cordis.patch.yml:

Key Default Description
stateFile '' → <DSH_HOME>/capability-toggles/state.json Where session state is stored (supports ~ and %USERPROFILE%)
inferGroups true Whether to infer groups for undeclared capabilities by prefix/provider; when disabled, only explicitly declared groups are shown
showEntry true Whether to display the “Capabilities” chip on the tool row

Typical Usage

  1. Find the “Capabilities” chip on the left side of the input card’s tool row (the row with attachments, permissions, model selection, etc.) and click it.
    The panel expands above the input card, matching its width. Ways to dismiss it include: clicking the chip again, clicking “Collapse” inside the panel, clicking anywhere outside the panel (main content, session list, input box), or pressing Esc.
  2. The panel is grouped by plugin and collapsed by default. Click a group header (or press Enter/Space when focused) to expand it. Once expanded, each item has a checkbox, with a “Tool” or “Skill” label at the start of each row.
  3. Unchecking toggles the item off, effective from the next model request:
    - Tool toggled off: the tool no longer appears in the model’s tool list.
    - Skill toggled off: it vanishes from the skill catalog (no summary is provided either), the skill tool cannot load it, and typing /name in the input box will no longer inject it.
  4. The group header checkbox acts as a bulk toggle at the plugin level. When partially toggled off, it shows an indeterminate state, and the header also displays on/total.
  5. Click “Restore All” to clear all toggled-off items in the current session.
  6. Group names prefixed with “Inferred” indicate items that have no declared affiliation and were automatically grouped by tool name prefix or skill provider.

Applicable Scenarios & Notes

  • This plugin runs with the current DSH process’s permissions. Review the source code and license before installing.
  • It only affects the current session. It does not alter the plugin’s own loading state, does not uninstall any plugin, and does not affect scoped tools.
  • If you want to reduce certain capabilities by default in a new session or all future sessions, use a preset instead of this plugin.
  • Tool invocations or skill content already present in the session history cannot be retracted after being toggled off. Toggling off only ensures they will not be used or loaded going forward.

Conclusion

Capability Toggles provides DSH with lightweight, instant capability control, making it ideal for fine-tuning the model’s available scope within a single conversation. Plugin directory page: https://www.skillhub.cn/plugins/xiafan68/dsh-capability-toggles; GitHub repository: https://github.com/xiafan68/dsh-capability-toggles.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye