dsh-tool-switch: DeepSeek Harness Session-Level Tool Toggle
dsh-tool-switch is an MIT-licensed plugin by suqing114 for DeepSeek Harness that controls, on a per-session basis, the set of tools visible and callable to the model. The "Tools" button below the composer, the /tools slash command, the tool_switch tool, and the local HTTP interface all write to the same state.json file. Under the hood, it leverages agent.ctx.tools.restrict to synchronize the prompt, PTC, and execution layer. Disabled tools are omitted from the tool list, and any attempt to invoke them returns UNKNOWN_TOOL. Changes take effect starting from the next message. Because the plugin records the disabled set rather than the enabled set, late-arriving MCP tools remain available by default. To install, run pnpm add in the profile and add the package to dsh.profile.bundles, or use the one-click install option on the plugin page.
Read More