Preface¶
A common contradiction when running agent evaluations in DSH is the need to allow models to read/write the workspace and run tests, while simultaneously preventing out-of-bounds access to the host machine, unauthorized network connections, or the launching of sub-agents that could prolong evaluation time. Manually wrapping things in containers or one-off scripts often leads to disconnection from the DSH session and settings page, making it difficult to manage task materials and time-limit rules consistently.
dsh-eval-guard (maintainer huhu23333) is an evaluation guard plugin categorized as admin-security in the DSH community plugin directory. Once enabled, it constrains the filesystem scope, network, and sub-agent capabilities of all user main conversations, and provides wall-clock time limits along with the installation and single-workspace evaluation for eleven types of evaluation tasks. Repository: https://github.com/huhu23333/dsh-eval-guard; Directory Page: https://www.skillhub.cn/plugins/huhu23333/dsh-eval-guard.
What is this¶
In one sentence: Evaluation guard for DSH—it restricts the filesystem to the workspace, disables networking/sub-agents, allows configurable wall-clock limits, and installs evaluation task packages (like tank) via the settings page.
The plugin injects into the DSH Web client (settings and session UI) in the form of a Cordis patch. It relies on Linux user namespaces, bubblewrap (bwrap), and a native supervisor (requires gcc for building). The current package version is 0.7.2, license MIT.
Core Constraints (After enabling “Evaluation Guard”)¶
The following behaviors apply to all user main conversations; turning off the master switch will clear all deadlines and stop constraints.
Filesystem and Capability Boundaries¶
- Read and write access is restricted to the session workspace only; paths outside the workspace (including
/tmp) are inaccessible. - Networking, sub-agents, Agent Team / cross-agent communication, and reading other workspaces are prohibited.
- A tool blacklist is configurable; unknown tools not listed in the blacklist are allowed by default, but DSH built-in and dsh-ops tools undergo parameter path auditing.
Wall-clock Time Limits¶
Time limits and the “Evaluation Guard” master switch are two sets of states; when each user message is sent, the current timeLimitEnabled and timeLimitMinutes are used to create or clear the deadline for that session.
- Enable time limit:
deadline = current time + time limit minutes at that moment; subsequent changes to minutes, switching tasks, or toggling the limit will not alter the existing deadline. - After disabling the time limit, sending a message to a session that already has a deadline will clear that specific session’s deadline; other sessions are unaffected.
- Re-enabling the time limit does not automatically restore deadlines for existing sessions; timing only restarts upon the next user message.
- Each session times independently; when the deadline is reached, it terminates only that session and its sub-agents/background tasks.
- Turning off the “Evaluation Guard” master switch clears all deadlines.
When selecting a task on the settings page, the “Max Duration + Time Limit Switch” is written as the task’s default value (users can modify it further):
| Task Type | Default Time Limit |
|---|---|
| Original 5 meow-ai-arena tasks | 90 minutes, enabled by default |
| Commit0 single repo | 480 minutes, disabled by default |
| SWE-Bench Pro single task | 1440 minutes, disabled by default |
| FeatureBench single feature | 1440 minutes, disabled by default |
| Neural-CPP pure C++ tensor backend | 1440 minutes, disabled by default |
| Neural-FP32 pure C++ operations and performance | 1440 minutes, disabled by default |
| Neural-CIFAR image classification training from scratch | 1440 minutes, disabled by default |
Task Installation and Materials¶
The settings page allows installation of 11 task packages. Installation runs as a background task (it does not interrupt if you leave the settings page; progress and logs are in $DSH_HOME/eval-guard/jobs/<job-id>/).
Original 5 competition tasks (from meow-ai-arena, MIT, commit 6bd738b, 2026-10-16): Tank Battle, Warehouse Scheduling, Encirclement, Bomberman, Capture the Flag. The Linux packaging version places workspace.zip into the workspace (adapting baseline to Linux ELF, warehouse to single-player 90 minutes, etc.).
3 long-duration single tasks: Commit0 (tinydb), SWE-Bench Pro (ansible vars), FeatureBench (seaborn regression). During installation, the host-side setup clones at a fixed commit, creates .venv, and installs dependencies. Upon completion, it cleans up .git, setup.sh, etc.; the agent runtime remains network-disabled and runs tests using the workspace .venv.
3 pure C++ projects: Neural-CPP (tensor backend), Neural-FP32 (operators and performance), Neural-CIFAR (CIFAR-10 training). Neural-CPP installation extracts workspace.zip to the workspace root and removes setup.sh; the agent starts from the root CMakeLists.txt, using pure C++17 without Python/OpenCL/third-party libraries. Neural-CIFAR installation prepares the 50k train split; the hidden 10k test is placed in the evaluation directory hidden/ by dsh-eval-guard/neural-cifar-eval/fetch_cifar.py and does not enter the workspace. CIFAR-10 cache directory: ~/.dsh/eval-guard/cache/cifar10/, downloads use .download.lock exclusively; the settings page allows configuration of CIFAR download mirror and CIFAR download proxy (only for CIFAR downloads).
Installation can be configured separately: Git remote (only listing sources with verified fixed commits), pip mirror, Git proxy and pip proxy (can write 127.0.0.1:7897, auto-appends http://; leaving blank clears inherited proxy variables of the same name). If installation is cancelled or fails, and the workspace was empty before installation started, files written during this attempt will be deleted and the workspace cleared; if the original workspace had content, this cleanup is not triggered.
After successful installation, the settings page provides a prompt which can be clicked to “Fill into new session”.
Single Workspace Evaluation¶
The “Evaluate current workspace” on the settings page evaluates only one result and does not generate a leaderboard. eval/ contains built-in single-result scripts for the 11 tasks. Evaluation also runs as a background task, with logs and results written to the jobs directory.
- Commit0: Unit test pass rate.
- SWE-Bench Pro / FeatureBench: Hidden F2P/P2P; resolved if all pass, and returns passRate.
- Neural-CPP: Independently compiles hidden C++ tests in a temporary directory, returning accuracy, matmul speedGflops, etc.; hidden tests are not in the workspace.
- Neural-FP32: Calculates MRE and speed against PyTorch reference values for every operation on
build/nn_task; summary items are listed first, there is no unified score. - Neural-CIFAR: Retains operator evaluation, and tests accuracy/FPS on the hidden validation set using 4 threads and all logical CPUs.
- Tank / Warehouse / Land / Bomberman / CTF: Official engines/judges, returning only the candidate results of the current workspace.
Installation and Enablement¶
The plugin is built with the DSH source code; install to the current profile using the repository script (not the dsh plugin add concatenation command):
scripts/install.sh web
If the script cannot find the dsh command:
DSH_CHECKOUT=/path/to/deepseek-harness scripts/install.sh web
Then restart dsh web.
To build the plugin body from source:
node_modules/.bin/tsdown
node scripts/build-native.mjs
Runtime Dependencies (from README):
- Linux + unprivileged user namespaces
- bubblewrap (bwrap)
- gcc (to build native supervisor)
- unzip (to install task materials)
- Python 3 (for long task setup and evaluation)
DSH Compatibility (package.json): Declares compatibility with 0.2.0-rc.1, 0.2.0-rc.2, and other releases (the list is fully enumerated in the repository).
Typical Usage Flow¶
- Run
scripts/install.sh webas described above and restart the Web client. - Open “Evaluation Guard” in the settings page, and configure the tool blacklist, time limit minutes, and task type defaults as needed.
- Select the task and workspace, configure clone source / pip mirror / proxy, then start the background installation; check logs in the jobs directory or settings page.
- After installation, use “Fill into new session” or develop manually in a new session; the agent is subject to workspace and network restrictions.
- When development reaches a milestone, select the same workspace on the same settings page and click “Evaluate current workspace” to view single-result metrics.
Long-duration task (Commit0, etc.) evaluation relies on the .venv within the workspace; Neural series evaluation compiles/runs hidden tests in an isolated environment, and the agent cannot read the hidden test source code.
Use Cases and Notes¶
Suitable for: Teams or individuals running self-hosted DSH Web environments on Linux who need reproducible agent evaluation boundaries (files, network, sub-agents, session-level wall-clock) and want to conveniently install materials for meow-ai-arena, Commit0, SWE-Bench Pro, FeatureBench, or the Neural series.
Important Notes:
- The plugin runs with the permissions of the current dsh process; you should read the repository source code and the MIT license before installation to ensure the sandbox policy meets your security expectations.
- Linux only; the README states there is an extremely small TOCTOU window between seccomp path checks and
open. bwrap read-only/no-network mounts serve as the second layer of boundary. - Process auditing only covers intercepted file/network syscalls.
- The DSH plugin ecosystem is independent of DeepSeek / Hunyuan; the SkillHub directory page is a community collection, not an official app store.
Conclusion¶
dsh-eval-guard consolidates “workspace-only access, no networking or sub-agents, session stop on deadline” and “one-click installation of 11 task types into the workspace, single-workspace scoring” into the same set of settings pages and jobs pipelines, making it suitable for using DSH as a local evaluation bench.
- Directory Page: https://www.skillhub.cn/plugins/huhu23333/dsh-eval-guard
- Source Code and Full Documentation: https://github.com/huhu23333/dsh-eval-guard