Building Agent Harnesses with Jev: Where Decision Models Fit
Summary
This talk details how 'decision models' (like TypeSafe AI's Jev) can be integrated into the agent harness—the logic layer surrounding the core LLM loop—to significantly reduce latency and cost. By replacing LLM calls with constrained, probabilistic decision models for tasks like routing, guardrails, and goal enforcement, applications can achieve massive performance gains, as demonstrated by the Browserbase case study.
Key takeaways
-
Decision Models vs. LLMs
0:01
While LLMs take text/multimodal input and produce text (a slow, token-by-token process), Jev is constrained: it takes an input state and questions, and returns typed answers with probabilities, making it ideal for making decisions within the agent loop (1:42).
-
Performance Bottleneck Mitigation
Adding LLM-powered logic (like summarization or complex search) to the agent harness increases application latency and cost. Decision models address this by handling critical, high-frequency decisions (0:15).
-
The 'Start Cheap' Philosophy
0:11
A key design principle is to start with a cheap, fast decision model and only escalate to a frontier LLM by exception, typically using the LLM as a fallback for low-confidence answers (11:27).
Technical details
-
Model Routing
4s
Decision models can match the complexity of a task to the appropriate model's capability (e.g., using a fast, less powerful model instead of a frontier model like Opus 5.5) to optimize both cost and latency (4:07).
-
Guardrails and Auto Mode
5s
Jev can be used at the pre-tool execution stage to efficiently decide if a tool call is 'risky' or concerning, providing a low-latency alternative to LLM-based security guardrails (5:41).
-
Loop Enforcement and Drift
7s
Decision models can enforce rubrics and judge agent drift, preventing agents from getting stuck in unproductive loops, which is critical for maintaining goal accountability (7:53).
-
LangChain A/B Test Findings
5s
LangChain reported that their initial LLM-powered model routing experiments resulted in routed threads taking significantly longer than unrouted threads, a problem solved after implementing Jev (5:14).
Mentioned resources
Channel & topics
Watch on YouTube · Back to latest
This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.