DeepSeek Harness Plugin

goodjin/dsh-superpowers

Stars ★ 0 Downloads (30d) 973 Category Skills Added 2026-10-09 npm @goodjin2/dsh-superpowers

Runs Superpowers as an agent preset and gives each skill its own subagent model from a Settings table, so TDD, debugging and verification no longer all inherit the parent model.

Install

# from npm (prebuilt)

dsh plugin --profile web add @goodjin2/dsh-superpowers

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

dsh plugin --profile web add github:goodjin/dsh-superpowers

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

Run Superpowers — spec-driven development — as a DeepSeek Harness agent preset, with a different subagent model for every skill, chosen from a Settings page.

The problem it solves: Superpowers is a heavily skill-based methodology, but in a default harness every subagent runs on whatever model the parent is using. Running systematic-debugging on a big model and writing-good-tests on a cheap one is the obvious thing to want, and there is no first-class way to get it.

What you get

A preset, not just a plugin Ships the 15 Superpowers skills and the persona that makes the agent actually follow the six-phase method
Per-skill model settings A Superpowers section in Settings: one dropdown per skill, plus a row for subagents that aren't bound to a skill
One dispatch tool delegate_skill — reads the table, starts the child on that model, names the child session after the skill
The model is visible A subagent's composer shows which model it is actually running on, read-only
It cannot break your install The host row is fault-tolerant by construction; DSH starts and stays usable even if this plugin fails entirely

Install

Two halves, two steps. The plugin is global — Settings section, model table, tool module, self-check. The preset is the selectable mode — skills, persona, tool rows. On DSH 0.2.x the preset ships WITH the package as a declaration row, so installing is all it takes.

From GitHub (the package is not on npm — install straight from the repository):

dsh plugin --profile web add goodjin/dsh-superpowers

That is the whole install: Superpowers appears in the preset selector. (Older DSH builds read the preset from ~/.dsh/.agent-presets/superpowers/; 0.2.x does not, so there is no directory to copy.)

To make it the default preset:

agent-presets:
  default: superpowers

Otherwise just pick Superpowers from the preset selector in the UI.

Upgrading

Re-running the install command updates everything — the plugin half and the preset, which travels with the package. There is no copied directory to keep in sync.

Configure

Open Settings → Superpowers. Each row is one skill; the last row covers subagents dispatched without a skill. Choices are read on the next dispatch — no restart, no preset edit.

Routes are stored in the profile patch's superpowers-delegation-settings loader row (DSH 0.2.x keeps plugin config there, not in settings.yaml), so you can also edit them by hand in cordis.patch.yml:

- id: superpowers-delegation-settings
  name: "@goodjin2/dsh-superpowers"
  config:
    defaultProvider: minimax-cn
    defaultModel: MiniMax-M3.1-Flash-Preview
    skillModels:
      verification-before-completion:
        provider: xiaomi-token-plan-cn
        model: mimo-v2.6-pro

Values set in settings.yaml before upgrading are migrated automatically on first boot — the migration only fills fields you have not already set, so it never overwrites a later hand-edit.

Resolution order per skill: the skill's own pin (including「复用主会话模型」, which is stored as a sentinel and omits agentOptions so the child uses the parent session's model), then the default pair from the「其他子代理」row (same sentinel supported), then nothing — which also inherits the parent's route. Settings「跟随默认」on a skill row clears that skill's pin so the default pair applies; it is not the same as「复用主会话模型」, which is honored even when a default pair is configured.

Verifying an install

node ~/.dsh/profiles/web/node_modules/@goodjin2/dsh-superpowers/scripts/check.mjs 3080 <token>

The token is in the URL you opened DSH with; it changes on every restart. The check reports each host-side dependency this plugin has, individually. After a DSH upgrade, run it first — see below.

The key line is route.exists: it POSTs the browser channel directly. When the host half silently failed to register its route (the bug fixed in v0.2.1), the row stayed "active", nothing logged anything, and only this probe could see the 404. Do not skip it.

Upgrades and compatibility

DSH has no per-plugin version pinning: the plugin is resolved from the profile at start. A DSH upgrade that moves an internal API produces no error — the server boots and this feature quietly stops working. That is the failure mode this plugin was built to survive rather than to prevent.

Supported DSH versions: >=0.1.5-rc.2 <0.3.0 (declared in peerDependencies as @deepseek-ai/dsh-tools). Outside that range the Desktop plugin panel marks the plugin incompatible and blocks activation — that gate is the only signal this plugin gets when DSH moves under it.

  • The host row is wrapped so it cannot stop DSH from starting. Verified by fault injection: with the row throwing, DSH boots and all 54 client entries still mount. The plugin degrades to "no per-skill pins".
  • The settings page shows a self-check line at the top of the Superpowers section — green when every dependency is where the plugin expects it, red with a per-item explanation when not.
  • Client-side failures are isolated per entry by the host's plugin loader, so a broken client half shows a banner and leaves the rest of the UI working.

If the check reports a failure, the item name tells you which dependency moved.

Layout

Path
lib/index.js Host row: settings namespace, the browser channel, the self-check endpoint
lib/client.js Browser row: the Settings section, the composer model label
lib/skill-delegation.js The delegate_skill tool
lib/settings-schema.js The stored settings shape and route resolution
cordis.patch.yml The two composition rows this plugin adds
preset/ The agent preset and the 15 Superpowers skills
scripts/check.mjs Post-upgrade compatibility check
scripts/test.mjs Load-safety and degradation tests, run in the checkout and against the installed copy

License

MIT — see LICENSE. The bundled skills are from obra/superpowers, also MIT; see THIRD_PARTY_NOTICES.md.

Version anchor tags

This repo participates in the container's DSH version-correspondence mechanism: every plugin repo carries tags named dsh-<dsh版本> (e.g. dsh-0.2.2-rc.1), each an annotated tag recording the dsh version it was verified against, the check result, and the date. The tag is the immutable "known-good coordinate" of that dsh version — a snapshot of main taken the moment the whole-plugin row check went green on every installed host.

  • Why tags instead of releases: the desktop app reads this checkout by path and the web install pulls repo#ref — a git tag is already the furthest installable form, so no npm publish or GitHub Release is needed.
  • Rollback: scripts/pin-to-dsh.sh 0.2.2-rc.1 (from the container) checks out the tag in every repo at once; scripts/check-host-rows.mjs --report shows which repos are on the anchor for the running dsh version.
  • Do not move or delete a dsh-* tag; it is a rollback coordinate. A follow-up fix on the same dsh version adds a -p2 (then -p3) suffixed tag instead.
  • New tags are cut after each dsh upgrade, as step 4 of the upgrade runbook — see the container's AGENTS.md for the full flow.

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.