Run Jev Inside an Open Agent Harness
AI agents frequently waste tokens on basic selection tasks like matching requests to predefined lists. By combining TrueFoundry's TrueForge agent harness, TypeSafe AI's Jev decision model, and Daytona's execution sandbox, researchers built a client follow-up agent that matched Claude Opus's accuracy on 40 requests at a 150x lower decision cost. Jev produces structured selections with calibrated confidence scores without text generation, routing low-confidence decisions back to Opus to catch errors. TrueForge further reduces token usage via lazy tool loading, file offloading, and script-based data processing, matching Claude Managed Agents' task success on DevRev's Enterprise Bench with roughly one-third of the tokens. This section explains how to convert a standard generative language model into a decision model that scores predefined choices directly instead of generating text token by token. The process involves freezing the base model backbone, attaching LoRA adapters, and replacing the language model head with a decision head that outputs scores per choice. Probabilities are computed via softmax, and the network is trained using cross-entropy loss followed by confidence calibration on held-out data. Demonstrating this approach, a JEV-style decision model built on Qwen3.5 0.8B improved accuracy from 37% to 65% in 60 training steps using 4GB of VRAM in 10 minutes. Building production AI systems depends far more on the surrounding engineering stack than on the base model itself. The author outlines an eight-layer framework covering model foundations, inference and serving, context engineering, agent harnesses, retrieval and memory, adaptation and training, evaluation and observability, and safety and security. Most hidden costs occur at the inference layer due to disparities between compute-bound prefill and memory-bound decode stages. Stacking multiple optimization techniques across these layers can reduce inference costs by 5x to 8x compared to naive baselines.
Read the original ↗Contents
Run Jev inside an Open Agent Harness
AI agents frequently waste tokens on basic selection tasks like matching requests to predefined lists. By combining TrueFoundry's TrueForge agent harness, TypeSafe AI's Jev decision model, and Daytona's execution sandbox, researchers built a client follow-up agent that matched Claude Opus's accuracy on 40 requests at a 150x lower decision cost. Jev produces structured selections with calibrated confidence scores without text generation, routing low-confidence decisions back to Opus to catch errors. TrueForge further reduces token usage via lazy tool loading, file offloading, and script-based data processing, matching Claude Managed Agents' task success on DevRev's Enterprise Bench with roughly one-third of the tokens.
- Using Jev for matching decisions matched Claude Opus's accuracy while reducing decision costs by 150x across 40 test requests.
- Jev is a decision model by TypeSafe AI that outputs structured choices and calibrated confidence scores without generating freeform text.
- Routing low-confidence Jev predictions back to Opus for review intercepted 5 incorrect matches during testing.
- The client follow-up agent architecture utilized TrueForge as the harness, Jev for decisions, and Daytona as a code execution sandbox.
- TrueForge minimizes token context by loading tool definitions on demand, writing large outputs to files, and executing data tasks via scripts.
- On DevRev's Enterprise Bench, TrueForge achieved comparable task completion to Claude Managed Agents while using approximately one-third of the tokens.
- TrueForge is open source under an MIT license and runs locally via a single command.
How to turn an LLM into a decision model?
This section explains how to convert a standard generative language model into a decision model that scores predefined choices directly instead of generating text token by token. The process involves freezing the base model backbone, attaching LoRA adapters, and replacing the language model head with a decision head that outputs scores per choice. Probabilities are computed via softmax, and the network is trained using cross-entropy loss followed by confidence calibration on held-out data. Demonstrating this approach, a JEV-style decision model built on Qwen3.5 0.8B improved accuracy from 37% to 65% in 60 training steps using 4GB of VRAM in 10 minutes.
- Decision models score predefined options directly via a decision head rather than generating text token by token.
- The adaptation process freezes the LLM backbone, adds LoRA components, and replaces the LM head with a decision head.
- Scores are converted into probability distributions for each distinct question using softmax.
- During training, only the decision head and LoRA parameters are updated via cross-entropy loss.
- A JEV-style decision model based on Qwen3.5 0.8B increased accuracy from 37% to 65% after 60 steps in 10 minutes on 4GB of VRAM.
- At inference time, a single forward pass scores all choices across multiple decisions simultaneously.
The 8-layer engineering behind a production AI system
Building production AI systems depends far more on the surrounding engineering stack than on the base model itself. The author outlines an eight-layer framework covering model foundations, inference and serving, context engineering, agent harnesses, retrieval and memory, adaptation and training, evaluation and observability, and safety and security. Most hidden costs occur at the inference layer due to disparities between compute-bound prefill and memory-bound decode stages. Stacking multiple optimization techniques across these layers can reduce inference costs by 5x to 8x compared to naive baselines.
- Production AI systems consist of eight core engineering layers: model foundations, inference and serving, context engineering, agent harnesses, retrieval and memory, adaptation, evaluation, and safety.
- Inference costs differ drastically between the compute-bound prefill phase and the memory-bound decode phase, with GPU utilization dropping sharply from 92% to 28% on an H100 running Llama 70B.
- Stacking multiple optimizations—such as quantization, PagedAttention, speculative decoding, and prefix caching—can yield a 5x to 8x cost reduction compared to naive FP16 inference.
- Context engineering addresses output degradation issues like context rot and the 'lost in the middle' effect using budgeting, offloading, and compaction.
- Model Context Protocol (MCP) acts as an emerging standard interface connecting models to external tools and data sources, eliminating custom N-by-M integrations.