jevwire
Jev is TypeSafe AI's System One model: a fast,
calibrated classifier. You give it a state and a map of typed questions — yes/no, pick-one,
rate-on-a-rubric — and it answers every one in parallel with a probability over the answer space
you defined. It never generates text, so the answer is always inside your schema.
jevwire wires it into a harness. The repository is
Brainwires/jevwire; the npm package is published as
@brainwires/jevwire (the installed command is still jevwire) and the Claude Code plugin is
jev.
It is three things:
- 7 MCP tools —
jev_rank, jev_pick, jev_verify, jev_evaluate, jev_gate_action, jev_next_step,
jev_list_models.
- An embeddable library —
JevDecisionModel plus a pure run* function per tool, so mandatory
checks can live in your harness instead of in a tool an agent may decline to call.
- A Claude Code plugin — hooks that put judgments at the harness boundaries: before a tool
call, after a fetched result, before the turn ends. A judgment is addressed to Claude, not to
you: a note about a call that already ran, or a single
deny Claude can answer. The one
exception, since 0.7.0, is a command that matches a hard-coded rule (rm -rf ~, a force push to
main, turning the plugin off): that becomes a permission prompt you answer.
It is not for generation, arithmetic, counting, date comparison, or multi-hop reasoning. It
answers bounded questions over text you hand it. Anything numeric or ordered should be extracted as
a choice over enumerated options and compared in code.
Release 0.4.0 has been exercised against the live TypeSafe API on 2026-09-18. Every latency,
token count and cost figure quoted in this README comes from that run or the 0.3.0 one it is compared
against.
Install
Node >= 20 for all three routes.
Claude Code plugin
/plugin marketplace add Brainwires/jevwire
/plugin install jev@brainwires-jevwire
Then give it a key, by either route:
/plugin → jev → TypeSafe API key, or
export TYPESAFE_API_KEY=sk-... in the shell you start Claude Code from.
Then /reload-plugins. Without a key the judgment hooks stay inactive — the deterministic pattern
checks still run — and the plugin says so once per session.
There is no build or install step: plugin/dist/hook.mjs and plugin/dist/mcp.mjs are committed,
dependency-free, esbuild-bundled single files.
Bare MCP server
claude mcp add jev -e TYPESAFE_API_KEY=sk-... -- npx -y @brainwires/jevwire
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"jev": {
"command": "npx",
"args": ["-y", "@brainwires/jevwire"],
"env": { "TYPESAFE_API_KEY": "sk-..." }
}
}
}
Codex (~/.codex/config.toml):
[mcp_servers.jev]
command = "npx"
args = ["-y", "@brainwires/jevwire"]
env = { TYPESAFE_API_KEY = "sk-..." }
Library
npm i @brainwires/jevwire
import { JevDecisionModel, runGateAction, runRank, runVerify, runNextStep } from "@brainwires/jevwire";
const jev = new JevDecisionModel({ apiKey: process.env.TYPESAFE_API_KEY!, model: "jev-1.13.0" });
const config = { model: "jev-1.13.0", thresholds: { auto: 0.85, review: 0.6 }, maxConcurrency: 4 };
const check = await runGateAction(jev, { action: toolCallDescription, user_request: userTurn }, config);
if (check.decision === "block") throw new Error(check.reasons.join(" "));
if (check.decision === "confirm") await askTheHuman(check);
Every run* takes a DecisionModel (the interface in src/decision/types.ts) rather than the
concrete client, so tests can pass a fake or you can swap in another structured-output adapter.
What you will see
Almost nothing addressed to you. The hooks talk to Claude, not to the human: a classifier
judgment never becomes a permission prompt unless you switch that on (ask_on_trip). The one
exception is a code-rule match — rm -rf ~, a force push to main, an attempt to switch this
plugin off — which by default (pattern_trips: ask) is a permission prompt you answer, because a
rule that Claude could clear on its own with a marker would be a rule in name only. Most tool calls
produce no [jev] line at all, either — a deterministic prefilter decides whether the model is
consulted, and reading files, running tests, git status and ordinary in-project edits never reach
it.
When the tool gate does fire, it is one of two things, and the difference matters. (The stop check
and the injection screen, further down, are the other two hooks that can say anything at all.)