DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Context Budget — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
C

@jidekaixin2dian/dsh-context-budget

Context Budget

Manage MCP servers and skills in DeepSeek Harness, and hide tool groups from the next prompt with token-cost estimates. Budget changes need no config edit or restart.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:jidekaixin2dian/dsh-context-budget#66f4979018f95dac618f812dbf183a0498e49f1c
READMECompatibilityVersions

Compatibility and provenance

Context Budget is published as @jidekaixin2dian/dsh-context-budget and currently resolves to version 0.3.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/18/2026

Versions

0.1.1stable
10/18/2026
0.3.1stable
10/18/2026

Related plugins

Loading related plugins…

Latest
0.3.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
Weekly downloads
0
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in integrations-communication.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseExperimental Plugin Market Bundle@deepseek-ai/dsh-experimental-plugin-market-bundleExperimental custom plugin markets: a Discover tab that browses and installs bundles from plugin market indexesWorkbuddy Connectdsh-workbuddy-connect将 WorkBuddy 桌面 App 包含的模型自动接入 DeepSeek Harness — bring WorkBuddy desktop app models into DeepSeek Harness with zero configuration.Ab Wechat Scrapedsh-ab-wechat-scrape--- description: "The out-of-tree wechat_scrape tool: retrieves WeChat official-account articles, filters promotional blocks, and saves each as a Markdown file, for maintainers of this machine's dsh profiles." kind: "package-reference" ---

README

dsh-context-budget

Manage MCP servers and toggle skills in DeepSeek Harness — and hide tool groups from the next prompt with token-cost estimates. Budget changes need no config edit, no restart and no MCP process churn; MCP server edits write the normal patch file and apply through HMR.

Context budget

Why

Every MCP tool is sent as a full JSON Schema on every request. A server with dozens of tools can quietly consume more context than the conversation itself. Configuration managers can add, remove or toggle servers, but the prompt is still paid on the next turn.

This plugin manages three things in one page:

  • MCP servers — list, add, edit, remove, enable/disable; writes the profile/global cordis.patch.yml and lets HMR apply it.
  • Skills — search, create, delete, and enable/disable one skill through a rank-0 override provider.
  • Prompt budget — group the effective tools by MCP server, hide a whole group, see the approximate cost, and restore it without restarting the MCP process.

Install

From GitHub (no build step; lib/ is included):

dsh plugin --profile <your-profile> add github:jidekaixin2dian/dsh-context-budget

For the official desktop app, install through its plugin manager if it manages the profile for you. Restart DSH once after installing the host half, then hard-refresh the web UI.

Use

Open Settings → Context budget:

  • Context budget tab:
    • All visible — clear every override;
    • Hide all MCP — one switch for every mcp__<server>__* group;
    • Hide largest group — the group with the biggest schema cost;
    • Lean — MCP + Skill + memory + schedule off;
    • per-server MCP rows, Skill catalog, memory tools, schedule tools.
  • MCP servers tab: add/edit/remove, enable/disable; stdio command/args/env or streamable-http URL/headers.
  • Skills tab: search, create/delete user or project skills, and toggle individual skills.

A read-only Core tools row is always kept.

Model tool:

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

mcp is a wildcard for all MCP servers; mcp:<server> targets one. The global budget applies to every session and subagent; action=session only overrides the current session.

How it works

The budget half applies ctx.tools.restrict({ deny }) on the agent scope during agent/pre-step. The tool schemas are removed from prompt assembly before the request is sent. It listens to tools/change, agent/created and agent/status so dynamic MCP additions and subagents get the restriction too.

The MCP tab edits the profile/global cordis.patch.yml line by line (unrelated rows and comments survive); DSH HMR applies the changed MCP row. The Skill tab registers a rank-0 override provider with modelInvocable:false for disabled names.

Token numbers are estimates from the serialized JSON schemas plus Skill catalog descriptions, not a provider tokenizer.

Compatibility

  • Dynamic MCP managers that register tools in the agent scope (for example lazy MCP loading) are respected: their tools are shown in the scoped count, but ctx.tools.restrict cannot hide scoped registrations. Use that manager's own unload.
  • Other MCP/Skills managers own their own rows and files; this plugin edits only @deepseek-ai/dsh-mcp-client rows it manages and its own skill override. tools/change picks up their changes.
  • dsh-context reads request headers; hiding tools here reduces its tool-schema row and the actual prompt together.

Limits

  • MCP processes stay alive when only the budget is used; this saves prompt tokens, not RAM.
  • MCP CRUD writes cordis.patch.yml; DSH HMR applies it. Review the diff if you hand-edited the file.
  • Skill toggles use the global skill registry; a skill discovered only in a scoped provider may not be hidable.
  • Skill file import from ZIP/folder is not implemented; create writes ~/.dsh/skills/<name>/SKILL.md or <cwd>/.dsh/skills/<name>/SKILL.md, delete moves to .trash.
  • Tool descriptions/schemas must be known before a restriction can be computed; a first request may calibrate the full baseline.
  • Host-half updates need a DSH restart; client-half updates need a hard refresh.

Development

npm test

Pure grouping rules are in lib/groups.js; the host and browser halves are hand-written ESM/CJS to keep the package dependency-free.

MIT.