DeepSeek Harness plugin

dsh-verifier

DSH Verifier mode: a TurboAgent-equivalent automatic best-of-N agent pipeline plus the pinned, unmodified LLM-as-a-Verifier 0.2.0 framework. Supports custom DSH generation models, custom verifier

Jump to install

Source facts

Repository
xltzsoft/dsh-verifier
Latest update
Aug 20, 2026
Category
Workflow & Automation
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-21

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/xltzsoft/dsh-verifier
Plugin: dsh-verifier
Author: xltzsoft

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer4 files
README.en.mdSource · read only
README language

Verifier Mode for DSH

English · 中文(默认)

Verifier 模式 implements the automatic best-of-N control flow from the official TurboAgent project and adds the complete public API of Stanford/Berkeley's LLM-as-a-Verifier to a normal DSH coding session.

The plugin runs the unmodified official Python package at commit 8db8a114355a9d7fdf9a8d1d5c87f6aeebd18770 (package version 0.2.0). Pinning the commit, rather than the older PyPI artifact, includes the current Terminal-Bench 2.0 path and vLLM/SGLang reasoning-logprob fixes.

Automatic Agent pipeline

Every ordinary model step in a Verifier session is transparently wrapped as:

optional context refinement -> N parallel or sequential candidates -> exact majority shortcut
-> otherwise official Probabilistic Pivot Tournament -> replay the winner only
-> asynchronous progress verification

The interception happens at DSH's provider-neutral llm/stream boundary. It does not rely on the main Agent voluntarily calling a verifier tool, and tool calls from losing candidates are never executed. Session-preset gating leaves all other DSH modes untouched.

By default the pipeline samples the model selected in the current DSH session three times. verifier_config.agent.models may instead list heterogeneous DSH provider/model routes with a numCandidates count for each; no generation API keys are duplicated in this plugin's config. agent.verifierModel and the top-level verifier backend/model independently select the scoring model.

agent.candidateScheduling is parallel by default. Set it to sequential to wait for candidate 1 to finish before issuing candidate 2, and so on. The same option and the default candidate count are editable at Settings → Verifier; changes apply to the next ordinary model step without a restart.

Live UI console

The Verifier conversation tab streams the whole pipeline over SSE: context refinement, parallel/sequential scheduling, each candidate's route/status/action preview and token usage, majority or PPT selection, scores, winner, comparisons, fallback reason, and asynchronous Progress result. Session history survives process restarts through the audit logs in ~/.dsh/verifier/pipeline/.

After selecting Verifier 模式, users can state a task normally; no prompt-level guidance or explicit verifier tool call is required. The precise boundaries are:

  • only ordinary LLM steps initiated by this preset are intercepted; internal

purpose-tagged calls are not recursively wrapped;

  • agent.enabled=false or one total candidate disables the wrapper by config;
  • an exact majority intentionally short-circuits PPT;
  • an unavailable verifier falls back to the first valid candidate and is shown

as a warning in the UI;

  • best-of-N selection is not a formal correctness guarantee, and the winning

candidate's tools still obey normal DSH access and approval policies.

Install

The recommended one-line install uses the latest GitHub Release. The preset is installed safely into the DSH user root on first boot:

npx @deepseek-ai/dsh plugin --profile web add https://github.com/xltzsoft/dsh-verifier/releases/latest/download/dsh-verifier.tgz

Then start or restart DSH:

npx @deepseek-ai/dsh web

After the package is published to the npm Registry, the equivalent command is:

npx @deepseek-ai/dsh plugin --profile web add @linxin666/dsh-verifier

Use a local checkout only for development:

git clone https://github.com/xltzsoft/dsh-verifier.git
cd dsh-verifier
npx @deepseek-ai/dsh plugin --profile web add "file:$PWD"
npx @deepseek-ai/dsh web

Create a session and select Verifier 模式. The first boot installs the preset; future package versions update it only while its managed YAML files remain unmodified, so an existing custom preset is never overwritten. Runtime state and credentials are kept outside the repository under ~/.dsh/; no API keys belong in this checkout.

Backend and model configuration

The scoring/verifier model is fully configurable:

  • DeepSeek hosted API (backend=deepseek)
  • Vertex AI (backend=vertex)
  • Any OpenAI-compatible endpoint that returns token-level logprobs

(backend=openai), including vLLM and SGLang

  • A persistent model ID in verifier_config, or a different model on each

compare/select/track/benchmark call

Example verifier_config patch:

{
  "patch": {
    "backend": "openai",
    "openaiBaseURL": "http://127.0.0.1:8000/v1",
    "openaiApiKey": "EMPTY",
    "model": "Qwen/Qwen3.5-9B"
  }
}

With backend=auto, resolution order is OpenAI-compatible endpoint, DeepSeek, then Vertex. Credentials may come from the config, process environment, or ~/.dsh/.credentials.yaml. Configuration is re-read before each scoring operation, so no restart is needed after a change.

DSH surface

Select Verifier 模式 when creating a session. It contains the standard coding-agent tools, the automatic pipeline above, plus these nine mode-scoped tools for explicit external comparisons, tracking, and benchmarks:

  • verifier_status, verifier_config, verifier_usage, verifier_data
  • verifier_compare, verifier_select
  • verifier_track, verifier_tracker
  • verifier_benchmark

Host routes live at /api/verifier/*. Persistent state is stored under ~/.dsh/verifier/; configuration is ~/.dsh/verifier.json; the preset is ~/.dsh/.agent-presets/verifier/.

Fidelity and validation

Node sends one job payload to a loopback Python sidecar; the official package then performs every prompt build, model request, logprob extraction, cache operation, tournament, and aggregation itself. There is no JS port of the scoring algorithm and no per-comparison host proxy. The local deterministic integration suite verifies:

  • exact pinned framework identity and official benchmark checkout;
  • an arbitrary per-call model ID reaching every backend request;
  • multimodal pairwise scoring and A-T reasoning-logprob extraction;
  • best-of-N selection, zero-call score-cache replay, and bit-identical output

between the sidecar and a direct llm_verifier.select() call;

  • offline/online progress tracking and official Terminal-Bench 2.1 loading.
  • preset gating, heterogeneous candidate routing, three-way PPT winner replay,

and exact-majority short-circuiting in the automatic Agent pipeline.

Run it with:

npm run check
npm run test:preset
npm run test:agent
npm run test:integration

The suite uses a deterministic local OpenAI-compatible backend and makes no paid API calls. Published benchmark accuracy requires the same model/settings and a full paid benchmark run; the plugin intentionally does not claim that a zero-cost smoke test reproduces those published scores.

Primary Chinese documentation: [README.zh.md](./README.zh.md).