jev
Stop burning LLM tokens on yes/no calls.
한국어 ·
Install ·
Usage ·
Troubleshooting
Your agent makes narrow judgments all day long — is this file relevant? is this test
failure a flake? which bucket does this go in? Every one of those is an LLM call, tokens,
and seconds.
jev doesn't generate text.
It returns a typed value with a calibrated confidence, in about $0.00004 and 300–500ms.
Three questions, one call, one charge.
Why not just ask the LLM
| Asking the LLM | jev |
|---|
| Answer | Prose — "this looks probably relevant" | A typed value plus probabilities |
| Confidence | None. It always sounds sure | Calibrated confidence |
| Speed | 2–10s | 300–500ms |
| Cost | The judgment can cost more than the work | $0.042 / 1M input tokens, output free |
| Shape | You parse it. Sometimes it breaks | Always the same shape |
Need the auth-related files out of 184?
git ls-files | jev --batch --bool relevant "Is this file part of the auth logic?"
{"input":"src/auth/session.ts","relevant":true}
{"input":"README.md","relevant":false}
Your agent reads 12 files instead of 184 — and never had to guess.
Measured
Not estimates. Both paths run through the same gateway, so the billing numbers come
straight out of the responses. The script and the inputs are in bench/ —
re-run it yourself.
20 Korean support tickets → which team, and is it urgent.
| Calls | Input tok | Output tok | Cost | Agreement |
|---|
| jev | 20 | 7,961 | 1,100 | $0.000334 | — |
openai/gpt-5.2, all 20 in one prompt | 1 | 457 | 166 | $0.003124 | 18/20 |
9.3× cheaper, against the LLM's best case — one batched call, no per-item overhead.
Per judgment jev came to $0.0000167 and ~500ms.
jev spends 17× more tokens and still costs a tenth as much: its input tokens are
about 160× cheaper, and its output is free. Sending each item separately, with the
full question spec each time, is the cheap thing to do here.
What this doesn't show
- The batched LLM is faster in wall-clock time. One call answered all 20 in ~2.1s.
If your items all fit in one prompt and you don't mind parsing the result, speed is
not the reason to reach for jev — cost, a fixed output shape, and calibrated
confidence are.
- Free-tier rate limits hit both. Under sustained concurrency both jev and the chat
models returned 429. The benchmark runs sequentially so limits don't contaminate the
comparison.
- Neither side is ground truth. 18/20 agreement means they differed on two tickets,
not that either was right.
AI_GATEWAY_API_KEY=... node bench/run.mjs openai/gpt-5.2 2
What it includes
| |
|---|
skills/jev/SKILL.md | When to delegate and when not to. This is the skill |
skills/jev/jev.mjs | CLI and library. One file, zero dependencies |
Copy the skill directory anywhere and it works. No build step, no npm install —
just Node 20+ and its built-in fetch.
Install
jev ships as a portable Agent Plugin — one plugin.json,
one skills/ directory. Codex and Claude Code install the same files.
Get a key
Either one works. Both are plain HTTPS — neither adds a dependency.
If you already have a Vercel account the second one is faster; AI Gateway serves jev on
the free tier. With both set, jev calls TypeSafe directly.
Put it in ~/.zshenv, not ~/.zshrc
This is where most people get stuck.
echo 'export AI_GATEWAY_API_KEY="vck_..."' >> ~/.zshenv
zsh reads each file under different conditions:
| File | Read by |
|---|
~/.zshrc | Interactive shells only — the terminal you type into |
~/.zprofile | Login shells only |
~/.zshenv | Every zsh — including the non-interactive shell your agent uses |
Agents run commands in a non-interactive shell. Put the key in ~/.zshrc and
echo $AI_GATEWAY_API_KEY prints it in your terminal while the agent keeps reporting
"no API key".
On bash, use ~/.bashrc, and add ~/.profile too if the same symptom shows up.
Restart the agent
A running process never sees an environment variable that changed after it started.
The macOS desktop app does not quit when you close the window — ⌘Q, then reopen.
Verify
jev --doctor