The official version of deepseek harness installs the open source armor-breaking plug-in - unlimited N generation creates new problems
The problem of armor-breaking mode cannot occur
Why the original bag “won’t fit”
The original package comes with two hidden problems, either of which will prevent "Armor Breaking Mode" from ever appearing in the dropdown:
| # | question | as a result of |
|---|---|---|
| 1 | preset-rows.js The complete standard line table is copied, including @deepseek-ai/dsh-tool-office | under this profile never started → Default is judged broken → UI filters out the entire |
| 2 | The plug-in only registers the preset, but the profile package.json / cordis.patch.yml There is no line to mount it | The resident instance will not load at all → no one goes to the registry to register "armor-breaking mode" |
I changed 4 places
① ~\.dsh\profiles\desktop\package.json — add dependencies
"dsh-infinite-gen-n": "file:../../plugins/dsh-infinite-gen-n",
② ~\.dsh\profiles\desktop\cordis.patch.yml —Add resident mount line (append at the end)
- insert:
- id: infinite-gen-n
name: dsh-infinite-gen-n
③ preset-rows.js(3 copies synchronized) — Switch optional tool lines
const HAS_OFFICE = process.env.GENN_OFFICE === "1";
const HAS_SCHEDULE = process.env.GENN_SCHEDULE === "1";
...
{ "id": "tool-schedule", "name": "@deepseek-ai/dsh-tool-schedule", "disabled": !HAS_SCHEDULE },
{ "id": "tool-office", "name": "@deepseek-ai/dsh-tool-office", "disabled": !HAS_OFFICE },
This is a key part. your original
redteamThe default has already been used in the same locationdisabled: true, the comment says "Not starting it will cause the entire default to be broken and the mode drop-down to be filtered." gen-n just missed this step.
④ pnpm-lock.yaml / node_modules\.modules.yaml / node_modules\dsh-infinite-gen-n — Rewritten by packaging script
node.exe pnpm.mjs install --offline --no-frozen-lockfile
Three pitfalls encountered during installation (will also be encountered when reinstalling elsewhere)
- Do not use the original package
install.ps1——It is an old-fashioned three-part naked copy (plugins\、node_modules\、profiles\<p>\node_modules\), DSH 0.2.2 uses the profile managed by pnpm, and the naked copy directory will be used next time.pnpm installCleared and will not be written to the registry. - Manual copy
lib\The directory will lose files —— Via PowerShellCopy-Item -RecurseCopy containing 32 sub-fileslib\host-patch\A silent copy leak occurred (the copy only contains 27 files,core.jsmissing),importdirectERR_MODULE_NOT_FOUND. Correct approach: Delete the target directory first and then useCopy-Item "$src\*" $dst, copy finishedFile-by-file SHA256 comparison, the missing ones will be filled according to the relative path. - must first
Stop-ProcessDisable DSH and then activate profile —— pnpm has a lock when the host is open, and the old process caches the module graph.
Verification method (three steps of self-inspection after installation)
# 1. 语法 + 可导入
node --check index.js
node --input-type=module -e "const m=await import('./index.js'); console.log(Object.keys(m))"
# 期望:IMPORT-OK apply,inject,name
# 2. 行表不再有未启动的可选行
node -e "import('./preset-rows.js').then(m=>m.ROWS.filter(r=>r.disabled===true).forEach(r=>console.log(r.id)))"
# 期望含:tool-bash / tool-schedule / tool-office / tool-plugin-manager / tool-plugin-market
# 3. 探针集
node tools/run_prompt_bank.mjs --lint # 期望:probes=45 … LINT-OK
The final judgment criterion is only one line of log:
Get-Content "$env:USERPROFILE\.dsh\dsh-infinite-gen-n-trace.log" -Tail 4
# ✅ 期望:[preset-declare] OK id=armor
# ❌ 若是 BROKEN id=armor detail=<某插件>: never started → 把 <某插件> 那一行同样加 disabled
Before public display 10 Replies (16 discussions in total). please Log in or Register an account View the full floor-in-floor discussion, download attachments and participate in the interaction.