Introduction¶
In DeepSeek Harness (DSH) or other coding-agent hosts, a task often involves many “small judgments”: whether a tool output should enter the context, whether a fetched page contains model-directed instructions, whether a turn that claims “completed” has any real verification, whether the user actually requested a specific command. Handing all of these to the main model is slow and token-heavy; encoding them as hard rules tends to fail on real inputs.
dsh-jev-judge (repo name jev-judge, npm package dsh-jev-judge) is a judgment kernel provided by maintainer HunterXing: at fixed decision points, it invokes a small Jev judge with bounded questions and minimal state, while the main model retains the context and tokens for reasoning tasks. Every verdict is written to a ledger, making it easy to evaluate from real sessions whether a decision point should be enabled. The plugin is categorized under Model Inference in the SkillHub directory.
Before installation, it is recommended to read the README’s scope description: this layer targets context budget; it does not participate in compilation, caching, or performance optimization. It only changes what the model sees. The author once uninstalled it after 55 days of self-use testing on their own machine (see R10 in docs/verification.md in the repo). It is more suitable for scenarios where the host’s context is genuinely tight, or outputs are primarily “scanning” in nature (shell logs, self-inspection dumps, browser snapshots).
What is this¶
In one sentence: A judgment kernel for coding agents: routine judgments go to a small Jev judge, and every verdict is recorded in a ledger.
The design follows the approach of mu loading a judgment kernel in the pi coding agent; this project implements the same class of decision points in a host-agnostic way, running as a DSH plugin bundle, as command hooks in Claude Code / Codex, or via MCP in OpenCode / Cursor and similar environments. The current npm version is 0.1.4, license MIT, requires Node.js >= 20, and DSH version >=0.2.1-alpha.1 and <0.3.0-0.
Core features: Decision points and modes¶
The kernel asks questions at several named decision points. Each point has a deterministic fallback equivalent to the behavior when this package is not installed; when there is no verdict, or the judge times out, is unreachable, or is uncertain, it fails open and does not block the agent loop.
| Decision point | What the question means | Default mode |
|---|---|---|
judge.items |
Ask a yes/no question over many items (log lines, files, findings) without reading all of them | Enabled when invoked |
tool.admission |
Which blocks in a long tool result are necessary for this task; others do not enter the context | active |
tool.injection |
Which parts of fetched content look like “instructions to the model” rather than reader material | active |
turn.completion |
Whether a “completed” claim is backed by any verification | active |
turn.continue |
Whether the turn stops before an announced next step, or repeats requests for authorization already granted | active |
memory.capture |
Whether the message is a correction worth keeping, or belongs to the next task | active |
tool.risk |
Commands already flagged by rules: does the user actually want them | shadow |
tool.risk deliberately starts in shadow: its verdicts can only relax policy, so you should switch it to active only after reviewing your own ledger records.
Design constraints (excerpted from the README): verdicts do not decide for the agent whether it “should ask the user”; they only change what the model sees or whether the agent continues working; the judge reads summaries and metadata instead of large raw text; API keys exist only in your private configuration and do not enter logs, the ledger, or error messages.
Install and enable in DeepSeek Harness¶
On the DSH side, it loads cordis.patch.yml as a plugin bundle.
- Add the plugin by profile (commands from the official README):
dsh plugin --profile <profile> add dsh-jev-judge
dsh --profile <profile> --dump-config # Check whether this layer appears in the configuration
-
You can also install via the Web GUI under Settings → Plugins using a registry name, git URL, or local path.
-
Configure the Jev provider (private record; format consistent with
typesafe-ai-jev-skill):
The environment variable JEV_SKILL_CONFIG defaults to ~/.config/typesafe-ai-jev-skill.json. Example:
{
"providerName": "your-provider",
"baseUrl": "https://api.your-provider.example",
"model": "jev",
"apiKeyEnv": "JEV_API_KEY",
"protocol": "systemone",
"endpointPath": "v1/systemone",
"authHeader": "Authorization",
"authScheme": "Bearer",
"timeoutSeconds": 30
}
- Optional kernel configuration lives at
~/.config/jev-judge/kernel.json, e.g., modes, routing, ledger path:
{
"modes": { "default": "shadow", "tool.admission": "active" },
"routes": { "turn.continue": ["jev"] },
"tiers": ["jev"],
"ledger": { "path": "~/.config/jev-judge/ledger.ndjson", "recordState": false },
"options": { "judge.items": { "maxItems": 20 } },
"timeoutMs": 8000
}
- After installation, you can self-check via the CLI (offline
verifyonly reports the contract and never outputs keys):
jev-judge verify # offline; reports the contract, never the key
jev-judge doctor # what will happen: judges, modes, ledger
jev-judge ledger # read the ledger; add --json to print in storage format
When adjusting options like tool.admission in DSH, write them into the plugin entry’s config.options, i.e., in the profile’s cordis.patch.yml. For example, restrict to specific tool names and only trim outputs above a certain character length:
{ "options": { "admission": { "toolNames": ["bash", "mcp__*"], "minChars": 4000 } } }
By default, admission only applies to tool outputs whose “size is not in a shape precisely specified by the user,” with tool name lists including bash, web_fetch, mcp__*, etc. Tools that return content in the shape requested by the agent, such as read, grep, write, pass through by default.
Other hosts and MCP¶
Claude Code / Codex can use command hooks in settings.json / hooks.json; OpenCode, Cursor, Cline, etc. can attach an MCP server:
claude mcp add jev-judge -- npx -y dsh-jev-judge mcp
For specific configurations in each host and what “a verdict can do,” see docs/agents.md in the repo.
Empirical testing and the ledger¶
The README references docs/verification.md: on an 81-line test log containing two failures, with a live provider judging 20 items per call, 81 lines were reduced to 5 selected lines, and about 191 bytes out of 3047 bytes (6.3%) needed reading, taking about 7.9 s. For the same log, if the question is aimed at fixing rather than triage, the selected items are assertions and error text instead of summary lines.
The ledger is the basis for promoting a decision point from shadow to active, not an optimistic configuration.
Use cases and cautions¶
Better suited to: teams or individuals with tight context windows, tool outputs dominated by logs/lists/page snapshots, and a desire to use a small model for high-frequency binary or choice-style judgments with an audit trail.
Please be aware before use:
- The plugin runs with the permissions of the current DSH process. Before installing, review the GitHub source and the MIT license yourself.
- The community directory SkillHub plugin page is an independent ecosystem site and is not officially affiliated with DeepSeek / High-Flyer. DSH’s philosophy is “everything is a plugin”; this article introduces a community plugin, not an official app store entry.
- No runtime dependencies and no build step; a local path
dsh plugin add <path>can directly load a checkout. Local dev self-testing:node --test(the README states 217 tests, no network).
Closing¶
dsh-jev-judge offloads many routine judgments in the coding-agent loop from the main model to a small Jev judge, and records every verdict in a ledger, achieving a measurable trade-off between bounded state and fail-open behavior. If your pain point is mainly that context is bloated by shell, fetch, and MCP outputs, start with doctor / verify to set up a provider, observe the ledger in shadow, and then enable active for decision points as needed.
- Directory page: https://www.skillhub.cn/plugins/HunterXing/jev-judge
- Source and docs: https://github.com/HunterXing/jev-judge