DeepSeek Harness Plugin

jidekaixin2dian/dsh-context-budget

Stars ★ 3 Category Tools & Capabilities Added 2026-10-19

Manage MCP servers and skills in DeepSeek Harness, and hide tool groups from the next prompt with token-cost estimates.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:jidekaixin2dian/dsh-context-budget

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

Bring only the tools you need into the next prompt.

中文 · npm · 0.2.7 · Marketplace · Download · Changelog

Toolgate brings MCP servers, skills and context budgets into one DeepSeek Harness (DSH) settings page. Hide tool definitions by server to focus the next prompt on the current task, then restore them when needed. MCP configuration and connections stay in place.

Tool grouping illustration; example counts are not measured savings

Hide tool definitions without disconnecting MCP

Tab What it does
Budget Estimate context usage, hide groups / all MCP / the largest group, restore tools
MCP servers Add, edit, enable, disable and remove stdio or streamable-http servers
Skills Search, create and toggle by Session workspace; move eligible local skills to trash

Hide tool groups unrelated to the current task and restore them in one click when needed. MCP configuration and running processes stay in place; the next prompt receives the updated tool list. The page estimates tokens from schema and description length; the estimate is not a measurement of cost or speed. Settings-page budgets apply to all sessions and subagents; permitted session overrides affect only that session.

Install and update

Requires DSH >=0.2.1-rc.2 and Node >=24. CI verifies DSH rc.2 / rc.3 / rc.4 / 0.2.2-rc.1 / 0.2.2-rc.5 / 0.2.3-alpha.3.

Search for dsh-toolgate, author jidekaixin2dian, in the marketplace. Both npm and GitHub sources support version checks. Once the catalog recognizes the npm package it prefers npm; existing users can check under installed plugins. Catalog and registry data may take time to refresh.

Desktop users install, update and remove plugins through the in-app marketplace, restarting when prompted. Web/CLI users can stop the corresponding session and run this command for the web profile; repeat it to update:

dsh plugin --profile web add @jidekaixin2dian/dsh-toolgate --registry=https://registry.npmjs.org

Offline packages are available in Releases. While Desktop owns a running profile, use its plugin manager and respect profile locks.

Get started

  1. Open Settings → Toolgate and review groups under Budget.
  2. Hide groups this task does not need. Changes apply from the next prompt and can be reversed.
  3. Before changing MCP or skills, verify the configuration scope or selected workspace Session.

MCP edits preserve unrelated configuration and comments, back up before writing and reject ambiguous or read-only sources. Secret fields are retained by default and never returned in plaintext. Audit entries exclude secret values.

Skills retain source identity. Only matching local .dsh/skills/<name> directories can move to .trash; shared, bundled, custom and virtual sources stay read-only.

toolgate action=status
toolgate action=session disabled=["mcp:github", "skills"]
toolgate action=reset

mcp matches all MCP; mcp:<server> matches one. Settings apply globally to sessions and subagents, while Session overrides affect only that Session.

Set allowSessionOverride: false to prevent the model from changing or resetting Session overrides. The settings page still controls the global gate.

Existing .tgz or local installations can use the same command in the same profile to switch to npm; GitHub installs remain updatable.

Boundaries

Project and feedback at the bottom of every settings tab opens this plugin's GitHub repository or a new issue.

  • Hiding tools is context budgeting, not a permission sandbox. MCP processes keep running; permitted Session overrides can restore tools.
  • Token estimates use schema / description length. Neither estimates nor illustrated counts establish cost or latency savings.
  • Some dynamically scoped tools cannot be hidden; use their manager to unload them. Skill ZIP / folder import is not implemented.
  • MCP management writes configuration. Review changes to hand-edited files. Backups under DSH_HOME/backups/toolgate/ retain the latest 20 after successful writes and may contain original secrets; keep them private.
  • Audit records are stored in DSH_HOME/toolgate-audit.jsonl. Management requires host authentication and the current profile, failing closed if either is missing.
  • Plugin updates require an app restart; existing MCP configuration changes can hot reload through the host.

For Web/CLI removal, stop the corresponding session, run dsh plugin --profile web remove @jidekaixin2dian/dsh-toolgate, then restart the session.

Downloads

GitHub archives npm Combined
467 679 1,146 requests

Snapshot: 2026-11-06; npm data through 2026-11-04. GitHub counts installation archives; npm excludes 0.0.0-stage. Includes repeat installs and automation, not unique users.

Development and verification · Security · Issues

MIT · Independent community plugin, not affiliated with DeepSeek.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.