Skip to content

Jev directory

Pi TypeSafe — DevMortimer

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.
Stars
48
Language
TypeScript
License
MIT
Reading time
3 min
Published by
Community
Author
DevMortimer
Last verified
Sep 2026

DevMortimer/pi-typesafe

User repository on GitHub

View on GitHub

TypeSafe decisions for Pi: batched evaluation tool, terminal playground, and typed API for extension authors

Forks
13
Last pushed
Updated Oct 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

Jev inside Pi. Jev is TypeSafe's judgment model: send it some state and typed questions and it returns probabilities instead of prose, in well under a second, for a fraction of a cent. This package gives Pi three things built on it: A tool for the agent. typesafeevaluate hands small structured judgments (classify, triage, compare, score) to Jev and returns calibrated numbers in one batched call.

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

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

json
{
  "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.

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: Tool calling as classify plus action, back to twelve-factor agents

X: A chat bot with no LLM

Other listings of this project

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

DevMortimer's Pi extension hands batched Choice, Score, and Noul judgments to Jev: a typesafe_evaluate agent tool, a terminal playground, and a typed API other extensions reuse, with daily request, token, and dollar caps.
Jev Agents & MCP#community#pi#typescript
Community
0GitHub stars
A Pi extension that runs four hazard checks before bash, write and edit and four diff-quality checks afterwards, sharing one System One request per phase and applying its own thresholds.
Jev Agents & MCP#community#jevbest#catalog-import

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