Skip to content

Jev directory

Pi Jev Model Router

pi extension that routes every prompt to a task-appropriate model tier using four TypeSafe Jev typed judgments, with budget-aware downgrades, candidate fallback chains, and the decision recorded in the transcript.
Stars
11
Language
TypeScript
License
MIT
Reading time
2 min
Published by
Community
Author
da-vinci-noob
Last verified
Oct 2026

Route pi prompts to task-appropriate model tiers with TypeSafe Jev typed judgments. Budget-aware, with automatic fallback.

Forks
9
Last pushed
Updated Oct 2026

Repo stats from the GitHub API, cached Oct 2026.

Languages
TypeScript
Platforms
CLI
Capabilities
Open sourceRequires API key

Highlights

  • Jev answers four questions per prompt: task_kind, complexity, capability_deserved, and needs_deep_reasoning, in one request.
  • Code composes the tier: demand = 0.55*complexity + 0.45*capability plus a reasoning nudge, with a kind floor so planning and review never go cheap.
  • Budget guard: daily and monthly caps downgrade tiers automatically; each tier is a candidate chain that falls through unavailable models.
  • Fails open by default: missing key, timeout, or unknown model warns and keeps the current model; quota protection can stop submission instead.
  • One command installs it: pi install npm:pi-jev-model-router, after installing pi; a pinned git ref such as v0.8.0 is also supported.

Quickstart

bash
npm install -g --ignore-scripts @earendil-works/pi-coding-agent
pi install npm:pi-jev-model-router
export TYPESAFE_API_KEY=...

Watch out

Copy reviewed against the repository README on 2026-10-15; it was truncated inside the commands table, so the complete command list and configuration reference were not inspected. It needs Node.js 20+ and a TypeSafe API key with access to jev-latest, and the pi host itself is a separate package.

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