dshp-plugin-panel

September 2, 2026 Β· View on GitHub

npm MIT DSH

Session-level skill and plugin management for DeepSeek Harness β€” a browser panel that controls your skills, plugins, and session MCP, all in one settings section.

πŸš€ Session-level skills | Visual panel | Plugin & MCP management | No restart for most changes | One-command install

Highlights | Who it is for | Quick start | Skill management | Plugins and MCP | How it works | Troubleshooting | FAQ

🌐 English | δΈ­ζ–‡

Version note. This README describes the current release. If a documented capability is missing in your build, check the installed version against the changelog in CHANGELOG.md.

Plugin Panel: the global layer, the available pool, and the current session's introduced set β€” all in one view

Highlights

Skills

  • Session-level skill management. Introduce and remove skills per session β€” each session keeps its own isolated set, shadow overrides stay local, nothing leaks between sessions, and a session's introduced set is replayed when it resumes after a host restart.
  • A single skill view. The Skills tab shows the global layer (~/.dsh/skills), your available pool (~/.dsh/.skill-pool/local/), and the current session's introduced set β€” search, expand details, and introduce, activate, or tag with a click.

Plugins & MCP

  • Plugin management. Enable/disable user-installed plugins, add new ones, and promote bundle plugins to hot-pluggable β€” all from the Plugins tab, without editing config files.
  • Session MCP. Add and tear down session-scoped MCP connections per session, independently from global config.

Who it is for

  1. You want a visual overview and click control of your skills and plugins in one settings section.
  2. You want skills scoped per session β€” what one session introduces stays out of every other.
  3. You want to enable/disable or hot-plug DSH plugins without restarting the host.
  4. You want per-session MCP connections without hand-editing config.

Quick start

1. Install

dsh plugin --profile web add @super_camel/dsh-plugin-panel

Or install from source:

dsh plugin --profile web add github:kuramiwan/dshp-plugin-panel

2. Restart and open the panel

Restart dsh web, then open Settings β†’ 插仢青板 (Plugin Panel). You get two tabs:

  • Skills β€” the global layer, your available pool, and the current session's introduced set.
  • Plugins β€” the plugins DSH has loaded, plus session MCP.

3. Try it

In the Skills tab, search your pool and introduce a skill into this session β€” it becomes available only here. In the Plugins tab, toggle a plugin and see it apply immediately (for patch-mounts).

Skill management

The Skills tab is the everyday entry point. It shows three groups:

  • Global layer (~/.dsh/skills) β€” process-level skills visible to every session; activate or deactivate them, and tag them. (Takes effect globally.)
  • Available pool (~/.dsh/.skill-pool/local/) β€” skills you manage yourself. Place a folder here to add a skill, delete it to remove it. (These skills are not active anywhere until introduced.)
  • This session β€” the skills introduced into the current session; remove one here and it disappears immediately. (Takes effect for this session only.)

Note: To introduce a skill at the session level, first deactivate it from the global layer β€” then it can be introduced from the available pool at any time.

Skills are shown with search, expandable details, and badges marking a skill as global or introduced.

Introducing a skill is a single click, and the panel confirms the introduced set is persisted β€” it is replayed automatically when this session resumes after a host restart:

One click β€” Add to this session β€” and the skill is live for the current session only

Power tools β€” slash commands and model tools

The same actions are also available without the panel, for automation or for the model:

/skill-browse            list your available skills
/skill-search <query>    search your available skills
/skill-introduce <id>    introduce a skill into this session
/skill-list              list this session's skills
/skill-remove <id>       remove a skill from this session

The model can also call session_skill_browse, session_skill_search, session_skill_list, session_skill_introduce, and session_skill_remove itself.

Plugins and MCP

The Plugins tab lists the plugins DSH has loaded, grouped by how they are mounted:

  • Built-in β€” shipped with DSH, read-only.
  • User-installed (patch) β€” mounted from cordis.patch.yml; enable/disable takes effect immediately, no restart.
  • User-installed (bundle) β€” mounted from dsh.profile.bundles; enable/disable requires a restart.
  • MCP β€” session-level connections, managed separately.

Plugins tab: hot-pluggable patch plugins with live enable/disable, cold mounts, and the MCP section

Adding a plugin

The Add plugin button lets you register a plugin from the panel β€” give its package name (or an id) and the panel installs and mounts it, so it appears among the managed plugins.

Making a bundle plugin hot-pluggable

A plugin installed with dsh plugin install that declares dsh.bundle.patch is mounted as a bundle: DSH reads dsh.profile.bundles once at startup, so enabling or disabling it only takes effect after a restart.

The Make hot-pluggable button converts a bundle plugin to a patch plugin, so you can enable and disable it without restarting:

  1. Click Make hot-pluggable on the plugin. The panel removes it from dsh.profile.bundles and rewrites the installed package to drop its dsh.bundle declaration (an in-place fork), so DSH stops treating it as a bundle.
  2. Restart DSH.
  3. Click Enable. The plugin is now mounted from cordis.patch.yml, and enable/disable takes effect immediately.

Note: The rewrite happens inside node_modules, so pnpm update or dsh plugin update overwrites it and restores the dsh.bundle declaration β€” promote again after updating. The original package.json is backed up as package.json.bak if you need to revert.

Invasive plugins

Some plugins do not confine themselves to DSH's plugin seams. They monkey-patch DSH's internal services (e.g. subprocess, sandbox, terminals) or mutate process.env at runtime, and may copy files one-way (e.g. agent presets) on install.

The panel can only mount and unmount a plugin β€” it cannot undo what a plugin already did inside the process:

  • Runtime monkey-patches are irreversible. A plugin that patches service prototypes without returning a disposer keeps its changes in memory after you disable it; only a DSH restart clears them.
  • One-way file syncs persist. A plugin that copies files (like agent presets) on install does not remove them on uninstall; you must delete them yourself.
  • Sandbox bypass is a real trade-off. Some Windows compatibility plugins disable the file sandbox for shell tools. Disabling the plugin does not restore the sandbox until restart.

Before installing a plugin that reaches into DSH internals, review what it patches and whether it can be cleanly reverted.

Session MCP

Session MCP connections are scoped to the current session. Whitelist a server, connect it for the session, and disconnect when done β€” the panel keeps it out of the global config.

Model tools for MCP

The model can manage session MCP itself with session_mcp_list, session_mcp_connect, and session_mcp_disconnect.

How it works

DSH's own model is everything is a plugin: the host is a composition whose loadable rows (cordis composition lines) are all plugins β€” a skill is the document capability a plugin provides, MCP is an mcp-client composition row, and a host plugin is a patch/bundle row. The panel does not introduce a second model: it gives that composition layer a management view, and only distinguishes skills vs plugins as presentation when you manage them.

flowchart TB
    subgraph PANEL["dshp-plugin-panel"]
        PANELNOTE["a patch plugin itself, mounted from cordis.patch.yml<br/>adds a management view over the DSH composition layer"]
    end

    PANEL -->|"exposes"| VIEW["Management view: the manageable face of DSH's composition layer<br/>everything-is-plugin (every capability is a composition row)"]

    VIEW --> SKILL["Skill capability (session-level)<br/>introduce = register: points back at the pool folder, no file copy<br/>persisted to &lt;poolRoot&gt;/.session-skills/&lt;sessionId&gt;.json, replayed on resume"]
    VIEW --> MCP["MCP capability (session-level)<br/>mcp-client composition row Β· session-scoped connect/disconnect"]
    VIEW --> HOST["Host plugins (process-level)<br/>patch: hot mount (edit cordis.patch.yml β€” hot reload)<br/>bundle: cold mount (edit dsh.profile.bundles β€” restart)"]

    HOST -->|"can promote"| PROMOTE["bundle β†’ patch γ€ŒMake hot-pluggable」"]

    subgraph FRONT["Frontend management view (presentation only)"]
        TABSKILLS["Skills tab<br/>global layer / available pool / this session"]
        TABPLUGINS["Plugins tab<br/>built-in / patch / bundle / MCP"]
    end

    VIEW -.->|"same semantic layer, presentation only"| FRONT
  1. Everything is a plugin. Skills, MCP, and host plugins are all loadable rows of the same DSH composition; they differ in where they mount β€” not in kind.
  2. Two mount dimensions. Session-level capabilities (an introduced skill, a connected MCP) live in the agent context and are isolated per session; process-level host plugins are loaded into the host and affect everything.
  3. Introducing a skill is a pure registration. No files are copied β€” the registration points back at the pool folder (~/.dsh/.skill-pool/local/). The introduced set is saved to <poolRoot>/.session-skills/<sessionId>.json and replayed automatically when a resumed session comes back after a host restart.
  4. The frontend only presents the split. The same underlying capabilities are shown as a Skills tab and a Plugins tab; the slash commands and model tools are the same management surface without the GUI.

A fuller diagram β€” exact paths, the resume trigger, shadow overrides, and the patch/bundle mounts β€” lives in docs/diagrams/capability-mount.md.

Troubleshooting

ProblemWhat to do
Command results don't appear in a fresh empty sessionThe DSH client intentionally does not treat command nodes as session content. Send a message or refresh, or run the command in a session with existing history.
A skill I placed in the available pool doesn't show upMake sure it is a subdirectory of ~/.dsh/.skill-pool/local/ containing a SKILL.md.
A skill in the global layer (~/.dsh/skills) doesn't show upMake sure it is a subdirectory of ~/.dsh/skills containing a SKILL.md; the global layer is shown in the Skills tab's global group.
Something is wrong and you can't tell whyRun the plugin debugger to dump state + recent error logs in one shot (see below).

Debugging the plugin

The panel ships a standalone, read-only diagnostic script that inspects plugin state and recent error logs in one command β€” it does not require the host to be running and never modifies files.

pnpm debug                       # text dump: pool scan + session introduce-set + config + consistency check
pnpm debug --json                # same data as structured JSON
pnpm debug --root <dir>          # override the pool root
pnpm debug --profile <dir>       # override the DSH profile root
pnpm debug --logs 20             # include up to 20 recent error/warn log lines

Note: The pnpm debug script is a dev/source tool. It is not shipped in the published npm bundle (which contains only lib/index.js, lib/client.js, and cordis.patch.yml) and requires Node β‰₯ 22.6 β€” clone the repo and run it from the source tree.

Structured logs are appended to <dshHome>/.dshp-plugin-panel.log (JSON Lines) via ctx.logger, so the debugger's error clues and the live host logs are the same data source.

Agent guide: the observability/debugging workflow (instrumentation rules, debugger protocol, compatibility, and the 5-step diagnosis) is codified for AI agents in docs/observability-sop.md.

FAQ

Does introducing a skill copy files?

No. Introduction is a pure session registration that points back at the original folder.

Are skills shared across sessions?

No. Introductions are per-session and isolated; shadow overrides are per-session only.

Does this package ship any skills?

No. It manages your own folders only β€” no bundled skills, no subscription, no catalog.

Why don't my installed skills show up?

If a skill isn't visible, check that it's a subdirectory containing a SKILL.md in one of the managed layers (local/ or ~/.dsh/skills), then refresh the panel.

Development environments

One dsh kernel, multiple isolated $DSH_HOME roots. Production uses the default root (~/.dsh). Development uses a project-local root (.dsh-dev/), completely separate from production β€” dev activity never touches ~/.dsh. Both roots run the official web profile (dsh-base + dsh-web-app + panel, the same composition as production); dev/test differ only in patch content. Model config & credentials are shared across roots via config.path pointing at the production files (zero copy, zero symlinks).

RootProfilePurpose
~/.dshweb (npm release)production
<repo>/.dsh-devweb (repo build)development (no fixtures)
<repo>/.dsh-devweb + fixtures patchtesting (dshp-test-plugin + test-mcp-stdio)

One-time build (per machine)

# 1. build the panel checkout (required once; lib/ is git-ignored)
cd dshp-plugin-panel && pnpm install && pnpm build

# 2. create the dev root + mount the panel (official entry point:
#    initProfile + pnpm add + reconcile bundles; `web` is the official
#    template so base + web-app come automatically)
mkdir -p .dsh-dev
DSH_HOME="$PWD/.dsh-dev" dsh plugin --profile web add "$PWD"

That's it. The wrapper scripts (./dsh-dev, ./dsh-test) auto-complete on first run: the credentials/settings sharing patch (config.path β†’ production ~/.dsh files), the web-app bundle guard (idempotently re-adds @deepseek-ai/dsh-web-app if the profile template ever omits it β€” prevents the silent-hang regression where the panel initializes with no web layer), and β€” for ./dsh-test β€” the fixtures patch (dshp-test-plugin row + test-mcp-stdio MCP bridge row, copying the fixture package in as a real copy, no symlink).

Daily usage β€” one command

./dsh-dev --port 3181        # development (DSH_HOME=.dsh-dev, web profile)
./dsh-test --port 3182       # testing (same root, web profile + fixtures)
dsh --profile web --port 3081 # production (default ~/.dsh, npm release)

The panel auto-detects which profile it runs in via ctx.baseUrl (set by dsh at boot to the profile directory) β€” no profileDir injection is needed.

Credentials / model config sharing

Development roots point settings and credentials at the production files via config.path (done automatically by the wrapper):

# .dsh-dev/profiles/<name>/cordis.patch.yml (appended by ./dsh-<name>)
- id: settings
  config:
    path: $HOME/.dsh/settings.yaml
- id: credentials
  config:
    path: $HOME/.dsh/.credentials.yaml
  • Model definitions & API keys are read from the production files (zero copy)
  • Dev roots keep their own sessions / skills / profiles β€” production is never written by development

Contributing

See CONTRIBUTING.md for development setup, building, and testing.

License

MIT Β© 2026 super_camel