ShehabYahya/DSH-Tool-Gate

DSH Tool Gate is progressive capability gating for DeepSeek Harness: it keeps large specialist MCP tool schemas in the registry but out of an agent's visible surface until enable_toolset loads them, which the author measured as cutting a fresh session's visible tool-schema footprint from about 31.5K to 6.7K tokens while exposing the original native tools on demand.

DSH Tool Gate is progressive capability gating for DeepSeek Harness. DeepSeek Harness sends every visible native tool definition to the model, so large MCP suites can consume tens of thousands of context tokens even in a conversation that never uses them; Tool Gate keeps specialist capability groups in DSH's real registry but removes their schemas from one agent's visible surface until that agent explicitly loads the capability with enable_toolset. There is no mcp_search or generic mcp_call proxy - once enabled, the model sees and calls the original native DSH/MCP tools directly, while other suites stay hidden behind one tiny launcher. In the author's own Blender and Godot MCP setup this reduced the fresh-session visible tool-schema footprint from about 31.5K to 6.7K tokens, and a doctor/check CLI diagnoses an existing installation with machine-readable compatibility output.

Infrastructure & Deployment ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add dsh-tool-gate

Copied verbatim from the README's 'You can also use DSH directly' block; the README's preferred path is the self-checking installer npx dsh-tool-gate install --profile web once the package is published.

Compatibility

Tool Gate distinguishes tested DSH releases from newer unverified ones and does not reject a release merely because its version number changed; at runtime it probes the DSH APIs it actually requires and, if they are incompatible, fails open by disabling itself without installing restrictions so native tool visibility is unchanged. Savings depend on the number and size of specialist tool suites you normally expose, and the README reports its own measured setup rather than a universal claim (fresh-session visible tool schemas ~31.5K to ~6.7K tokens, a 78.7% reduction, with total initial context ~37.1K to ~9.8K tokens).

Details

Alternatives

1m01m0/deepseek-harness-desktop · AIcivilization/dsh-vps-manager · AlliotTech/deepseek-harness-docker

More plugins in Infrastructure & Deployment

Browse more in Infrastructure & Deployment

Guides for Infrastructure & Deployment plugins