DeepSeek Harness Plugin

sakikoTGW/dsh-plugin-resolver

Stars ★ 3 Downloads (30d) 2,290 Category Development & Runtime Added 2026-10-19 npm dsh-plugin-resolver

Agent-facing plugin installer that resolves DSH-compatible versions, handles ambiguous names, and verifies the loader entry after install.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-plugin-resolver

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

dsh plugin --profile web add github:sakikoTGW/dsh-plugin-resolver

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

I built this because handing plugin installs to an agent kept going wrong. The community catalog is 8 MB and takes about 90 seconds to pull from GitHub Pages. There are 406 groups of same-name plugins; dsh-browser alone has nine owners. The latest tag doesn't always accept the running core, and when it doesn't, the host quietly disables the plugin on boot. GitHub-only repos often ship no build output, so main points at a file that doesn't exist and the plugin installs but never loads.

Those checks were being redone every time. I put them into the plugin, so an install is one tool call.

If you are the agent, start with llms.txt. The full contract is in agent.json.

Here it is running

Doing this by hand took 45 tool calls and over 20 minutes. The plugin does it in 6 calls and about 3 minutes, with no retries. The measurements and the ablation are in BENCHMARK and ABLATION.

Install

Plugin market npm

I usually just tell the agent:

Install dsh-plugin-resolver, then use it to install dsh-browser.

Market index source:

https://sakikoTGW.github.io/dsh-plugin-resolver/market/index.json
dsh plugin --profile <profile> add dsh-plugin-resolver

GitHub source or tarball:

dsh plugin --profile <profile> add github:sakikoTGW/dsh-plugin-resolver#<commit>

How it works

Stage Tool What comes back
Search plugin_search Catalog hits, owner, stars, npm name, ambiguity
Resolve plugin_resolve Package, install spec, registry, source-build need
Install plugin_install Changes to profile, lockfile, plugin-sources
Verify plugin_status Bundle, loader entry, fiberPhase
Report return value Applied state, restart decision, next step

plugin_install writes the environment. The other three are read-only.

Ecosystem

  • dsh-plugins: the plugin set and catalog
  • dsh.so: L5 run-verified
  • dshbase: Verified
  • Market index source: https://sakikoTGW.github.io/dsh-plugin-resolver/market/index.json

What it covers

Capability npm GitHub-only Explicit spec
Same-name disambiguation ✓ ✓ ✓
Compatible version ✓ ✓ Yours to give
Source build — ✓ Per spec
Post-install check ✓ ✓ ✓
Restart decision ✓ ✓ ✓

Features

  • It doesn't pick between same-name plugins for you. Search returns every candidate with owner, stars and npm name, and you pass owner= or a full spec.
  • Versions are solved against engines.dsh and same-namespace peers. What comes back is an install spec you can review first.
  • For GitHub-only packages with no build output, it runs pnpm install and pnpm run build, then installs through link:.
  • After install it reads back the bundle, loader entry and fiberPhase. The manager's actual result decides whether a restart is needed.

Validation

npm test   # 45 passing: 35 logic + 10 harness

The machine-readable entry lives in agent.json under validation. CI is in test.yml.

Contract for agents

{
  "tools": ["plugin_search", "plugin_resolve", "plugin_install", "plugin_status"],
  "versionRule": "engines.dsh first; otherwise same-namespace @deepseek-ai/dsh peers",
  "ambiguity": "owner= or a full spec",
  "writes": ["profile", "lockfile", "plugin-sources"],
  "restart": "plugin manager result"
}

The full contract is in agent.json, and the agent index is llms.txt. Issues go to GitHub; more plugins are in dsh-plugins.

Reference

Web version: sakikoTGW.github.io/dsh-plugin-resolver/docs/

Topic Where
Four tools docs/TOOLS.md
Version selection docs/VERSION-SELECTION.md
Install paths and restarts docs/INSTALL-PATHS.md
Architecture docs/ARCHITECTURE.md
Evidence docs/EVIDENCE.md · BENCHMARK · ABLATION
Tests and CI docs/TESTING.md
Known limits docs/LIMITATIONS.md
Feedback and security docs/SECURITY.md · Issues
License LICENSE

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.