Skip to content

Switchboard — aniruddh-krovvidi

An OpenAI-compatible proxy that spends one Jev call per request on injection, harm and PII checks plus a tier label, then routes to a small or large backend from pure code.

Stars
1
Language
Python
Published by
Community
Author
aniruddh-krovvidi
Last verified
Oct 2026

Guardrail + model router for LLM gateways on TypeSafe's Jev (System One model), with an independent accuracy/calibration/latency evaluation. Stdlib Python.

Forks
0
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

A guardrail and model router for LLM gateways, built on Jev, TypeSafe AI's "System One" model (launched 2026-09-15), plus an independent evaluation of whether Jev's probabilities can be trusted.

Quoted from the project's README. Read the full README.

Highlights

  • Four questions in one parallel call: injection, harmful and PII as Noul, plus a small/large/unclear tier choice.
  • policy.py owns the outcome as pure functions; risk at or above 0.80 blocks with 403, 0.40 to 0.80 allows and flags.
  • The guardrail evaluation ships a committed cassette, so python3 eval_guardrail.py reproduces every number with no API key.
  • No dependencies: jev.py is a 90-line stdlib client with record and replay cassettes keyed by request hash.

Watch out

The evaluation is one live run over a single public dataset of 662 labelled prompts with 263 injections, in English and German, so the calibration figures describe that mix rather than your traffic. On it the model is under-confident, with ECE 0.122, Brier 0.092 and every bin above 0.1 almost entirely injections, which is why the shipped block and review thresholds are 0.5 and 0.1 rather than the 0.8 and 0.4 from the vendor cookbooks. Routing quality, meaning whether the small tier actually suffices, is explicitly not measured and would need a live backend plus an answer-quality judge. Only the last user message is judged, so multi-turn injection needs the transcript put into state. By default the gateway fails open to the large backend when Jev is unreachable, with FAIL_MODE=closed to reject instead. There is no streaming pass-through yet, so backend responses are buffered for the post-check. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

Other listings of this project

Forks and copies of this project in the directory. This entry is the canonical one.

19GitHub stars
Apache-2.0 router that runs inside Claude Code or Codex: Jev classifies the task, a local policy picks the model and reasoning effort, and the pair stays pinned for the whole conversation.
Jev Agents & MCP#community#awesomejev#catalog-import

More Jev resources like this

9GitHub stars
Hermes Agent plugin exposing Jev as four coding-workflow tools for parallel judgments, binary checks, option routing and rubric scoring, with a bundled question-design skill.
Jev Agents & MCP#community#jevbest#catalog-import
23GitHub stars
Coding-agent plugin that routes prompt classification, subagent tiering, edit rule checks, and fast Jev-backed compaction through small typed judgments.
Jev Agents & MCP#community#jevbest#catalog-import
14GitHub stars
Opt-in Hermes plugin that routes each turn to one skill: a wide Jev Choice plus request checks gate a narrow fits round, injecting a single ignorable hint line.
Jev Agents & MCP#community#jevbest#catalog-import
LangChain deepagents middleware that replaces SkillsMiddleware with per-turn judging, loading only the SKILL.md files a turn needs so large catalogs stay out of the prompt.
Jev Agents & MCP#community#jevbest#catalog-import
3GitHub stars
Python CLI that classifies a request into one of three tiers — local rule, structured decision or skill, or foundation model — using TypeSafe Jev, 20 bundled skill profiles with exclusion conditions, and local environment checks.
Jev Agents & MCP#community#jevbest#catalog-import
3GitHub stars
Hermes plugin that puts an agent's plans, drafts and claimed completions up for review — plan_review, evidence_review, action_verify — plus local approval rules that make no model request.
Jev Agents & MCP#community#awesomejev#catalog-import
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai