Deep Dive · Agent Harnesses

Jev in the Harness: Turning Agent Decisions Into a Smart If Statement

Most model calls inside an agent do not write anything — they choose a tool, load a skill, judge whether a command is safe, or rank twenty search results. Sam Witteveen's argument is that those are not writing jobs, they are decision jobs, and a decision model answers them in milliseconds without generating a token. The demos work; the caveats he states are the ones the security researchers later confirmed.

Using Jev In Your Agent Harness — video thumbnail
Video: Sam Witteveen 20:24 29 September 2026
Jev decision models tool routing RAG re-ranking

🔁 The loop, and what it wastes 0:58

The opening observation is the strongest argument for the whole category: take an agent loop apart and count what the model is actually being asked to do.

CallWhat it producesCost
Which tool should I use?A function name from a fixed listFull model call
Is this command safe?Yes or noFull model call, if it happens at all
Which skill applies?One of fifty optionsFull model call, plus tokens for the registry
Which of these results answers the question?A rankingFull model call, or a second model entirely
Write the final answerTextA full model call is the only correct choice here
And the cost is not only tokens. His sharper point is behavioural: because verification is expensive, developers leave it out — so agents skip the "is this safe" step and the "is this result good enough" step, not because those steps are useless but because each one doubles latency. Cheap decisions make verification affordable, which changes what you build.

🎛 What Jev is 3:18

PropertyDetail
MakerTypeSafe AI — Jev is its first "System One" model, released in early access in September 2026
What it doesTakes a state plus typed questions; returns typed answers with calibrated probabilities and a confidence score
What it does not doNo text, no reasoning trace, no chat, no code
Framing used here"A smart if statement" — the surrounding code constrains what it can do
ParallelismMany independent questions about one state in a single request; answers cannot see each other
PricingPer decision rather than per token (listed through OpenRouter as typesafe/jev-*)
"Cannot hallucinate" is the vendor's phrasing, and it is worth understanding precisely: the output space is constrained, so it cannot invent a tool that does not exist or return prose where a label was expected. It can still pick the wrong label with high confidence. Type errors are eliminated; judgement errors are not.

🧩 Four primitives, not three 3:37

He describes three primitives and calls the third "a null". The API defines four, and the spelling matters if you go looking for it.

PrimitiveAnswer shapeUse
ChoiceOne option from your list, plus a probability for every optionTool routing, skill selection, triage buckets
NoulProbability of yes for a yes/no questionSafety gates, "is this good enough"
ScoreA probability-weighted position on a scale you defineRelevance ranking, urgency
BoxA value inside bounds you specifyThe fourth one — and the one the video never mentions
Two corrections in one line: the yes/no primitive is called Noul, not "null", and there are four primitives — Choice, Noul, Score and Box. Neither error changes his argument, but a viewer copying the word "null" into an API call will not find it.
The detail with the biggest practical consequence is the parallel answering. Because the answers are read off a single forward pass rather than generated token by token, asking five questions costs almost the same wall-clock time as asking one. That is what makes it viable to run a safety question and a routing question and a quality question on every step.

🗺 Six places to use it 4:24

#UseDecision being made
1Model routingCheap fast model or expensive reasoning model
2Risk gatingBefore a tool runs: destructive or benign — checked on the arguments, not the intention
3Tool and skill selectionWhich category, then which skill — replaces injecting the whole registry
4Ranking and judgingScore retrieved chunks; grade answers against a rubric
5TriageUrgency of a ticket or email as a probability, not a label
6Real-time filteringDecide what from an API response is worth putting in the context window
Number two is the one that changes safety rather than cost. A gate that runs in milliseconds can inspect every bash argument instead of a sample — and because the probability comes back, you can route the uncertain band to a human or a full model and still auto-approve the obvious cases. Most harnesses today ask the same expensive model that proposed the command whether the command is safe, which is both slow and structurally conflicted.

📏 The rule of thumb 7:14

"If a panel of smart people could answer the question in just a few seconds, then it's the kind of question you should be using a decision model for. If they need to go away and formulate an answer and write a complicated answer back, that's when you should be sticking with the LLMs."
This heuristic is better than it looks, because it tests the shape of the work rather than the difficulty. "Is this command destructive?" is instantly answerable by an expert and hard for a model to guess reliably — exactly the profile where a small calibrated model wins on both latency and consistency. "Design the migration" is not answerable in seconds by anyone, so no decision model will help.

🔌 Four hooks and two patterns 7:40

HookQuestion
Before the prompt is builtWhich skills or tools should be loaded?
Before the model callWhich model should be called?
Before a tool runsIs this safe to execute?
After a result returnsIs this good enough, or do we loop again?
PatternShapeHis verdict
AdvisorThe LLM still drives; the decision model answers small questions at each hookWorks, small change, recommended
DeciderJev picks the tool or the answer; the LLM is the fallback for uncertainty and textCuts more calls, but a much bigger change and "doesn't seem to work as well" with complex work
He is unusually clear that the more aggressive pattern underperformed in his hands. That is the sort of negative result that usually gets cut from a video. The advisor pattern is the one to adopt: it leaves the loop intact and inserts cheap opinions, so a wrong decision costs one retry rather than a derailed trajectory.

🎬 Demo: skills by cascade 12:15

Fifty skills, ten categories, five skills each. Instead of injecting all fifty into the system prompt, only the categories go in — and a two-stage cascade picks the skill.

TaskStage 1: categoryStage 2: skill
"Someone got an email pretending to be our CEO asking for gift cards — is this a hacking attack?"Security and accessInvestigate a security alert
"Is this claim true?"ResearchDo web research / fact-check a claim
"Make me a short voiceover of this product description"Images, audio, videoText-to-speech
The cascade is the interesting design decision, not the speed. A single classification over fifty options is a harder question than two classifications over ten and five, and the two-stage version also gives you a cheap place to log what kind of work your agent is actually doing. The cost is one extra forward pass — which, because questions run in parallel, is nearly free.

The same hook applies to API responses: decide whether what came back is good enough to use, needs different arguments, or needs another call.

🎬 Demo: RAG re-ranking 16:33

The second demo replaces a dedicated re-ranker with a scoring decision: sweep wide, score, keep the top five.

ElementDetail
Query"Why are my webhook requests failing with an error?"
RetrievalBroad sweep — 25 passages, even from BM25 with no embedding model
ScoringDecision model scores each passage; his preferred primitive for this is Score, not yes/no
ResultWebhook signature verification, raw bodies, proxies, signing secrets — top five sent to the LLM
Two honest observations from the demo: the RAG case is slower than the skills case, because the chunks are much larger than category names; and scoring beat the yes/no variant in his testing. That second point matters — a yes/no question asks "is this relevant", which loses the ordering you need to cut to five. Ask for a rank, not a verdict.

🚫 Where it does not fit 9:15

LimitationConsequence
Needs text backNot a decision model's job, by construction
Multi-step reasoning and multi-hop synthesisStill the LLM's job — decision models answer one question about one state
Large stateAccuracy falls sharply on long inputs; sending 100k tokens is the wrong use
Compound questionsA question that secretly contains two questions degrades badly
ImagesThe hosted model is text-only; some open decision models do vision
Vague criteriaIf you cannot write the criteria clearly, do not trust the answer
Cloud privacyUsing a hosted decision model means your state leaves the machine — the argument for local open models
"You kind of want to define the instructions and the criteria yourself, and then benchmark any changes that you make to that over time."
The "define criteria yourself" point is the one teams skip. A decision model is only as good as the descriptions you give it — write them as you would brief a new hire, because that text is all it has. The video's advice to benchmark changes over time is the difference between a calibrated gate and a confident coin flip.

🛡 The injection problem 10:42

He flags it plainly: decision models can be prompt-injected, so instructions embedded in the state can move the result. His mitigation is a sequence — ask "are there prompt injections here?" as a separate question before asking the question you actually care about.

PointStatus
Structured output prevents type errors, not judgement errorsCorrect, and he says so
Decision models are vulnerable to indirect prompt injectionIndependently demonstrated — researchers built a simulated store flow and steered Jev's outputs with adversarial content
A pre-question as a guardCheap and worth doing, but not a proof: a detector that can be injected is itself injectable
Vendor and ecosystem docs acknowledge the riskBoth TypeSafe's limitations page and the Pydantic integration docs note that adversarial content can steer outputs
The security story, stated carefully: "cannot hallucinate" was widely read as "cannot be fooled", and those are different claims. A decision model removes the risk of invented structure; it does not remove the risk of a hostile document choosing your branch. If a gate decides whether a destructive command runs, its inputs deserve the same scrutiny as the command itself — and the uncertain band should escalate rather than auto-approve.

🌍 The open models 19:12

He points at an open decision model on Hugging Face and runs the demos locally, which is the part of the video with the shortest shelf life — a small ecosystem grew quickly around the format.

FamilyNotes
Eikos-27BThe model linked in his description; 27B, the one he runs locally in the demos
autotrust/JEV-27BApache-2.0, ~54 GB; reports averaging marginally above Jev 1.13 across six public decision benchmarks, and is close to it in whole-distribution terms (mean KL ≈ 0.017)
Others: Quyet, deck31b, AutoJev-27B, Winnow-12B, Decision 2.0 (0.6B–27B)A crowded field with self-reported benchmarks — check calibration, not just accuracy
Vision variantsOpen decision models with image input exist, which he notes as a win over the hosted text-only model
The right metric for this class of model is calibration, not accuracy: you are going to act on the probability — escalate above 0.7, auto-approve below 0.2 — so what matters is whether "0.8" means what it says across your inputs. Self-reported accuracy tables tell you how often the top answer is right; they do not tell you whether the threshold you chose will behave the same next month.

🧱 Frameworks and access 19:00

ClaimCheck
No framework needed — it is a function call in your loopCorrect; the API is state in, typed answers out
LangChain shipped the advisor pattern as middlewareConsistent with published LangChain material on Jev integration
Pydantic ships its own version, pluggable into an agent loopConsistent — Pydantic's docs cover the decision models and their injection caveats
OpenRouter is the easy way inThe typesafe/jev-* models are listed there, so no waitlist is required
Hosted API needs whitelistingEarly-access gating; the OpenRouter route and the open models are the workarounds he names

