ningbainb/deepseek-harness-desktop--packages-dsh-desktop-repair ↗★ 491
@linxin666/dsh-desktop-repair
用于修复暂存插件候选版本的修复代理。
AI 分析
桌面端内置的后台修复工具,在插件加载失败时自动运行。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ningbainb/deepseek-harness-desktop#f30137e7d72942d2cd851a0fa0713f596ed06ad6&path:packages/dsh-desktop-repair说明文档
阅读完整 README ↗dsh-desktop-repair
English | 中文
@linxin666/dsh-desktop-repair is the host-only repair bundle built into DeepSeek Harness Desktop. It is not a general chat plugin and is inert unless Desktop starts the managed desktop-repair profile with a private DSH_DESKTOP_REPAIR_JOB file.
When the normal Desktop profile fails twice, Desktop can copy only the affected Profile configuration and enabled plugin roots into an incident staging directory. This bundle uses the user's configured default model, with at most one configured fallback, to inspect and edit that candidate. Desktop verifies the candidate and applies it through a separate hash-checked rollback transaction. The model never edits the original Home directly.
Bounds
- At most two provider/model attempts per incident.
- At most twelve tool actions per job.
- Tools can list, read, write, move, or delete bounded files only inside declared staging roots.
- Checks are selected by a fixed registered name. The model cannot supply a command, shell string, working directory, or dependency installation request.
- Check processes run without a shell and with package-manager offline mode enabled.
- A job writes only a structured diagnosis, relative changed paths, check names, provider/model identifiers, and fixed outcomes.
Security model
Plugin files, manifests, comments, diagnostics, and command output are untrusted data. They cannot redefine the host policy or add tools. Jobs contain no original Profile path, project path, credential path, API key, session transcript, or Desktop install path. Credential-like files and filesystem-link escapes are rejected on every tool call. Raw model output and tool arguments are never copied into the result or product telemetry.
The bundle relies only on the public DSH Agent, default-model, Session, system-prompt, and Tool SDKs. It does not modify DSH source.
Development
pnpm --filter @linxin666/dsh-desktop-repair typecheck
pnpm --filter @linxin666/dsh-desktop-repair test