DeepSeek Harness Plugin

xlennart/dsh-auto-review-jev

Stars ★ 1 Category Security & Permissions Added 2026-10-13

Jev Review approval mode for DSH ^0.2.2-rc.1, reviewing each native/PTC inner tool call through System One (Jev or D3), with audit logs and a settings UI; requires the companion Jev host extension. Fork of gbthui/dsh-auto-review; do not install it alongside the upstream, as both gate the same tool-call approvals.

Install

# from a prebuilt release tarball

dsh plugin --profile web add -w "https://github.com/xlennart/dsh-auto-review-jev/releases/download/v0.2.1/dsh-auto-review-jev-0.2.1.tgz"

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:xlennart/dsh-auto-review-jev

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

Select Jev Review in the current-session permission menu or run /permission jev-review. The plugin does not change future-session defaults or other permission modes.

Version 0.2.1 targets DSH ^0.2.2-rc.1 and Node >=24.9.0, tested on exactly 0.2.2-rc.1. It requires the accompanying Jev host extension: named review registration, shared official Auto evidence, child inheritance and UI confirmation. Stock DSH does not supply every required API; missing integration APIs produce JEV_HOST_EXTENSION_REQUIRED. See compatibility and rollback. Distribution uses versioned GitHub Release tarballs.

Selected sessions use full host access with a review before every native and PTC inner tool call; outer run_code follows the official Auto exclusion. Ordinary project work may proceed automatically. Medium risk needs exact current authorization, and sensitive exfiltration is never approved automatically. Denied or uncertain root calls ask through the native approval chain once; delegated never-policy calls deny. Transport, evidence and protocol errors fail closed. Switching cancels current Jev activity; disabling drains it and returns sessions to workspace-write/ask. Missing integrations restore safely.

Configure a System One endpoint, model, credentials, timeout and confidence threshold in settings. Review evidence includes the cwd, project constraints, source-verified history, tool description/schema and full arguments. It is sent to the configured external reviewer. Jev and official Auto share one snapshot algorithm. reviewer.proxyURL configures an HTTP(S) proxy for Jev requests alone; when empty, host routing is retained. Other DSH requests keep their existing route.

Settings group service, credentials, policy and audit controls with aligned labels and inputs. Proxy, timeout, format, budget and retry controls are collapsed under advanced settings. Light/dark themes and narrow screens are supported. The host extension preserves selection on normal shutdown while live withdrawal still confines selected sessions. Pending calls and their matching schemas cannot be omitted by budgeting. Contradictory low-risk/deny long-context judgments still require approval; no threshold or consistency check is relaxed for a live probe.

Version 0.2.0-jev.6 supports the hosted D3 API: baseURL https://app.vllm-sr.ai/v1, model vllm-sr/d3-ultra, systemone.stateFormat json-string, maxLen 0. TypeSafe keeps the default object format. Evidence remains intact, and the byte budget includes the additional JSON escaping. D3's current free API is for non-commercial research/evaluation only; it logs requests and may use them for training. Do not send sensitive/confidential data or credentials. See the integration and validation record. The permission entry remains jev-review.

Version 0.2.0-jev.4 adds a request budget after the shared snapshot. systemone.maxRequestBytes defaults to 24000 UTF-8 bytes for the full serialized request. Authorization, constraints, checkpoints, project instructions and exact pending parameters remain complete. Whole historical facts are retained within the budget, prioritizing recent entries and skipping oversized ones. Omitted facts are explicitly unknown and cannot authorize medium-risk work or prove session-created cleanup. If required evidence alone exceeds the budget, execution stops before the network request. maxLen is a separate self-hosted max_len option, not a way to increase TypeSafe context limits.

Version 0.2.0-jev.5 adds bounded transport recovery. reviewer.transport.maxAttempts defaults to 3 and retryDelayMs to 300. Recognized transient network errors and HTTP 408/429/502/503/504/529 may retry with increasing delays and Retry-After support; all attempts share one timeoutMs deadline. Cancellation stops waiting. Reviews retain the same route and evidence, and tool bodies are never retried. Permanent authentication, 451, context, evidence, protocol and certificate errors are not retried. Sustained network outages still prevent execution.

Version 0.2.0-jev.3 requires confident risk classification for low risk, together with a model allow choice; no additional authorization-confidence threshold applies. Medium risk also requires confident authorization. Unclear risk and low+deny conflicts still ask. Every call remains model-reviewed without a tool-name allowlist.

Legacy policy, allowRules, breaker and fact-finding fields remain readable but do not participate in this mode. The global approval answerer and old commands are not installed. Missing or invalid confidence, unknown choices and high+allow never authorize execution. Audit records separate model decisions, approval outcomes and execution outcomes under policyVersion=dsh-auto-v2-jev-v7 without logging raw inputs, provider errors or credentials. Decisions also record the raw model choice, gateReason, threshold and any returned option probabilities. Evidence metrics record full/request/budget bytes and retained/omitted fact counts; recognized max_tokens_exceeded responses use HTTP_400_CONTEXT_LIMIT. review-retry records safe codes and delayMs; outcomes and displayed errors include attempts and available network codes.

Build with npm run build, check with npm run typecheck, run parser tests with npm test, and run the real Loader integration tests with npm run test:integration. Read the migration guide before upgrading or rolling back.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.