Skip to content

Jev directory

Jev as a Guardrail

A benchmark comparing TypeSafe Jev with Claude Haiku 4.5 as input guardrails across jailbreak, evasion and benign prompts, measuring detection rates, false positives, latency and cost. At n=1,000 Jev traded some detection for a 328 ms median latency and $0.03 per 1K calls versus Haiku's 2,066 ms and $1.87.
Stars
0
Language
Python
License
MIT
Reading time
2 min
Published by
Community
Author
rahulbansalc6414
Last verified
Oct 2026

Highlights

  • Datasets: Jailbreak-PromptBank attacks, Mindgard evaded injections and PHTest pseudo-harmful benign prompts, sampled 53/13/33 with pinned revisions.
  • Jev asks three Noul questions plus one Choice risk level and flags unsafe when any Noul exceeds 0.5 or the level is dangerous.
  • Results at n=1,000: detection 91.9% vs 96.6%, evasion 78.2% vs 94.0%, false positives 9.6% vs 14.1%, median latency 328ms vs 2,066ms.
  • Cost per 1K calls: $0.03 for Jev at $0.042/1M input tokens versus $1.87 for Haiku 4.5 at $1.00/1M input and $5.00/1M output.
  • Requires TYPESAFE_API_KEY, ANTHROPIC_API_KEY and HF_TOKEN; runs are checkpointed every 50 calls into timestamped results directories.

Quickstart

bash
uv sync
uv run python benchmark.py -n 100

Watch out

Grounded in the complete repository README and GitHub metadata reviewed on 2026-10-15; results are the README's n=1,000 run with pricing as of October 2026, the digest description mentions 1,500 prompts while the published run used 1,000, and all three API keys are required. MIT, 0 stars.

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.

X: Agent Handoff Gate: agents verify what they hand off

X: Jev as an LLM guardrail inside Agentgateway

X: Vercel's fx safety reviewer, measured at 18× faster

Reddit: Early experiments wiring Jev into Pi as a safety layer and model router.

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