Introduction¶
DeepSeek Harness (DSH) exposes all skills and MCP servers to the model by default, which often leads to the problem of “tools that shouldn’t be loaded for this project getting loaded anyway” in multi-project workflows. The existing dsh-workspace-scope can filter skills per workspace, but it only offers binary control (on/off) and doesn’t support unified project-file-based configuration. dsh-workspace-capabilities builds on top of this by adding three-state control, MCP instruction section masking, and writing configuration into the project directory for easy team sharing.
Plugin Overview¶
dsh-workspace-capabilities is a DSH client plugin maintained by HosheaLi. Its core value: it determines whether a skill appears in the model’s available_skills directory on a per-workspace basis, and blocks MCP servers irrelevant to the current project — both the tool schemas and the server instructions prompt sections are masked.
Three States¶
The plugin classifies skills into three states:
| State | available_skills |
Tool invocation | /skill-name gesture |
Use case |
|---|---|---|---|---|
pinned (default) |
✅ | ✅ | ✅ | Frequently used skills in this workspace; left to the model’s own selection |
manual |
❌ | ❌ | ✅ | Auto-injection disabled; invoke via panel click or manual input |
off |
❌ | ❌ | ❌ | Completely unrelated to this workspace |
The default is pinned, so installing the plugin won’t cause any behavioral change. You can then mark unwanted skills in your workspace.
Configuration Files¶
Configuration is two-tiered: project-level takes priority, global-level serves as the fallback.
Project-level configuration lives at .dsh/skills-scope.json in the project root:
{
"version": 1,
"default": "pinned",
"skills": {
"writing-for-agents": "manual",
"comfy-*": "off"
},
"mcp": { "comfy": false }
}
Global-level configuration lives at $DSH_HOME/settings/skills-scope.json:
{ "version": 1, "default": "pinned", "skills": {}, "mcp": {} }
- Project root follows DSH’s detection logic: the nearest ancestor directory containing
.git; falls back to the current cwd if none is found. - The
mcptoggle controls two layers simultaneously:falseboth denies the server’smcp__<server>__*tools from the agent’s schema and registers an emptymcp:<server>prompt section in that agent’s scope, masking the server instructions registered bydsh-mcp-clientat the host level. - Matching priority: exact name > wildcard (longest matching pattern wins) >
default. - Write strategy:
mkdir -p→ write to a temp file →rename; the entire read-modify-write chain is serialized on the same path; unknown top-level keys are preserved as-is; if the file exists but is not valid JSON, writing is refused and an error is reported. - Panel behavior: the panel only writes to the project level (falls back to global level only when no project level exists). When the project root equals the home directory, the project level is skipped and only the global config is read/written.
Installation & Activation¶
Three installation methods are currently available:
- Install from the plugin marketplace index (recommended):
- Go to Settings → Plugins and enable Custom plugin indexes under “Experimental plugins”;
- Switch to Discover, click Add index source, and pastehttps://cdn.jsdelivr.net/gh/HosheaLi/dsh-workspace-capabilities@main/index.json;
- Click Install on the “Workspace Capabilities” entry. - One-line npm install (current version
0.1.1):
dsh plugin add dsh-workspace-capabilities
- Pinned-version Git install:
dsh plugin add github:HosheaLi/dsh-workspace-capabilities v0.1.1
After installation, the plugin automatically registers its client slot — no additional configuration needed.
Typical Usage¶
Suppose you have a multi-project repository where the frontend project doesn’t need the writing-for-agents skill, but the backend project does:
In frontend/.dsh/skills-scope.json:
{
"version": 1,
"default": "pinned",
"skills": {
"writing-for-agents": "manual"
},
"mcp": {}
}
In backend/.dsh/skills-scope.json:
{
"version": 1,
"default": "pinned",
"skills": {
"writing-for-agents": "pinned"
},
"mcp": {}
}
This way, when you switch to the frontend workspace, the skill is only available via manual invocation and won’t be auto-injected into the model’s directory.
Use Cases & Notes¶
- Ideal for developers who need multi-project collaboration and want to partition skills and MCP resources by directory.
- Currently macOS only; a Windows version is in development.
- The host baseline requires
engines.dshto be>=0.2.1-rc.2 <0.3.0. - Cannot be installed alongside
dsh-workspace-scope: both register the same client slot id and will conflict. - The plugin runs with the current DSH process privileges. It’s recommended to review the source code and license before installing.
Conclusion¶
dsh-workspace-capabilities turns “per-project isolation of skills and MCP” into a configurable, shareable plugin through three-state control and MCP instruction section masking. For developers who need to manage multiple project contexts within the same host, this is a finer-grained control solution than a simple “binary toggle.”
- Plugin directory page: https://www.skillhub.cn/plugins/HosheaLi/dsh-workspace-capabilities
- GitHub repository: https://github.com/HosheaLi/dsh-workspace-capabilities