Skip to content
JevDirectory.org
CommunityRepos & SDKs41 starsVerified 2026-09-22

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
Tagscommunitytypescriptsdkagentstool-calling

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.

More like this

5.3kGitHub stars
A filesystem-first framework for durable AI agents whose auto model router defaults to Jev through Vercel AI Gateway and whose evaluate helper asks typed Choice, Score, and Boolean questions inside tools.
Repos & SDKs#community#typescript#agents
Communityeve
137GitHub stars
A Juspay TypeScript SDK that treats Jev as a third inference type beside generate and stream: providers declare which kinds they serve, and tryDecide returns typed boolean, choice, or score answers, null when no decision provider is set.
Repos & SDKs#community#typescript#sdk
Communityneurolink
37GitHub stars
An ACP and MCP adapter that bridges TypeSafe Jev with any LLM: native Jev when TYPESAFE_API_KEY is set, or Codex, Claude, Grok, OpenCode, and OpenAI-compatible endpoints standing in as System One when it is not.
Repos & SDKs#community#typescript#mcp
CommunityJevbridge
Back to all resources

From the community

Posts from builders shipping with Jev right now.

Follow @typesafeai

When a designer gets Jev

Full Jev video tutorial

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

tamara
tamara
@tamarajtran

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

Reply

Classifying rows in DuckDB

A playable 16-judgment demo

AI multiple choice, not essay writing