I tried to make my AI writer cheaper with Jev. The writing got worse. I kept testing until I understood where the model helped. The research tally records 19,367 successful Jev API responses and 90.4M metered input tokens in 4 days, including retries and reruns. This repo contains the guide, a CLI, 5 measured question sets and the failures that changed how I use them.
Start with The Ultimate Guide to Jev (After 19,367 Calls and 90M Tokens) if you want the full story, an honest decision map and a first workflow you can run. The Markdown version lives here in the repo.
Jev takes a state and focused questions and returns typed answers: Choice (one option), Score (a described scale), or Noul (yes/no). It does not write prose. Your code decides what to do with its answers. This repository adds a standard-library Python CLI, 5 tested question sets, and measurements from real work. It is an independent community project, not TypeSafe's official skill.
git clone https://github.com/marcodicesare-dev/jev-skill.git ~/.claude/skills/jev # Claude Code
git clone https://github.com/marcodicesare-dev/jev-skill.git ~/.agents/skills/jev # Codex and others
export TYPESAFE_API_KEY=... # set locally; never paste a real key into a prompt or commitThen ask your agent: “Use the Jev skill to find one repeated, bounded decision in this workflow. Show me the question, the state, and a small labelled test before changing the workflow.” Python 3 and an API key are enough to use the CLI; there are no package dependencies. You can also install TypeSafe's official skill with npx skills add typesafe-ai/skills --skill typesafe-ai; use its live documentation for current provider behavior.
J=~/.claude/skills/jev # adjust to your install path
python3 "$J/tools/jev.py" ask \
--via typesafe \
--state '{"message":"I was charged twice and need help."}' \
--questions "$J/examples/message-routing.json"This example asks which team should see a customer message first. Read answers.route.choice and the probabilities for billing, account and other. Routing the message does not verify that 2 charges happened or approve a refund. This is an illustrative quick start; the 5 measured recipes are indexed below. The response also includes the model name, latency and token usage. --via typesafe uses the official endpoint with a TypeSafe API key (live tested: HTTP 200, jev-1.13.0, 28 September). Without a route flag, the CLI uses the LLM API gateway used for most experiments; it needs LLMAPI_API_KEY. --via openrouter selects a version-pinned route. Read API and route details before integrating Jev into an application; check TypeSafe's live documentation for current contracts and limits.
| Good candidate | Keep elsewhere |
|---|---|
| Route a ticket, classify a review, score a defined quality dimension, check whether a source supports a claim | Write copy, explain a judgment, calculate an exact value, grant permissions or choose what a writer reads when all source material fits |
The operating shape: collect the evidence a person would inspect → ask narrow questions about one item → let code apply the answer → send uncertain or consequential cases to review. Read patterns for the design and pitfalls before setting thresholds.
If you already have an AI agent, copy the workflow audit prompt. It finds candidate decisions in your code and sets up a shadow comparison before any replacement.
Each guide starts with a problem I hit, shows the result and gives an assignment you can paste into your own agent. The field-guide playbook is the shorter operational version for an agent already using this skill.
- I ran Jev 19,367 times. Here's the first job I'd give it in a new AI agent. — route a message before asking a larger AI to reply.
- My AI read 14 team calls and missed 10 things I asked for. Jev found them. — recover decisions from an archive without losing the source passage.
- Jev said “99% sure.” About 15% of those answers were wrong. — choose an action threshold from checked examples.
- I tried to make Jev cheaper. Then 34% of its answers changed. — batch questions about 1 item without mixing unrelated items.
- My AI cited a page that proved nothing. I made Jev check it. — verify an extracted fact against the page it came from.
Read them on the illustrated guide site or as Markdown here. The covers are environmental paintings; the results stay in native tables and code, with test limits stated beside them.
These are September 2026 results on my tasks, not general Jev benchmarks. Denominators and limits are in capabilities, the recipe index, and the research tally.
| Finding | Measured result | Practical lesson |
|---|---|---|
| Let Jev select source notes for an ad writer when the writer could read them all | Full-context ads won 13 comparisons; filtered ads won 3; 4 were inconclusive because the judge changed with reading order | Do not filter a writer's material by default. |
| Search 30,143 call utterances for known founder instructions | 51 of 54 found with Jev while reading 7% of windows; keyword search found 49 | Use Jev alongside search when the corpus is too large to read whole. |
| Give keyword classification the top 5 search results | 88.3% → 98.7% accuracy on 300 labelled keywords | Put the evidence a human would check into the state. |
| Reword a Choice option so its name contradicted its description | Exact star ratings fell from 27 to 15 of 40 | Option names are part of the question. |
| Compare 4 quality levels of the same ad | Correct ordering on 30 of 30; near chance among 4 good variants | Test with real contrasts before calling a judge useful or useless. |
| Check probability against observed accuracy | Top band: 98.6% stated, 84.8% right across 138 claim checks | Calibrate on labelled cases before automatic pass lines. |
The 5 recipes cover keyword intent, review stars and an injection flag, ad quality, transcript search, and claim-versus-source checks. Each recipe declares its required state and test. The injection flag caught simple planted strings, but it is not a security boundary.
- Jev API and Python example: request and response shape, routes, limits
- Jev with Claude Code or Codex: skill instructions and the install command above
- Where Jev belongs in an existing agent: copyable workflow audit
- Choice, Score and Noul questions: API reference and tested recipes
- Classification, routing, scoring and LLM-as-judge: capabilities and patterns
- RAG evidence checks and hallucinated extracted facts: claim-versus-source recipe and its measured limits
- Cost, latency, confidence and calibration: API notes, field results, pitfalls
For new model versions, providers and SDK features, prefer TypeSafe's official docs and official skill. My dated experiments are useful evidence; check current behavior before building on them.
Built and maintained by Marco Di Cesare while working on Lumina, an AI-native platform for hotel marketing. I share the visual side of the work on Instagram and the experiments on X.
This is independent research, not affiliated with TypeSafe. MIT licensed. If a recipe fails on your labelled cases, open an issue with the state shape, question, expected outcome and model version; remove private data first.