when a designer gets access to Jev
pi-typesafe
A Pi extension and library that gives the agent and other extensions one consented, key-managed Jev client, with a batched typesafe_evaluate tool for classify, triage, compare, and score judgments.
- Category
- Repos & SDKs
- Published by
- Community
- Author
- DevMortimer
- Added
- 2026-09-22
Highlights
- typesafe_evaluate takes JSON state plus 1 to 32 questions and returns answers, model, token usage, and elapsed time.
- The tool is registered at startup but disabled until /typesafe enable; automated or headless runs set PI_TYPESAFE_ENABLED=1.
- Per request: 32 questions and 64 KiB of JSON; per session: 20 attempts, a 15-second timeout, and no automatic retries.
- Daily counters live in ~/.pi/agent/pi-typesafe/usage.json and roll over at local midnight; a cap error names the cap, amount used, and day.
- Independent project, not affiliated with TypeSafe AI or the Pi authors.
Quickstart
{
"state": { "message": "I was charged twice. Please help today." },
"questions": {
"team": { "type": "choice", "instructions": "Which team should handle this?",
"criteria": { "billing": "Charges and payments", "technical": "Software failures", "other": "None of these" } },
"urgent": { "type": "noul", "instructions": "Does the sender request help today?" }
}
}Watch out
MIT-licensed. Requires Pi 0.85 or newer and Node.js 22.19 or newer; usage is billed to your TypeSafe account, an enabled extension with no usable key looks exactly like a working one, and the SDK's TYPESAFE_BASE_URL and TYPESAFE_LOG_LEVEL overrides are ignored.
More like this
From the community
Posts from builders shipping with Jev right now.
When a designer gets Jev
Full Jev video tutorial
Full Jev Tutorial What it is, how you can build with it and what new applications it can unlock → 0:00 Intro → 0:34 Jev explained → 4:06 API setup → 5:59 Demo 1: Voice-controlled browser → 11:33 Demo 2: AI memory → 17:27 Demo 3: YouTube predictor
The case against Jev-scored compaction
This is a terrible compaction strategy that fundamentally doesn't understand how compaction and context management work. Seems like a lot of people are confused so let's break this down. 1. Compaction isn't a filter The role of compaction is to clean up history to keep the Show more
found the perfect use case for @typesafeai Jev: instant compaction in 2026, why is compaction still a summarization prompt? Jev can make it instant by scoring every tool call and dropping what’s irrelevant
Classifying rows in DuckDB
I made a DuckDB extension where you can use @typesafeai 's Jev to do quick classification of rows in any csv/parquet file or duckdb table about 10sec for 1k rows ~ better than using an LLM, way more ergonomic than a classifier game-changing for data analysis!
A playable 16-judgment demo
typesafe's jev is fun! live demo you can play with: typesafe-demo.val.run
AI multiple choice, not essay writing
WTF is Jev by @typesafeai? Here’s the tl;dr ELI5: Think AI multiple choice, not AI essay writing. It doesn’t chat. It makes decisions your software can act on: “Spam or not?” “Which tool should this agent use?” “Does this need a human?” The exciting part: roughly 200x faster Show more