DeepSeek Harness 插件

goodjin/dsh-superpowers

Star 数 ★ 0 下载量(近 30 天) 973 分类 技能包 收录于 2026-10-09 npm @goodjin2/dsh-superpowers

把 Superpowers 作为 Agent 预设运行,并在设置表里为每个技能单独指定子代理模型,测试、系统调试与收尾验证不再全部沿用父会话的模型。

安装

# npm 包(预构建)

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

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

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

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 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.

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。