Skip to content

Jev directory

Pi Heed

A Pi extension that turns constraints stated in conversation into a scoped, replayable policy and checks every side-effecting tool call against it before it runs, with Jev only classifying how each message changes the policy.
Stars
13
Language
TypeScript
License
MIT
Reading time
3 min
Published by
Community
Author
Nyarlathoteppppp
Last verified
Sep 2026

About this project

Your agent understood your instruction. pi-heed makes sure it still remembers. Runtime constraints for the pi coding agent: every side-effecting tool call is checked against what you said, before it runs. You say "review only, don't touch anything". Forty tool calls and one context compaction later, the agent reaches for write. pi-heed stops it, with your own words as the reason:

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

Highlights

  • Rules carry action, resource, scope, exceptions, and status as DENY, ALLOW, REQUIRE_CONFIRMATION, or REQUIRE_BEFORE, and the most specific resource wins.
  • On 79 scripted sessions and 261 labelled decisions, v0.8.0 with Jev reached 98.5% recall, 0.0% false block, 100% lifecycle, and 98.7% task success.
  • A replay of 21 real pi sessions with 9,090 tool calls blocked 95 calls across 16 incidents, down from 1,013 across 42 in v0.7.4.
  • Every policy change is an op persisted in the session, so state replays after reload or compaction without calling Jev again.
  • It fails open: a Jev error or 2.5 s timeout leaves pi behaving as if pi-heed were not installed.

Quickstart

bash
pi install git:github.com/Nyarlathoteppppp/pi-heed
npm install
npm test                          # 122 tests, no network
node bench/run.ts --judge replay  # benchmark, offline

Watch out

MIT-licensed; needs Pi and a TypeSafe API key or a local model, it is experimental and defaults to shadow mode, and the benchmark is scripted rather than drawn from real sessions.

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: Vercel's fx safety reviewer, measured at 18× faster

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

X: Decision outputs in Grep

Hacker News: jevmem keeps Claude Code project memory by asking Jev which turns are worth saving.

avinashjetwani61 pointsJevmem – automatic project memory for Claude Code, built on JevRead the thread on Hacker News

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