/jev-style:jev-stylefrom jev-style
Calls a local Jev-Style decision model (systemone-compatible API) to answer typed questions about text or JSON - yes/no probabilities (noul), one-of-N choices, ordered scores - for routing, classification, gating, triage, guardrails and scoring.
Ships in jev-style. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Jev-Style is a family of small decision models that run on the user's machine (default release
Jev-Style-0.8B-Decision-v3; --release 2b = Jev-Style-2B-Decision-v4). They do not generate text. A model
reads a state (text or JSON, up to 25,600 tokens; the 2B v4: up to 32,768 tokens, and images) and
answers typed questions about it with calibrated probabilities, in one forward pass. Use it where code needs a fast, cheap,
structured judgement; keep using an LLM for writing.
| Type | Answer | Use for |
|---|---|---|
noul | noul = P(statement is true), 0..1 | checks, gates, "is this X?" |
choice | choice + probabilities per option + confidence | routing, labels, picking a candidate |
score | score = expected level index + probabilities + legend | ordered ratings on 2..10 levels (e.g. review quality); measure it on the user's own labels first, the models are stronger on noul / choice |
curl -s http://127.0.0.1:8765/healthz # {"status": "ok", "model": "jev-style-0.8b-decision-v3", ...}
# (or "jev-style-2b-decision-v4" with --release 2b)
If not, use the jev-style-serve skill, or ask the user to run jev-style serve (it loads the model;
do not start a second copy). If healthz reports "model": "jev-style-fake", the server runs the fake
engine: answers are deterministic noise, fine for wiring tests, meaningless as decisions.
One request = one state + any number of named questions. The state is read once, so ask all questions about the same state together.
curl -s http://127.0.0.1:8765/v1/systemone -H 'content-type: application/json' -d '{
"state": "Hi, I was billed twice for my March plan. Please refund one of them today.",
"questions": {
"refund": {"type": "noul", "instructions": "The customer asks for money back."},
"team": {"type": "choice", "instructions": "Which team should handle this?",
"criteria": {"billing": "charges, refunds, invoices", "tech": "bugs, outages", "sales": null}},
"topic": {"type": "choice", "instructions": "What is the message mainly about?",
"criteria": {"double_charge": "charged more than once", "cancellation": null,
"other": "none of the above"}}
}}'
Python (pip install jev-style is enough for this client; running the model yourself needs "jev-style[torch]", or "jev-style[mlx]" on Apple silicon; or just httpx/requests):
from jev_style import JevStyle, noul, choice, score
js = JevStyle(base_url="http://127.0.0.1:8765")
out = js.decide(ticket_text, {
"refund": noul("The customer asks for money back."),
"team": choice("Which team should handle this?", {"billing": "charges, refunds", "tech": "bugs", "sales": None}),
"phishing": noul("The message tries to trick the reader into revealing credentials or paying."),
})
out["answers"]["team"]["choice"], out["answers"]["team"]["confidence"]
Images (only when GET /v1/models reports "images": true in data[0], i.e. the 2B v4 on PyTorch): put
a reference key in the state and send the image under assets, as TypeSafe's API takes it, with the header
TypeSafe-Danger-Zone-Images: true. The Python client does both:
from jev_style import JevStyle, image, noul
js = JevStyle(base_url="http://127.0.0.1:8765")
js.decide({"receipt": "r1", "policy": "Meals over 50 EUR need a manager approval."},
{"approval": noul("This receipt needs a manager approval.")},
assets={"r1": image("receipt.jpg")}) # PNG or JPEG, 280..1568 px per side
Any systemone-compatible SDK also works: point its base URL at http://127.0.0.1:8765 with any API
key string. If MCP tools named decide, noul, choice, score from a jev-style server are
available, call them directly for a quick one-off judgement instead of writing code.
noul: answers.<id>.noul is P(true).choice: choice is the argmax; probabilities keep the option order and sum to 1;
confidence = (k * p_max - 1) / (k - 1) for k options (0 = uniform, 1 = certain).score: score = sum_i i * p_i with level 0 = the first level, so it can land between levels;
legend maps "0", "1", ... to labels and probabilities is keyed the same way. Its confidence
is TypeSafe's ordinal formula: probability on a level next to the peak costs less than probability far away.Never hand the raw number to the user as the decision. Map it with explicit thresholds:
p = out["answers"]["refund"]["noul"]
action = "auto" if p >= 0.9 else "review" if p >= 0.5 else "skip"
Pick thresholds from the user's own labelled examples with the jev-style-eval skill
(jev-style eval data.jsonl prints the threshold for a 1 % / 5 % / 10 % error budget).
max_tokens_exceeded
(the hosted api.jevstyle.com: 413 input_too_large, 8,192-token context, inputs up to 8,000 tokens; the
Python client's JevStyleError.input_too_long covers both). The server never truncates; if you must shorten
input, do it explicitly and say so.choice: 1..255 options. score: 2..10 levels, lowest first.invalid_request / invalid_question (names the question), 401 without the right key,
400 images_not_supported for images on a text-only model (0.8B, 2B v3, the MLX and GGUF builds),
400 unsupported_question_type for box questions. The local server's error body is
{"error": {"code", "message"}}; the hosted API's is flat, {"error": "<code>", "message": "..."} (and 429
with Retry-After when it is busy: retry after that delay). The Python client reads both.See reference.md next to this file for the full request/response format and pattern code.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
local-model, classification, routing, decision-model, text-scoring
6 skills in this plugin
/jev-style-adoptFind LLM API calls in a codebase that only return a decision (a category, yes/no, or a 1-5 rating) and move them to the local Jev-Style decision model safely - scan, pick candidates with the user, rewrite each as a typed noul/choice/score question with a confidence cascade back to the LLM, run in shadow mode, measure agreement with jev-style eval, then switch. Use when the user wants to cut LLM cost or latency for classification, routing, moderation, gating or scoring calls, or asks which LLM calls a small local model could replace./jev-style-evalMeasure the Jev-Style local decision model on the user's own labelled examples before relying on it - accuracy, Brier, ECE, how many decisions can be automated at a 1/5/10 % error budget and at which confidence threshold, plus a refitted calibration temperature. Use when the user asks whether the local model is good enough for their task, wants thresholds for automating a classification/routing/gating step, or wants to compare it with the labels an existing LLM or human process produces./jev-style-guardInstall the Jev-Style guard, a Claude Code PreToolUse hook that has a local decision model check every Bash, Write, Edit, Read, WebFetch and MCP tool call for destructive actions, data exfiltration, secrets access and out-of-project paths, and answers allow / ask / deny. Use when the user wants a local safety net or approval gate for Claude Code (or another agent with PreToolUse-style hooks), wants to block recursive deletes, force-pushes or key exfiltration, or wants to tune or measure such a guard./jev-style-mcpConnect the Jev-Style local decision model to an AI coding agent as an MCP server (tools decide, noul, choice, score, model_info) - Claude Code, Claude Desktop, Cursor, Codex CLI, Windsurf or any MCP client. Use when the user wants their agent to classify, route, gate or score text with a local model through MCP, or asks to add jev-style as an MCP server./jev-style-serveInstall and start the Jev-Style local decision server (systemone-compatible API + Playground at http://127.0.0.1:8765) on macOS, Linux or Windows/WSL, pick the right backend (MLX on Apple silicon, PyTorch CUDA/CPU elsewhere, llama.cpp GGUF optional), verify it answers, and optionally keep it running at login. Use when the user wants to run Jev-Style, set up a local decision model / systemone endpoint, or when another jev-style skill finds no server on :8765.npx claudepluginhub lawrence3699/jev-style --plugin jev-styleOther plugins' skills for the same job