Practical Guides · knowledge base from X

Jev for beginners: the AI that doesn't write a word (and where to use it)

A clear guide to TypeSafe's Jev: what it is (an "if statement that understands language"), what it costs, the three question types, your first request in 10 minutes, the habits that make it cheap and precise, typical mistakes and the first low-risk projects.

✍️ Alpha Batcher · @alphabatcher
🔗 Read the original on X · X Article · published 27 Sep 2026
📊 29 likes · 7.4k views (author with 51k followers)
Summary and adaptation in English; content and results belong to the author.

Part of the manual Jev and models that decide — the complete manual

Claimed result

No financial result: it's the most complete technical guide for starting from zero. Context: on September 15, 2026 TypeSafe AI launched Jev; the thread by founder Diogo Almeida (who at OpenAI contributed to the instruction-following research behind ChatGPT) passed 39 million views and almost 59,000 bookmarks. Five days later (September 20) TypeSafe removed the waitlist with $5 of free credit (~120 million tokens); on September 22 it suspended new sign-ups due to excess demand (existing accounts work; there's an email form for the reopening).

Proof: framework. An explanation based on the official documentation, the cookbook and the known-limitations ("jaggedness") page; it includes the Hacker News criticisms.

The key idea

An if statement that understands language. Normal code branches on what it can compute (if order_total > 100) and breaks when the condition requires judgment: is this customer angry? will this command delete files? You end up with keyword lists and regexes that break at the first differently worded sentence, or you pay an LLM hoping the JSON is valid. Jev handles these conditions directly: "a function call for frontier intelligence": messy input in, typed decisions with probabilities out.

Every request has two parts: the state (what needs to be judged: a message, a form, a JSON record, a chat) and the questions (the judgments you want, with the possible answers defined in advance). Jev returns one typed answer per question with the probabilities; your code reads the numbers and decides.

The quickstart example: the message "Hi, for 3 days I've been trying to connect my Stripe account and the integration keeps failing. I'm losing sales. Please help ASAP." Three questions together: which team (billing, technical, sales), how frustrated (a 3-level scale), is it urgent? Result: technical 0.85 (0.15 billing), frustration exactly at "frustrated but civil", urgency 1.0. 392 input tokens.

Step-by-step playbook

1. Where it sits relative to ChatGPT and Claude Code

  • LLMs generate text one token at a time: even when forced into JSON, the code has to parse a string that may arrive malformed or truncated; if you ask for a confidence you get a number written by the model, which TypeSafe calls "overconfident and inconsistent".
  • Jev evaluates all the questions in parallel in a single pass and returns a probability distribution over the allowed answers. Trained with RLCD (Reinforcement Learning for Calibrated Decisions): calibrated means that, across many answers given at 0.9, about 9 out of 10 are right.
  • You can't use it as the model inside Claude Code, Cursor or Codex (the documentation says so): the agent writes the code that calls Jev, and your app calls it when it needs a decision.
  • The best setups use both: the LLM writes and reasons; Jev makes the small decisions in between (which model should do the task, whether a tool call is safe).
  • The names: "System One" comes from Kahneman's Thinking, Fast and Slow (system 1 = fast, automatic judgment); Jev from William Stanley Jevons, who noticed that more efficient steam engines increased coal consumption: if a decision costs almost nothing, software will make many more of them.

2. The numbers that matter

  • $0.042 per million input tokens ($42 per billion), output free. The quickstart request (392 tokens) costs ~$0.000016; 100,000 similar messages ~$1.65.
  • Latency 70–500 ms end-to-end measured from the US West Coast (where the service runs); from Europe or Asia add the network and measure. In the launch demo Jev played Doom at ~10 decisions per second for ~$7 an hour.
  • The slogan "193.6× faster and 444.6× cheaper" comes from TypeSafe's evals and, by their own admission, is the high end of the real gains; on Hacker News people pointed out that comparing a model with no text output to LLMs that reason at length inflates the gap. Use it as a ceiling.
  • Limits: 64,000 tokens per request (state + longest question ≤ 32,000); up to 255 options per Choice; 2–10 levels per Score; text only (a string, a JSON object or an array of texts; no images, audio, video); English works best, other languages accepted with lower precision; 250,000 tokens/s and 1,200 requests/minute (may change).