✅ Claims checked

ClaimVerdictEvidence
Most harness model calls are decisions, not writingCorrect and measurableTool choice, skill load, safety gate and ranking are all classification or scoring in disguise
Jev is a decision model from TypeSafe that returns no textCorrectSystem One model, early access from September 2026; typed answers with probabilities and confidence
Three primitives: choice, score, "null"Three named, one misspelled, one missingThe API has Choice, Noul, Score and Box
Many questions per call, answered in parallelCorrectAll questions in one request are answered together and cannot see each other's answers
Six use cases: routing, risk gating, tool/skill selection, ranking, triage, filteringSound taxonomyEach maps to a documented primitive
Rule of thumb: answerable by experts in seconds → decision modelHis heuristic, and a good oneAttributed on camera to the vendor's own guidance
Four hooks in the loop; advisor beats deciderCoherent, with a rare negative resultHe reports the decider pattern working worse on complex work
Two-stage skill cascade over 50 skills worksDemonstratedCategory then skill, three example tasks routed sensibly
Score beats yes/no for RAG re-rankingHis testing; logically expectedYes/no loses ordering, which is the whole point of cutting 25 passages to 5
Decision models are prompt-injectableCorrect — and independently demonstratedResearchers steered Jev and similar models with adversarial content; vendor and integration docs acknowledge it
Accuracy drops on long inputsStated by the vendorAlso the reason large documents are a poor fit
Hosted Jev is text-only; some open models handle imagesCorrect at the time of recordingOpen vision decision models exist
LangChain middleware and Pydantic integration existCorrectBoth documented publicly
OpenRouter is usable without the waitlistCorrecttypesafe/jev-* listed with decision-based pricing
"Cannot hallucinate" is meaningful protectionOverstated by the ecosystemNo invented structure; still wrong answers with high confidence, and still steerable

Basis note. Built from the full 20:24 recording and checked against TypeSafe's own documentation, the OpenRouter Jev reference and tutorials, the open-model releases he points at, and independent security reporting on prompt injection against decision models. Two naming corrections are included — Noul, and the fourth primitive Box — because they are the kind of error that costs a reader an afternoon. Related earlier deep dives on the same family: the ten levels of the Jev system and running any LLM in Jev mode.

🔑 Key takeaways

  • Most calls in your agent are decisions dressed as generation. Tool choice, skill load, safety check, ranking — none of them need prose.
  • Expensive verification gets skipped. Cheap decisions make the "is this safe" and "is this good enough" steps affordable.
  • Jev is a smart if statement: state in, typed answers with probabilities out, no text and no reasoning trace.
  • Four primitives: Choice, Noul, Score, Box. The yes/no one is Noul — not "null".
  • Questions run in parallel, so five questions cost about the same time as one.
  • Risk gating is the use that changes safety, not cost: inspect every tool argument in milliseconds and escalate the uncertain band.
  • Rule of thumb: if an expert answers in seconds, use a decision model; if they need to go away and write, use the LLM.
  • Adopt the advisor pattern, not the decider. He tried the aggressive version and reports it working worse on complex work.
  • Cascade before you classify: category then skill beats one pick from fifty, and logs your task mix for free.
  • For retrieval, ask for a rank, not a verdict — yes/no loses the ordering you cut on.
  • Write the criteria yourself and benchmark changes. Vague questions produce confident noise.
  • Long inputs and compound questions break it; 100k tokens of state is the wrong shape of problem.
  • "Cannot hallucinate" is not "cannot be fooled". Decision models are prompt-injectable — demonstrated independently.
  • Judge open decision models on calibration, because you will act on the probability, not the top answer.
  • Watch your data boundary: a hosted decision model means every state you send leaves the machine, which is why local open models matter for harness work.

🔗 Resources

Basis note. Every API surface claim was checked against the vendor and OpenRouter documentation rather than the narration, and the injection risk was corroborated with independent research rather than repeated as the speaker's hunch. Self-reported benchmarks for open decision models are labelled as such — none of them were re-run for this article.

⏱ Timestamp index

0:00Most harness calls are decisions, not writing
0:58The agent loop, step by step
2:35What a full LLM call costs you per decision
3:18Jev as a smart if statement
4:24Use case 1: model routing
4:52Use case 2: risk gating
5:43Use case 3: tool and skill selection
6:16Use case 4: ranking and judging
6:34Use case 5: triage, and human in the loop
7:14The "few seconds" rule of thumb
7:40The four hooks in the loop
8:32Second pattern: Jev decides, LLM is fallback
9:15Where it does not fit
10:42Compound questions and prompt injection
11:12Criteria, benchmarking, local versus cloud
12:15Demo: progressive disclosure over 50 skills
14:22Demo: verifying API responses
16:33Demo: RAG re-ranking with scoring
19:00Resources: OpenRouter and LangChain
☰ View all