# How To Build A Harness With Jev | A LangChain x TypeSafe Conversation
<!--
ref: @content/youtube/langchain/2026-09-22-how-to-build-a-harness-with-jev-a-langchain-x-typesafe-conve
tags: [system-1-models, decision-models, agent-harness, tool-call-safety-classification, model-routing, observability, confidence-thresholds, real-time-ai]
version: 2
updated_at: 2026-11-21T20:14:27.447Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=HHUsHkYhkcM)**


*Synthesized from Allie, developer relations at TypeSafe, and Hunter, a technical lead on LangChain's open source team, in conversation with Sydney on LangChain, 2026-09-22.*

Allie works in developer relations at TypeSafe and Hunter is a technical lead on LangChain's open source team; Sydney, LangChain's open source product manager, hosts the webinar. The model name "Jev" is used consistently in the captions, but the spelling is unverified and may be a transcription of a different name.

## Core Thesis
Allie argues that "Jev" is a new class of "System 1" model: not a text generator, but a fast, cheap API for small, well-scoped decisions that code can make in machine-to-machine settings. Hunter shows that it fits inside an agent harness as a classifier for tool safety and model routing, as long as developers test their questions, watch the calls and keep inputs small.

## Key Insights
- **What it is:** Allie describes a model that returns decisions, not prose, against type-safe schemas, and is an API product with no end-user interface. The "System 1" label borrows from the fast-intuition versus slow-reasoning split; her test is whether a panel of smart humans could answer the question in about five seconds. Code is the "System 2" layer that composes many fast decisions.
- **Why code-first:** she expects most future automation to be machine-to-machine, and finds it odd to use a heavy text-generating model to choose a tool or CLI, which are human interfaces that get turned back into machine code. Tool calling and structured outputs were bridges that overspend on computation, visible in cost and latency.
- **Three question types:** choice (pick one option from a list, closest to a classifier, best with a dominant answer and little overlap); score (rate along a single axis from 0 to N, with each level defined semantically so scores mean the same thing across documents, chats or log lines); and a yes/no style question returning a continuous 0-to-1 probability. Break compound questions apart, and use two scores for two axes.
- **Context limits:** 32K tokens covers the state plus the largest single question, with about a 64K cap for the state plus all questions together. Multimodal input and longer context are "not yet", with no timing promised.
- **Safety classification demo (Hunter):** using LangChain agent middleware, an "auto mode" classifier runs right before a tool call. A CRM note passes; a delete-customer call is classified as risky and blocked. Previously this needed another slower LLM call.
- **Model routing demo:** a middleware picks a fast or deeper model per request (the demo names Luna for the cheap path and Sol for the heavy one, as spelled in the captions) and traces appear automatically in LangSmith.
- **Real-time uses:** because it is fast and cheap, Allie cites live chat filtering for a stream with 100,000 viewers at about 100 to 150 ms delay, with a "scrubber" for filter strength and parallel classification, and a demo that plays Doom.
- **Training:** the model is trained on in-house synthetic data plus a mix of pre-trained models; further detail is withheld.
- **Confidence caveat:** the returned confidence is a deterministic statistic over the probability map and mostly measures whether one answer dominates. In the Doom demo several options legitimately compete, so gating on confidence was a mistake. Alternatives include the top probability, or top minus second, or top divided by second. Thresholds below 50% for the yes/no type suggest a bad fit or badly written questions.
- **Long inputs:** accuracy can degrade with large state; in the Doom demo an overly granular recent-actions array lowered quality. A "Model Jaggedness" docs page lists known weaknesses.

## Actionable Takeaways
1. Replace LLM calls that make small decisions (ticket routing, spam, risky tool call) with decision-model questions, and keep LLMs for generating text.
2. Define each score level in words, ask one thing per question, and avoid "or" inside a yes/no question.
3. Log every decision-model call and centralize all instructions and criteria in one file, since weak criteria cause most accuracy problems.
4. Test on your own data before production and tune thresholds per domain, rather than trusting default confidence.
5. Send only the state needed for the decision; use a skill (the "Jevify" skill was mentioned) to scan code for LLM calls that could be replaced.

## Notable Quotes
> "Jev is about making fast decisions from specifically well-scoped questions with type safe schemas for each of them." — Allie
> "don't blindly shove it into production without testing." — Allie

---

*Related: `@content/web/github/2026-11-23-claude-code-v2-1-331` · `@content/youtube/cole-medin/my-ai-software-factory-ships-hundreds-of-prs-a-week-heres-how-i-manage-it` · `@content/youtube/indy-dev-dan/claude-code-multi-agent-orchestration-with-opus-4-6-tmux-and-agent-sandboxes` · `@content/youtube/aie/building-agents-is-trivial-now-context-is-the-next-frontier-jeff-ng-unblocked` · `@content/web/hacker-news/2026-11-18-mastra-factory`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*