v1.0.0 DeepSeek Harness ≥ 0.2.2-rc.3 MIT

Clear capability boundaries
for every workspace

Decide which Skills and which complete MCP servers a workspace can see, and keep every child Agent inside its parent's scope. Readable policy, explainable behaviour, observable state.

.dsh/capability-scope.yml
# Skill sources
projectSkills: true
userSkills: false
bundled: true

# Name-level rules
allow: []
deny: [<skill-name>]
include: [<skill-name>]

# Whole servers, never single tools
mcpServers: [<server-name>]
What it solves

One policy across the whole capability surface

No preset changes and no need to rebuild existing sessions: the policy is applied from the shared service layer, so it reaches every mode.

S

Workspace-level Skills

Control project, user and bundled Skills separately, using an allow list, deny entries and cross-group includes.

M

Whole MCP servers

Filtered by the mcp__<server>__* namespace, so every tool of a server is shown or hidden together.

Child Agents only narrow

A child Agent's effective scope is the intersection of the workspace, its parent and its explicit selection. Descendants never gain access by accident.

01 · Policy

Policy semantics

The policy lives at <workspace>/.dsh/capability-scope.yml. When the file is absent, standard behaviour applies: every source and every MCP server stays available.

Skill resolution orderfirst match wins
deny → include → allow (when non-empty) → source group switch

mcpServers is optional: omit it to allow every server now and in the future, pass [] to hide all MCP tools, or list names to allow only those complete servers.

Granularity: the plugin deliberately offers no per-tool MCP switches. A server is the stable, understandable unit of policy.
02 · Delegation

Child Agent scope

subagent_with_skills creates a spawn child Agent and accepts optional skills and mcpServers. The resulting scope follows one rule:

Workspace
Parent
Explicit selection
  • Omitted: snapshot and inherit the parent's currently visible scope;
  • []: provide no capability of that kind at all;
  • Explicit names: any unknown or parent-hidden name rejects the whole request.
Security boundary: this limits capability visibility; it is not an operating-system sandbox. Whoever can modify the workspace policy file can also change the limit.
03 · Observability

Panel and status

Open the checklist from the session row: 「⋯」→「工作区能力范围…」. Servers that are configured but currently offline stay listed, so saving unrelated settings never drops them.

skillFilterInstalledwhether the shared Skill filter is installed
mcpFilterInstalledwhether the shared MCP filter is fully installed
connectedwhether that server registers tools right now

If either filter is not fully installed, the panel shows a dedicated warning instead of silently claiming the policy is active.

04 · Operational notes

Boundaries and guarantees

  • Workspace scan failures fail open, so a session never silently loses every Skill; a corrupted child-Agent scope record fails closed.
  • MCP wrapping rolls back completely on failure; no state is left where only some tool read paths are filtered.
  • Policies are written to a same-directory temporary file and then replaced with rename; replacement semantics have currently been verified only on macOS.
  • No outbound requests, no telemetry, no lifecycle scripts; network use is limited to the same-origin panel endpoint on DSH's own web server.
Installation

Install into your DSH profile

Restart DSH after installing, then open the panel from any session's row menu.

ShellGitHub source
dsh plugin --profile <profile> add github:versot/dsh-workspace-capability
v1.0.0Node ≥ 22.12.0