3. The three question types

Pick the type before thinking about the wording. The question key (e.g. refund_requested) exists only for your code and doesn't reach the model: write out the full question in the instructions even if the key seems obvious.

Noul (yes/no) – a number: the probability of yes. - Phrase it so that high = yes ("Does the message contain personal data?", not "is it free of personal data?"). - One condition per Noul: "is the customer angry and asking for a refund?" → two Nouls combined in code. - ~0.5 means yes and no are equally likely, not "half": to measure how much of something there is, use a Score. - Threshold according to the cost of error: raise it when a false yes hurts (a refund, waking someone at 3 a.m.), lower it when a missed yes hurts more (skipping a security alert).

Choice (pick from a list) – one option among yours (up to 255): it returns the winning choice, the full distribution and a 0–1 confidence (high if one option dominates, low if the probability is spread out). - Always add "other" if the list might not cover everything (Jev has to choose something). - Give the complete list: each extra option costs only a few tokens. - Describe what falls under each option and how it differs from its neighbor when the boundary is fine.

Score (ordered scale) – 2–10 levels from low to high; the score is the probability-weighted average of the level numbers and can fall between two levels (1.43 on a 3-level scale = undecided between 1 and 2, closer to 1). - Write each level as a recognizable situation ("one feature is broken but there's a workaround"), not as "moderately severe". - One dimension per Score: if a level says "urgent and angry and detailed", make it three. - If it wavers between two levels on cases you think are clear, add examples to the levels. TypeSafe's test on a bug "the export button doesn't work in Safari": with plain descriptions 1.43 at 0.35 confidence; with a relevant example ("export fails in one browser but works in another") 1.03 at 0.96; an irrelevant example changes nothing. The examples have to resemble your real inputs. - Use Scores to rank or compare against a threshold; don't read 1.4 as "40% of the way to the next level".

