🎬 See it in action
Ask a question, get a probability, branch on the exit code, then ask several questions at once.

[!IMPORTANT]
Unofficial project. jev is community-built. It is not affiliated with, endorsed by, or
sponsored by TypeSafe AI. "TypeSafe" and "Jev" belong to their owner. You need a TypeSafe API
key to use it.
🤔 What problem does this solve?
You have text: a support ticket, a commit message, a user's answer, a product review, a model's
output. You need a decision about it: is it angry, which team owns it, how risky is it, should
this pipeline continue?
Today you either write brittle keyword rules, or you ask a large language model and then parse a
sentence it might phrase differently tomorrow.
Jev is a third option. You define the question and the possible answers. The model returns a
number for each one. Your code decides what to do.
jev noul "Is this customer angry?" --state "You charged me twice. Fix it now."
answer noul yes 0.91 ██████████████████░░
model jev-1.13.0 (requested jev-latest) · 42 input tokens · est. cost $0.000002 · 1 ms · request req_demo
One question, one number, about a hundredth of a cent. No prompt engineering, no JSON parsing,
no "As an AI language model".
| LLM prompt | jev |
|---|
| You get back | A sentence to parse | A number in a shape you defined |
| Same input tomorrow | May be worded differently | Same contract, always |
| Cost of a short ticket | Cents | A fraction of a cent |
| Use in a shell script | Parse and hope | Exit code 0 or 10 |
💡 What can I use it for?
Anywhere a program needs a judgment about content. A few that people reach for first:
| Use case | The question you ask |
|---|
| Triage support tickets | Which team owns this, how urgent is it, how upset is the customer |
| Route incoming messages | Sales, support, or spam |
| Moderate user content | Does this break the rule, with the borderline cases sent to a person |
| Gate a CI job | Does this commit describe a user-facing change, so it needs a changelog entry |
| Guard an AI pipeline | Is the user's input on topic, and did the model's answer actually answer it |
| Score feedback at scale | How positive is each of 50,000 reviews, as one batch run |
| Label a dataset | Turn a folder of documents into labelled rows, resumable if it breaks |
| Detect intent in a form | Is this person asking to cancel, and is a refund being requested |
| Check a document | Does this contract mention auto-renewal, in plain language |
Each of these is one command:
# Is this message angry? Exit 0 when yes is 0.7 or more, exit 10 when it is not
jev noul "Is this message angry?" --state-file message.txt --fail-under 0.7
# Which team should handle this ticket?
jev choice "Which team should handle this?" --state-file ticket.txt \
--option billing --option technical --option other