Preface¶
When running agent tasks in DeepSeek Harness (dsh), many tool calls trigger permission approvals: clicking every time interrupts the flow; if all are approved, irreversible or overprivileged operations might slip through. Common approaches are to maintain manual approval or tighten the sandbox via session-level presets—neither is ideal; the former is tedious, while the latter cannot make fine-grained judgments based on “this specific call.”
dsh-jev-auto-approve hooks into DSH’s approval chain: for pending approval requests, it sends a calibrated set of yes/no questions to TypeSafe Jev; if all three thresholds are passed, it replies allowed-once, otherwise it proceeds with the original manual prompt. It does not modify session permission presets or the sandbox. The plugin is categorized under admin-security, maintained by Vultwo, and currently has 0 GitHub stars. The README states this capability is in an experimental phase; Jev may make false judgments or be induced by text in tool parameters. Auto-approval is a convenience feature, not a security boundary.
What is this¶
In short: dsh-jev-auto-approve is a DSH plugin for the Web configuration interface that uses the Jev model to review pending tool calls, automatically granting allowed-once for low-risk and contextually clear requests, and provides an English settings page to manage the TypeSafe key and usage statistics.
Repository: github.com/Vultwo/dsh-jev-auto-approve
Community Directory: skillhub.cn/plugins/Vultwo/dsh-jev-auto-approve (Independent site, no official affiliation with DeepSeek / Hypersphere)
Core Features¶
Approval Logic¶
For every approval request, the plugin sends three questions to Jev and compares them against default thresholds:
| Question | Meaning | Default Threshold |
|---|---|---|
safe |
Operation is reversible or intent is clear, and does not destroy data, leak keys, force-push, or modify security settings | >= 0.85 |
irreversible |
If an error occurs, it would irreversibly delete/overwrite existing data or cause hard-to-revoke external changes | <= 0.15 |
authorized |
The current user’s instruction or task context clearly authorizes the operation’s target and scope | >= 0.80 |
If all three pass → plugin replies allowed-once. If any fails, a key is missing, Jev errors, or review times out → passed to normal manual approval. mode: shadow only logs how it would handle it and always passes to manual. Read-only plugin_manager actions (list_plugins, list_bundles) can take a deterministic fast path without Jev; setting allowReadOnlyPluginManager: false makes them go through Jev like other actions.
The plugin only handles requests that require approval; regular workspace operations that do not need approval are unaffected and cannot override the never approval strategy.
Web Settings & Usage¶
After installation, paste the TypeSafe API key in Plugins -> Jev auto-approve -> Configure, save, and Test connection (success prints the Jev model and latency). After running tasks, the Usage card displays review count, auto-approve count, manual-pass count, input/output tokens, estimated cost, and the last review. The key is written to DSH credential storage (TYPESAFE_API_KEY), not into the profile patch; plaintext is not shown again after saving the page.
Key Source in No-UI Environment¶
- Home directory file:
printf '%s\n' 'YOUR_TYPESAFE_KEY' > ~/.dsh/jev-api-key && chmod 600 ~/.dsh/jev-api-key - Environment variable:
export TYPESAFE_API_KEY=...before starting DSH - Plugin config: Write
apiKey(plaintext, accept risk yourself) in thejev-auto-approveline ofcordis.patch.yml
Session Commands¶
| Command | Action |
|---|---|
/jev-auto |
Displays switch, mode, key source, thresholds, counts, total tokens, recent review, log path |
/jev-auto test |
Initiates a real Jev request to validate key, endpoint, and model |
/jev-auto on / /jev-auto off |
Only toggles the enabled status for this process |
/jev-auto shadow / /jev-auto enforce |
Only toggles shadow / enforce mode for this process |
Installation & Enablement¶
Requirements: DSH 0.2.2-rc.1 (tested as per README), TypeSafe API key; the plugin uses DSH’s Node 20.3+ API, no extra npm dependencies. package.json shows current package version 0.2.5, license MIT.
Install from npm:
dsh plugin --profile web add dsh-jev-auto-approve
Install from GitHub:
dsh plugin --profile web add github:Vultwo/dsh-jev-auto-approve
Or install a prebuilt tarball:
dsh plugin --profile web add https://github.com/Vultwo/dsh-jev-auto-approve/releases/latest/download/dsh-jev-auto-approve.tgz
You can also paste the GitHub URL in Plugins -> Add plugin on the Web UI. After installation, if DSH prompts, enable the corresponding bundle.
Typical configuration steps:
- Open Plugins -> Jev auto-approve -> Configure.
- Paste the key in API key and Save key.
- Test connection to confirm connectivity.
- Run tasks and check statistics in Usage.
Configuration Overview¶
Bundle config is written in cordis.patch.yml; the settings page mainly manages the key and usage display. Fields are optional, common ones are:
| Key | Default Value | Description |
|---|---|---|
enabled |
true |
Master switch |
mode |
enforce |
enforce for auto-approve; shadow for record only |
baseURL |
https://api.typesafe.ai/v1/systemone |
Jev endpoint |
model |
jev-latest |
Model ID |
timeoutMs |
4000 |
Single review timeout |
safeThreshold |
0.85 |
Minimum probability for safe |
irreversibleMax |
0.15 |
Maximum probability for irreversible |
authorizedThreshold |
0.80 |
Minimum probability for authorized |
includeUserMessage |
true |
Whether review status includes the latest user message |
allowReadOnlyPluginManager |
true |
Whether to use fast path for read-only plugin_manager |
logFile |
~/.dsh/jev-auto-approve.jsonl |
Decision JSONL log |
See the Configuration table in the repository README for the full list.
Data & Logs sent to TypeSafe¶
Review status includes tool name, approval reason, tool parameters (up to 6000 characters), and working directory; unless includeUserMessage is false, it also includes the latest user message (up to 1200 characters). Environment variables, credentials, or full session history are not sent; the API key only appears in the HTTP Authorization header.
A JSON line is appended to logFile for every decision; logs do not contain the API key or full tool parameters. The README provides examples of fields like outcome, scores, latencyMs, and usage.
Use Cases & Notes¶
Suitable for: Running tasks in the DSH Web environment, holding a TypeSafe key, wanting to reduce clicks on “clearly low-risk and contextually authorized” calls, while keeping manual fallback on failure.
Please read the repository SECURITY.md before use. The plugin runs with the current dsh process permissions; before installing, it is recommended to review the source code and MIT license. Do not treat auto-approval as the sole security boundary. Sensitive work and irreversible operations should still rely on manual confirmation and stricter session policies.
Ending¶
dsh-jev-auto-approve connects Jev to DSH’s approval chain: via thresholded safe / irreversible / authorized judgments, it replies allowed-once for single requests, leaving everything else unchanged. Configuration and usage can be completed on the English settings page; for headless environments, you can switch between key sources using files, environment variables, or cordis.patch.yml.
- Directory page: https://www.skillhub.cn/plugins/Vultwo/dsh-jev-auto-approve
- GitHub: https://github.com/Vultwo/dsh-jev-auto-approve