4. Your first request in 10 minutes

  • With an account: open the Playground, paste a real message from your work, add a Noul, a Choice and a Score and run them together. Spend your first hour in the Playground with your own data, before writing code.
  • Without an account: Jev is on Vercel AI Gateway as typesafe-ai/jev, via the AI SDK's experimental_evaluate function (the yes/no type is called boolean there); or LangChain with langchain-typesafe (alpha) and TypeSafeClassifier.
  • Direct API: the Python SDK (3.10+) with the key in TYPESAFE_API_KEY (there's also a JavaScript SDK). The quickstart router returns technical with 0.78 confidence (above the 0.5 minimum threshold) and urgency 1.0 → the on-call technical team. A vague message ("hey, something's wrong with my account") spreads the probability across teams, lowers the confidence and goes to a person first: that's where Jev earns its place, by telling the code when it isn't sure. In your version add "other" and replace the prints with the real handlers.

5. The habits that make it cheap and precise

  1. Everything in one request ("speculative fan-out"): the questions run in parallel on the same input, one more barely changes the timing and costs only its own tokens. In the GDPR cookbook 13 questions together turned out 12.2× cheaper and 10× faster than 13 separate requests (the long document travels once). Also include questions useful only for some inputs (e.g. bug severity on a message that might be about billing) and ignore in code what you don't need. Make a second request only if the next question depends on data to be fetched after the first answer.
  2. Every action conditional on confidence, three lanes: high = automatic; medium = user confirmation or review; low = a person or a slower fallback. The bar moves with the stakes: in TypeSafe's banking example below 0.5 goes to a human, and you need above 0.9 to approve a transfer without asking. Start strict, then move the thresholds once you've seen how confidence and accuracy line up on your data.
  3. Break big judgments into small Scores ("composite scoring"): not "how important is the ticket?" but bug severity, customer frustration and report detail, combined in code with weights like 0.6 / 0.3 / 0.1, first dividing each score by its maximum level. If the ranking doesn't convince you, you change a number, not rewrite a prompt.
  4. Have it pick from a list (Jev doesn't write values): extraction becomes "find candidates with a regex or an LLM, then a Choice over those candidates"; the extraction cookbook does this for emails, phone numbers and amounts, then the code normalizes. "Extract X" → "here are the candidates for X: which is it?".
  5. Refer to fields by name: with a JSON state use backticks and dotted paths ("does refund_policy cover the situation in message, given order.charges?").
  6. Send only what's needed: precision drops with irrelevant text (context rot). Filter in code (classify the ticket without the customer's entire history); if you can't, a "is it relevant?" Noul for each block and discard the low ones.
  7. Pin the model version: jev-latest changes with every release; every response states the exact version (today jev-1.13.0): log it and, once the thresholds are tuned, use the versioned ID.
  8. All the questions and thresholds in a single file: it's what a reviewer needs to read and where you'll make almost every fix.

6. Where it goes wrong (jev-1.13's "jaggedness" page, revised September 17)

  • It reads literally: it answers the words written, including negations and scope words; it doesn't guess intent. If a mistake forces you to explain what you meant, that explanation belongs in the instructions.
  • Numbers and dates belong in code: it doesn't count well (characters, items in a list), doesn't do arithmetic, judges color names better than hex codes, reads dates as text (which comes first, whether it falls in a window: unstable answers). Solution: Jev for meaning, code for math. To count items, one Noul per item and sum in code; for dates, a Choice on day, month and year with a "not stated" option, then build and compare real dates in code (date-extraction cookbook).
  • Messy inputs cost precision: double negatives, questions about a property of a property, long inputs full of useless detail, text written to manipulate the model (hidden instructions in a customer's message). Test with hostile inputs before real users.
  • Separate questions don't respect logic: "is it asking for a refund?" 0.72 and "is it asking for something other than a refund?" 0.47 = 1.19. Ask each decision in one way only, and don't reuse a threshold tuned on a Noul for a Choice.
  • A typed answer can be wrong: "it can't hallucinate" only means it doesn't step outside your options; it can pick the wrong valid one. The defenses are confidence and a labeled test set.
  • Anything that requires generated text (a reply, a summary) stays with an LLM.

7. What to build first (cheap mistakes)

  • Inbox or support triage: a Choice for the team, a Noul for urgency, a Score for frustration, routing in code.
  • Labeling a spreadsheet: one request per row for topic and sentiment; at ~300 tokens per row, 10,000 rows ≈ 13 cents.
  • A model router in front of your LLM (cheap model or powerful one?); LangChain has a router middleware.
  • A safety check before an agent uses a tool: LangChain's AutoModeMiddleware uses Jev to filter calls to tools like bash and block the risky ones.
  • Verifying an LLM's output: a cookbook to check that a citation supports the claim before it reaches the user.

8. Have your coding agent write it

Install TypeSafe's official skill before asking Claude Code, Codex or Cursor to integrate Jev (up-to-date API and recommended patterns). Warnings from the documentation: with an old skill agents invent fields, and agents aren't good at writing the questions (review them yourself). Recommended first prompt: have it map the opportunities in the project before touching the code.

9. Rolling out without breaking what works (for every new decision)

  1. Keep the current behavior running.
  2. Run Jev in parallel and log every answer with probabilities and version.
  3. Label a few dozen real inputs with the expected answer.
  4. Fix questions and thresholds where confidence and accuracy disagree.
  5. Automate the low-risk path first.
  6. Leave uncertain cases to a person or a stronger model. An if statement that costs nothing and already decides well beats a call to a model that can get it wrong.

Tools and costs

Item Cost / detail
Jev (TypeSafe API) $0.042/M input tokens, output free; $5 of starting credit (sign-ups suspended since 9/22)
Quickstart example 392 tokens ≈ $0.000016
100,000 similar messages ~$1.65
Labeling 10,000 rows ~$0.13
Vercel AI Gateway typesafe-ai/jev, experimental_evaluate
LangChain langchain-typesafe (alpha), TypeSafeClassifier, router and AutoModeMiddleware
SDKs Python 3.10+, JavaScript

Limitations

A technical guide with no financial results; direct access suspended; text only; Italian still to be verified; the model is young and the known-limitations page changes with each version.

← More guides in “Jev and the models that decide”