Skip to content

Jev directory

Jev Model Router — gualican

Routes each prompt to a model tier with one Jev call: a Choice question classifies difficulty (simple, moderate, complex, frontier) and a Score rates stakes. Confidence-gated rules then fall back or escalate, and your application still makes the downstream request.
Stars
2
Language
Python
License
MIT
Reading time
3 min
Published by
Community
Author
gualican
Last verified
Oct 2026

Routes prompts to the right Claude tier (Haiku/Sonnet/Opus) using TypeSafe's Jev model

Forks
1
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

This is one of several Jev listings for the same project. The canonical entry is Jev Model Router — satviksinha.

Highlights

  • One Jev call per prompt asks two typed questions: tier as a Choice (simple, moderate, complex, frontier) and stakes as a 0–2 Score.
  • Low-confidence tier falls back to moderate; stakes above the override threshold escalate one tier even when confidence is fine.
  • The router never calls a downstream provider: it returns the resolved tier, which config.py maps to a model name.
  • Ships a jev-router CLI and an HTTP server: route, classify, serve --reload, or POST /route with a JSON prompt.
  • Unit tests mock the TypeSafe calls; the README documents the tier criteria and thresholds as starting points to adjust from observed results.

Quickstart

bash
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
cp .env.example .env  # fill in TYPESAFE_API_KEY

Watch out

Grounded in the full repo README and GitHub metadata read on 2026-10-15. The GitHub description names Claude tiers (Haiku/Sonnet/Opus) while the README maps tiers to OpenAI model names (Luna/Terra/Sol/Astra); the sources disagree, and no accuracy results are published.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

Facebook: Intake Router keeps diagnosis out of the answer space at the front desk.

FacebookClinicnotes

X: OpenRouter Decision Model Rankings

X: herdr + jev, an agent router

X: A group chat bot with decision room routing

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai