插件目录 / Developer / dsh-benchmark
dsh-benchmark
已验证 · 实测可装 dongsheng123132
功能简介
Developer 类别的 DeepSeek Harness 插件。
可用 — 实测通过,早期项目
Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-benchmark
Reproducible, deterministic benchmark evidence for DeepSeek Harness tools and plugins.
This project deliberately does not duplicate dsh-batch-regression, which runs one shell command repeatedly for median/distribution statistics. dsh-benchmark defines an evidence protocol around fixed cases: explicit target and suite revisions, file-derived target fingerprints, bounded argv-only subprocesses, raw measurements, versioned deterministic scoring, content-addressed reports, and baseline regression comparison.
The first release evaluates commands and JSONL runners, not subjective LLM quality.
Version 0.2.0 is a formal Codex plugin and standalone proof-only MCP server, and uses the namespace export shape required by the stock DSH Web Loader. A real Cordis boot regression test guards that loader contract.
Adjacent benchmark skills often grade Skill or LLM quality. This project stays at the deterministic execution-evidence layer: fixed target revisions and cases, raw bounded measurements without raw business output, versioned scoring, content-addressed reports, and baseline regression decisions.
Evidence model
An explicit manifest freezes:
- suite name and case revision;
- target name, claimed revision, and files used to recompute its fingerprint;
- executable, constrained working directory, warmup/repeat counts, timeout, output cap, and concurrency cap;
- fixed argv and optional JSONL stdin for every case;
- expected exit code, stdout/stderr SHA-256, and optional JSONL line count;
- scorer version, minimum pass rate, output-stability rule, and maximum median-latency regression.
Each run records warmup and measured observations separately: duration in nanoseconds, exit code, signal, timeout/output-limit state, output byte counts and hashes, JSONL validity, and every expectation check. Raw argv, stdin, stdout, stderr, inherited environment, timestamps, and hostnames are excluded from reports.
Safety model
shell: false; no command strings or shell interpolation.nodemaps to the current absoluteprocess.execPath. Other executables must be explicit workspace-relative regular files; PATH lookup is not used.cwd, target files, manifests, reports, and artifact directories cannot escapeworkspaceRootthrough traversal or symlinks.- Child processes receive a minimal deterministic environment instead of inherited secrets.
- Timeout, captured-output bytes, and concurrency are mandatory bounded manifest values.
- Secret-bearing manifest fields such as tokens, cookies, authorization, credentials, and custom environment secrets are rejected.
- Reports contain hashes and measurements, not command inputs or output bodies.
- Artifact writes are restricted to explicit
artifactDir, content addressed, exclusive, and verified by read-back SHA-256.
Run only trusted benchmark executables. The isolation above prevents accidental shell expansion and environment leakage; it is not an OS sandbox for malicious code.
Install in DSH
dsh plugin --profile benchmark add github:dongsheng123132/dsh-benchmark
The bundle registers:
dsh_benchmark_inspect— inspect protocol metadata and fingerprints without execution.dsh_benchmark_run— run fixed cases and write a content-addressed report.dsh_benchmark_compare— compare current and baseline reports with manifest thresholds.
MCP
.mcp.json declares a standalone stdio MCP server:
benchmark_manifest_lintvalidates an inline manifest and returns only identifiers, bounded policies and hashes of runner/case inputs.benchmark_report_addressrecomputes the exact report SHA-256 and returns a bounded summary while rejecting raw-output and secret-bearing fields.
MCP accepts bounded inline JSON, never executes a command, and never reads or writes the filesystem. Actual benchmark execution remains available only through the workspace-bounded DSH tool and CLI surfaces.
CLI
dsh-benchmark inspect --root /workspace --manifest benchmark.json
dsh-benchmark run \
--root /workspace \
--manifest benchmark.json \
--artifact-dir benchmark-artifacts
dsh-benchmark compare \
--root /workspace \
--manifest benchmark.json \
--baseline benchmark-artifacts/baseline.json \
--current benchmark-artifacts/current.json \
--artifact-dir benchmark-comparisons
Exit code 0 means pass. 2 means a report/comparison was written but its scorer failed. 1 means a manifest or operational error.
Manifest example
examples/benchmark.example.json benchmarks a fixed JSONL runner. Run it from this repository:
node bin/dsh-benchmark.mjs run \
--root . \
--manifest examples/benchmark.example.json \
--artifact-dir artifacts
Arguments and JSONL values can contain ordinary test data, but the report stores only their SHA-256 fingerprints. Do not place real secrets in a benchmark manifest.
Develop
npm test
npm run check
npm run smoke:plugin
npm run smoke:mcp
python C:/Users/ZhuanZ/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py .
Requires Node.js 22+. No runtime dependency or install lifecycle script is used beyond the optional DSH tools SDK peer.
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-benchmark」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:dongsheng123132/dsh-benchmark Headless(CLI)profile:
dsh plugin --profile headless add github:dongsheng123132/dsh-benchmark 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
扩展 agent 的编码能力面——给它一个新工具、工作流或集成,让它接手以前做不了的开发任务。
适合谁
想让 dsh 在真实代码库上像队友一样干活的开发者——能改、能跑、能验证,而不只是回答问题。
二次开发建议
工具/命令面就是缝:暴露更多 SDK 能力、加更聪明的上下文接线,或收紧改代码与验证之间的循环。