jev-code
Jev, TypeSafe's System One classifier, as a tool inside Claude Code, Codex, Pi, and OpenCode.
Typed labels, yes/no checks, scores, and rankings with calibrated probabilities, in a few hundred milliseconds.
Coding agents make small classification decisions all day: which of these 40 CI failures are
real, which files answer this question, does this PR do what its description says, how severe is
each finding. They usually do it by eyeballing, by writing a regex, or by burning a frontier-model
call per item.
Jev is a decision model rather than a text model: you send evidence and typed
questions, it returns typed answers with calibrated probabilities, never prose. jev-code turns
that into a first-class tool for four coding agents and ships a skill that teaches the agent when
to reach for it.
┌──────────────┐ jev_classify / jev_check / ... ┌───────────┐ POST /v1/systemone ┌──────────────┐
│ Claude Code │ ───── MCP (stdio) ─────────────▶ │ │ ───────────────────▶ │ Jev, hosted │
│ Codex │ ───── MCP (stdio) ─────────────▶ │ jev-code │ │ on TypeSafe │
│ OpenCode │ ───── MCP (stdio) ─────────────▶ │ │ ◀─────────────────── │ OpenRouter │
│ Pi │ ───── native extension ────────▶ │ │ typed answers + │ or Vercel │
│ any shell │ ───── jev-code CLI ────────────▶ │ │ probabilities │ AI Gateway │
└──────────────┘ └───────────┘ └──────────────┘
The documentation site adds a configuration
reference, the exact HTTP requests, and a troubleshooting guide.
What you get
| Piece | What it does |
|---|
| Five tools | jev_classify, jev_check, jev_score, jev_rank, jev_ask. Same names, same JSON, in every harness. |
| One skill | skills/jev/SKILL.md tells the agent when a task needs a classifier, how to write good classes and questions, and how to act on the answers. A reference adapted from TypeSafe's official skill covers building Jev into the user's own code. Follows the Agent Skills spec. |
| One-command setup | jev-code setup detects Claude Code, Codex, Pi, and OpenCode on your machine and wires both the skill and the tool into each. |
| A CLI | The same tools from bash, so the skill still works in a harness with no tool registered. |
Quick start
1. Install into your agents (Node.js 20+):
npx -y @french-castle/jev-code@latest setup
That detects the harnesses on your machine and, for each one, copies the skill and registers the
tool. When no API key is in your shell, it asks for one right there (hidden input) and which host
it belongs to: TypeSafe, OpenRouter, Vercel AI Gateway, one of the other decision APIs below, or a
System One gateway of your own. For a gateway it also asks for the URL, and for Azure or
Cloudflare for your resource endpoint or account id. There is nothing else to configure.
Add harness names to be explicit (setup claude codex pi opencode), --project to install into
the current repository instead of your user profile, or --dry-run to see the plan first.
Prefer to keep the key in your environment? Export it before running setup, and it is picked up
without a prompt. This is also what Pi and the CLI read, so setup prints the line to add to your
shell profile after you paste a key:
export TYPESAFE_API_KEY=... # TypeSafe direct: console.typesafe.ai/keys
export OPENROUTER_API_KEY=sk-or-... # OpenRouter: already set if you use it elsewhere
export AI_GATEWAY_API_KEY=vck_... # Vercel AI Gateway
2. Check it works:
npx -y @french-castle/jev-code@latest doctor --live
3. Restart your agent (or /reload inside pi) and ask for something that needs a classifier:
Triage the failing tests in the last CI run: which are flaky, which are real bugs?
The agent loads the jev skill, calls jev_classify with the failures and a class set, acts on
the auto results, and tells you which ones it double-checked by hand.
What a call looks like
The agent sends raw evidence and its own classes: