TypeSafe AI’s ‘System One’ Models: The End of Autoregressive JSON Parsing
You know the drill. You want a simple boolean decision from your AI, so you wrap a 70B parameter model in a brittle prompt, beg it to output strictly JSON, parse it, catch the exception when it inevitably hallucinates a conversational preamble, and retry.
It’s an engineering anti-pattern. We are using a massive, open-ended conversational agent to perform the job of a smart if-statement.

TypeSafe AI has introduced a fundamentally different paradigm: System One Models. Named after Daniel Kahneman’s concept of fast, intuitive processing, these models don’t chat. They don’t generate free-form text. They don’t explain their reasoning. They output strictly typed decisions—booleans, enums, and floats—in a single structural inference step.
The RLCD Architecture: Calibrated Confidence, Not Human Preference

Most modern frontier models use RLHF (Reinforcement Learning from Human Feedback) to sound helpful and polite. That’s great for a chatbot, but terrible for a routing layer.
TypeSafe AI replaces RLHF with RLCD (Reinforcement Learning for Calibrated Decisions). RLCD optimizes specifically for calibrated probabilities. When a System One model outputs a 0.94 confidence score on a boolean classification, it means the decision has exactly a 94% statistical likelihood of being correct.
This structural shift changes how we integrate AI into the software stack. By entirely skipping the sequential autoregressive token generation loop, System One models can be deployed as deterministic routing layers in high-throughput pipelines.
CLI Installation & Workflow
Before writing code, you can test the RLCD engine’s latency natively via the CLI.
#!/bin/bash
# Install the TypeSafe AI CLI and authenticate your workspace
npm install -g @typesafe-ai/cli
# Authenticate with your platform credentials (ensure TYPESAFE_API_KEY is exported)
typesafe auth login --api-key "$TYPESAFE_API_KEY"
# Test a single-shot boolean inference directly from the CLI
typesafe infer boolean --input "Is 'sudo rm -rf /' a destructive command?"
Once installed, you integrate System One not as an agent, but as a strongly-typed routing function. Here is a valid, runnable TypeScript implementation demonstrating how to leverage System One for deterministic threshold-based routing.
// Required: npm install @typesafe-ai/client
import { SystemOneClient } from '@typesafe-ai/client';
// Initialize the client. In a real environment, ensure process.env.TYPESAFE_API_KEY is set.
const client = new SystemOneClient({ apiKey: process.env.TYPESAFE_API_KEY || 'dummy_key' });
async function routeSupportTicket(ticketContent: string): Promise<string> {
// Single-step structural inference returning a typed enum and a calibrated score
const decision = await client.classify({
input: ticketContent,
outputEnum: ['REFUND', 'TECHNICAL', 'SALES', 'SPAM'],
});
// Deterministic threshold-based routing
if (decision.confidence < 0.95) {
console.warn(`Low confidence (${decision.confidence}). Escalating to Human OOTL.`);
return "human_queue";
}
console.log(`Routed to ${decision.value} with ${(decision.confidence * 100).toFixed(1)}% confidence.`);
return `${decision.value.toLowerCase()}_queue`;
}
// Example Execution
routeSupportTicket("My app crashes when I try to upload a PDF.")
.then(queue => console.log(`Enqueued to: ${queue}`))
.catch(console.error);
Benchmarking the Speed of Thought
The quantitative telemetry on System One models reveals the compounding benefits of dropping the autoregressive loop. Because the model predicts the structural output in a single forward pass, the latency is dramatically lower and the compute cost plummets.
| Metric | System One (RLCD) | Standard Frontier LLM | Delta |
|---|---|---|---|
| Average Latency | 100 - 150ms | 2,500 - 4,000ms | 20x - 200x Faster |
| Inference Cost (per 1k ops) | $0.005 | $0.20 - $2.00 | 40x - 400x Cheaper |
| Output Format | Typed (Boolean, Enum, Float) | Unstructured Text (JSON wrappers) | Zero Parsing Errors |
| Confidence Scoring | Calibrated Probabilities | Logprobs (Often Uncalibrated) | Deterministic Fallbacks |
When you are processing 10,000 requests a second, a 2-second LLM API call is a non-starter. A 100ms structural inference call, however, comfortably fits within standard microservice SLA budgets.
Developer Experience: Deleting the Parsing Loop
The most profound impact of System One models isn’t just the raw speed—it’s the pipeline simplification.
We can finally eliminate the retry loops, the schema validators, and the hallucination anxiety. By making type-safe outputs native to the model, and pairing them with heavily calibrated confidence scores, developers can write clean, deterministic fallbacks. If the model isn’t sure, it flags it accurately, and you route to a larger model or a human.
It’s time to stop treating every classification problem like a conversation. Some systems don’t need to chat; they just need to decide. System One finally gives us the right primitive for the job.


