/jev-style:jev-style-adoptfrom jev-style
Finds LLM API calls that only return a decision (category, yes/no, rating) and safely migrates them to the local Jev-Style model with a confidence cascade, shadow mode, and eval-based verification.
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; scripts run unread.
Many codebases send a hosted LLM a prompt and then parse one word, a boolean or a number out of the reply. Those calls pay for text generation to get a label. Jev-Style answers the same question locally, in one forward pass, with a probability per option. This skill moves them over without changing behaviour blindly: scan -> choose -> rewrite with a cascade -> shadow -> measure -> switch.
Never delete the LLM path in the first change. Every step below is reversible.
python3 <this-skill-dir>/scripts/find_decisions.py path/to/src --json /tmp/decision_calls.json
It lists LLM call sites whose prompt or parsing looks decision-shaped (classify / "yes or no" /
"respond with only" / rate 1-5 / enum or bool schemas / tiny max_tokens / .strip().lower() == "yes")
with a guessed type. It is a heuristic: read every hit. Drop calls that need generated text, world
knowledge not in the input, multi-step math, or tool use.
Show a short table: file:line, what it decides, guessed type, how often it runs (ask, or look for
loops/queues), and what a wrong answer costs. Recommend starting with one high-volume, low-risk call.
Confirm the server is running (curl -s http://127.0.0.1:8765/healthz; else the jev-style-serve
skill).
| LLM prompt pattern | Jev-Style question |
|---|---|
| "Classify into one of A, B, C. Respond with only the name." | choice, criteria {A: desc, B: desc, C: desc} (add other if the prompt allowed none) |
| "Answer yes or no: does X ...?" / returns bool | noul, instructions = X as a statement ("The ticket asks for a refund."), optional criteria.true/false |
| "Rate 1 to 5" / "low, medium, high" | score, criteria = the levels, lowest first, with short descriptions |
| JSON with several such fields | one request, several questions about the same state |
Move instructions about what to judge into instructions/criteria; move the input into state
(text or a JSON object with named fields). Put facts the prompt made the LLM compute (totals, dates,
counts) into the state, computed in code.
Keep the old function as *_llm. The new one asks Jev-Style first and falls back to the LLM when the
model is unsure or unreachable. While shadowing, it also calls the LLM and logs both answers in the
jev-style eval format. Python sketch (adapt to the codebase's language and HTTP client):
import json, os, time, httpx
JEV_URL = os.environ.get("JEV_STYLE_URL", "http://127.0.0.1:8765")
SHADOW = os.environ.get("JEV_SHADOW_LOG") # e.g. logs/route_shadow.jsonl while measuring
THRESHOLD = 0.60 # replace with the value jev-style eval recommends
TEAMS = {"billing": "charges, refunds, invoices", "shipping": "delivery, delays, lost parcels",
"returns": "exchanges, wrong item", "account": "login, password, privacy"}
def route(ticket: str) -> str:
q = {"type": "choice", "instructions": "Which team should handle this support ticket?", "criteria": TEAMS}
try:
a = httpx.post(f"{JEV_URL}/v1/systemone", json={"state": ticket, "questions": {"team": q}},
timeout=5).raise_for_status().json()["answers"]["team"]
except Exception:
return route_llm(ticket) # server down: old behaviour
confident = max(a["probabilities"].values()) >= THRESHOLD
if SHADOW:
llm = route_llm(ticket)
with open(SHADOW, "a") as f:
f.write(json.dumps({"state": ticket, "questions": {"team": {**q, "label": llm}},
"jev": a, "ts": time.time()}) + "\n")
return llm # shadow mode: production keeps the LLM answer
return a["choice"] if confident else route_llm(ticket)
Make sure the LLM label is one of the option names (normalise case/whitespace; map unknown replies to
other or skip the row; jev-style eval skips unreadable labels with a warning). Add a test that the new function returns the LLM result when the server is
unreachable.
Turn shadow mode on (JEV_SHADOW_LOG=...) in staging or production for enough traffic: at least a few
hundred decisions per question. Then:
jev-style eval logs/route_shadow.jsonl --url http://127.0.0.1:8765
(eval ignores the extra jev/ts keys and re-asks the model, so the numbers reflect the current
server.) Read agreement with the LLM (acc) and automate @1% / 5% / 10%: the share of calls the
model can answer alone at that disagreement budget, and the confidence threshold for it. Agreement
with the LLM is not accuracy: if the user can label a sample by hand, evaluate on that too.
Set THRESHOLD to the threshold for the error budget the user accepts, turn shadow mode off, and ship.
Only calls above the threshold skip the LLM; the rest still use it. Report the expected share of LLM
calls saved (= the automation coverage) and keep the shadow log option for re-checking after prompt or
model changes. Never tune the threshold on the same rows you report as the final number.
What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/jev-styleCall the local Jev-Style decision model (systemone-compatible API, default http://127.0.0.1:8765) 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. Use when writing code that classifies, routes, scores or checks text with a small local model, when replacing an LLM call that only returns a label, or when the user mentions jev-style, /v1/systemone, noul, choice or score questions./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.npx claudepluginhub lawrence3699/jev-style --plugin jev-styleOther plugins' skills for the same job