DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Llm Approver — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
L

@dsh-external/dsh-llm-approver

Llm Approver

LLM pre-review for sandbox-escalation approvals: an independent-context LLM gate answers sandbox escalation requests before they reach the user, falling back to the user on any failure.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:Xpectuer/dsh-llm-approver#1009b55d358792d49de1e0bab5811cb8a71e29a3
READMECompatibilityVersions

Compatibility and provenance

Llm Approver is published as @dsh-external/dsh-llm-approver and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
9/10/2026

Versions

0.1.0stable
9/10/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
9/10/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in security-access.

Doctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consolePocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).Mobiledsh-mobileDeepSeek Harness mobile adaptation and secure access plugin, supporting LAN, remote connections, Android App, and mobile browsers.DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.

README

dsh-llm-approver

LLM pre-review for sandbox-escalation approvals in the DeepSeek Harness web GUI.

When the session sits in the workspace-write-llm permission preset, a sandbox escalation retry (sandbox_permissions on bash/pwsh/fs tools) is first judged by an independent-context LLM call — the request contains only the pending command and its justification, never the conversation history:

  • ALLOW → the call runs immediately (allowed-once); the user is never prompted.
  • DENY, timeout, error, unparsable output, tool-call output, abort → the request falls through to the existing web UI approval prompt unchanged.

The gate is fail-closed: it can only grant, never reject, and every failure mode degrades to the user. Sessions in any other preset pass through synchronously with zero behavior change.

Installation

Requires dsh with a profile (~/.dsh/profiles/web for the web GUI) and pnpm available.

Quick (scripts)

# from a clone of this repo:
./scripts/install.sh                 # install into the web profile (from GitHub)
./scripts/install.sh --profile tui   # install into another profile
./scripts/install.sh --source file:/path/to/dsh-llm-approver  # local source

./scripts/uninstall.sh               # remove from the web profile
./scripts/uninstall.sh --profile tui # remove from another profile

Each script edits the profile's package.json (bundle + dependency, keeping both lists intact), runs pnpm install, verifies the composed tree, and prints the restart reminder. Both are idempotent.

Manual

Edit ~/.dsh/profiles/web/package.json:

{
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "@dsh-external/dsh-llm-approver"
      ]
    }
  },
  "dependencies": {
    "@dsh-external/dsh-llm-approver": "github:Xpectuer/dsh-llm-approver"
  }
}

For local development instead of GitHub, use a file reference: "@dsh-external/dsh-llm-approver": "file:/path/to/dsh-llm-approver".

2. Install and verify

cd ~/.dsh/profiles/web
pnpm install
dsh web --dump-config | grep -A2 llm-approver   # row must appear
# the preset table must contain workspace-write-llm:
dsh web --dump-config | grep workspace-write-llm

3. Restart dsh web (the web profile has no HMR; a restart is the only way to load a new bundle). A second instance for testing can be started without touching the running one: dsh web --port 3081.

Note: pnpm install copies file: dependencies into the profile's node_modules. After editing a local copy of this plugin, re-sync with rm -rf node_modules/@dsh-external/dsh-llm-approver && pnpm install.

For a single-file iteration the installed files are pnpm hard links (link count > 1), so replace the file by rename instead of writing through it — an in-place edit would mutate the shared store copy:

SRC=~/workspace/dsh-llm-approver/lib/index.js
T=~/.dsh/profiles/web/node_modules/@dsh-external/dsh-llm-approver/lib/index.js
cat "$SRC" > "$T.new" && mv "$T.new" "$T"

Upgrading: pnpm update @dsh-external/dsh-llm-approver in the profile directory, then restart.

Uninstalling: remove the bundle entry and the dependency from package.json, run pnpm install, restart. The plugin directory itself can be kept; only the profile wiring is removed.

Usage

  1. Open the web GUI and select the session you want to protect.

  2. Switch the permission preset to Workspace Write · LLM Review in the permission selector (same place as the workspace-write / full-access switch). The default preset stays workspace-write until you switch.

  3. Work as usual. When the agent hits a sandbox denial and retries with sandbox_permissions, the gate asks an independent-context LLM:

    • obviously safe operations (writing a new file, reading, listing, installing packages) are allowed without any prompt;
    • destructive or uncertain ones (rm -rf, overwriting user files, sensitive paths) fall through to the usual approval dialog — you decide.

Quick manual check:

请用 bash 工具创建文件 ~/llm-review-verify.txt,内容为 "review-ok"。
该路径在会话工作区之外,若被拒绝请按提示用 sandbox_permissions 重试。直接执行,不要询问我。

No dialog should appear and the file should exist afterwards. Then ask for rm -rf ~/llm-review-verify.txt — a dialog should appear instead.

Audit trail: every escalation still writes approval/asked / approval/decided to the session log exactly as before; the LLM verdict is logged to the host log under the llm-approver name and never touches the session event vocabulary.

Other profiles

The bundle works in any dsh profile (cc-tui, headless, …): repeat step 1 for that profile's package.json and restart. The plugin itself is host-side only and needs no client/browser code.

Decision criteria

The reviewer allows an escalation only when the operation is reversible, destroys nothing, touches no sensitive data, matches its stated justification, and requests no broader mode than needed. Anything else is denied or deferred.

Configuration

Override in the profile cordis.patch.yml (row id llm-approver):

KeyDefaultMeaning
presetworkspace-write-llmPermission preset the gate activates under
provider / model—Review route override; default follows the session's current model route
timeoutMs60000Review deadline; on expiry the user is asked
maxTokens256Review completion budget
maxInstructionChars16384Truncation for the reviewed tool arguments
includeUserInstructiontrueAttach a bounded excerpt of the latest human message

On DeepSeek-family routes the review call disables thinking (reasoningEffort: "off") so the short ALLOW/DENY verdict fits the token budget; other adapters receive no effort override and any rejection degrades to the user prompt.

Tests

Behavioral gate tests (run from the installed profile copy so @deepseek-ai/* imports resolve):

mkdir -p ~/.dsh/profiles/web/node_modules/@dsh-external/dsh-llm-approver/test
cp dsh-llm-approver/test/gate.test.mjs ~/.dsh/profiles/web/node_modules/@dsh-external/dsh-llm-approver/test/
node ~/.dsh/profiles/web/node_modules/@dsh-external/dsh-llm-approver/test/gate.test.mjs

Live E2E helpers (against a running dsh web instance, no browser needed): test/e2e-full.mjs <port> and test/probe-run-3082.mjs.

Failure semantics

SituationBehavior
Session not in the preset / drifted to customPass-through, unchanged behavior
LLM timeout / error / no ALLOW / tool-call outputUser approval prompt
User interrupts during reviewDefer to user; service resolves cancelled
Missing callId or no matching tool/call eventUser approval prompt
Gate cannot read the session (harness API drift, missing projection)User approval prompt
approval/policy = neverRejected by the service before this gate runs
Plugin row fails to loadThe permission preset row is independent and still applies

Audit: approval/asked / approval/decided are recorded by the approval service exactly as before; LLM verdicts go to the host log (llm-approver), never to the session event vocabulary.