rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:dongliuwuzhong-arch/DSH-purge
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH 0.2.2-rc.3 compatibility fork · 1.3.3
📚 Chinese docs: docs/zh/README.md — install/upgrade, full patch table, backup & revert semantics, shadow-test method, known limits, audit reports (A1–A8).
🔴 Read this first: host patches need a precondition to take effect.
The official desktop build seals its host code in
resources\app.asar, while patches can only be written into the unpackedresources\app\. Electron resolves in the orderapp.asar→app→default_app.asar, so as long as the asar exists, the directory is never reached."Patches are applied" therefore does not mean "patches are in effect". The only reliable check is whether the status panel still prints
✗ app.asar: still present— that line means everything is idle.Since 1.2.1 the post-upgrade self-heal is automatic; see
docs/SEALED-ASAR.md.dsh-purgeis a prompt and host-patch plugin for a local DeepSeek Harness install. It adds a Clean dock beside the session title for managing prompts, rule sets, skills, and host patches. Nothing is written to the host until you explicitly apply it.
This repository is a compatibility fork of the upstream project, tracking DSH 0.2.2-rc.3. It keeps the upstream patch system and injection flow, and maintains the host-version mappings, desktop path handling, backup/revert checks, and install notes. It is not a from-scratch replacement, and it does not hide where it came from.
The dsh-purge button beside the session title opens a right-hand dock. It currently has one page: Clean.
| Area | What it does |
|---|---|
| Patches | Grouped patch status, Apply, Restore, Uninstall |
| Prompt | Edit prompt-inject.md as the session override |
| Rule sets | Manage AGENTS.md / CLAUDE.md sets; enabling one writes under the current $DSH_HOME |
| Skills | Import a zip or folder into this host's official skills/<id>/SKILL.md; DSH owns matching and loading |
| Own servers | Register one IP or exact hostname per line in net-scope-allow.txt |
| Rewind | Undo one turn / undo the last round via the official session.fork({ atSeq }) behavior; also /rewind |
prompt-inject.md is a user file. Revert and uninstall keep it by default.$DSH_HOME/rules/.strict / fallback / always, controlling whether DSH's workspace baseline section is kept.<file>.dshpurge.bak; repeated applies are idempotent.dsh-purge --status
dsh-purge --apply
dsh-purge --revert
dsh-purge --uninstall
dsh-purge --edit
dsh-purge --sync
/purge status | apply | revert | uninstall | edit | help
/rules list | use <id> | create <id> | delete <id> | reset | help
/skills list | import <zip-or-folder> | create <id> [description] | delete <id> | help
/rewind
Model tools: purge_status, purge_apply, purge_revert.
dsh web$DSH_HOMEThis package is not on npm.
add dsh-purgereturns 404. Install from the repository archive, a local directory, or a manual copy.
The ordinary dsh CLI refuses --profile desktop. Use the desktop CLI shipped inside the install directory:
NODE="<DSH install>/resources/runtime/primary-runtime/dependencies/node/bin/node.exe"
CLI="<DSH install>/resources/app/dsh/node_modules/@deepseek-ai/dsh-desktop-host/lib/cli.js"
"$NODE" "$CLI" plugin --profile desktop add <this repo archive or main.tar.gz URL>
If the install still has resources/app.asar, replace resources/app/ with resources/app.asar/ in the paths above.
dsh plugin --profile web add <this repo archive or main.tar.gz URL>
The repository ships an installer that does not run pnpm, does not use the network, and does not apply patches:
node scripts/install-offline.mjs --profile desktop --dsh-home "$HOME/.dsh" --dry-run
node scripts/install-offline.mjs --profile desktop --dsh-home "$HOME/.dsh"
node scripts/install-offline.mjs --verify --profile desktop --dsh-home "$HOME/.dsh"
Or install directly from a zip:
node scripts/install-offline.mjs --zip dsh-purge-1.2.7.zip --profile desktop --dsh-home "$HOME/.dsh"
The installer validates the package, copies it to $DSH_HOME/plugins/dsh-purge, updates the profile package.json, links node_modules/dsh-purge, and writes desktop-install.txt. It does not run pnpm, Apply, or restart DSH.
$DSH_HOME the running host actually uses. It must contain profiles/, and profiles/<web|desktop>/package.json must have "name": "dsh-profile-web" or "dsh-profile-desktop".$DSH_HOME/plugins/dsh-purge. Both the folder name and package.json "name" must be dsh-purge.package.json:"dsh-purge": "file:../../plugins/dsh-purge" to dependencies."dsh-purge" to dsh.profile.bundles.New-Item -ItemType Junction -Path "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-purge" -Target "$env:USERPROFILE\.dsh\plugins\dsh-purge"
After install, the dock button should appear, and /purge status should print the current DSH_HOME and patch status.
Adding the plugin to a profile does not patch the host by itself. Apply is explicit; the default configuration does not click it for you.
Runtime files live under $DSH_HOME:
prompt-inject.md — user promptrules/ — rule setsskills/ — user skillsnet-scope-allow.txt — own-server listdsh-purge/ — plugin state, backup index, restart guard filesPlugin source lives at $DSH_HOME/plugins/dsh-purge. A profile's node_modules/dsh-purge is an install-time copy, not a link to the source; after editing source, run dsh-purge --sync or reinstall to update the runtime copy.
There can be two sets of numbers, and that is not a bug:
dsh-purge --status defaults to the Web surface, where more patch definitions match.Compare numbers only within one surface. When an optional package is not installed, its patches show as skipped and do not block the apply. A few skipped / missing_file rows on the current host are normal; the important number is pending = 0.
@deepseek-ai packages, the local profile, and user override files under the harness home. It is not a public scanner and ships no attack payload.dsh.cmd shim; original or missing shim status does not affect chat.If this fork saves you time, star the upstream project too.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。