piagent_
← ~/map

$ cat ~/map/pi-jev.md

pi-jev

Typed probabilistic judgements: a gate screens pi tool calls before they run and an output judge classifies results.

extensions✓ Sep 17

Facts

repository
github.com/y0usaf/pi-jev ↗
GitHub Stars
★ 165
Forks
17
license
MIT
npm / mo
—
last push
Oct 1, 2026

install

Run pi install npm:@y0usaf/pi-jev; the extension needs a TypeSafe API key — without one it loads, says so once, and stays out of the way — resolved from TYPESAFE_API_KEY, an apiKey entry, or an apiKeyFile path configured in ~/.pi/agent/pi-jev.json

## TL;DR

A pi extension that wraps TypeSafe Jev as a typed decision layer: a gate asks destructive, exfiltration, beyond-scope, and impact questions about bash, write, and edit calls before they run, an output judge flags leaked secrets and classifies failures in bash output, and a jev_ask tool lets the model request typed judgements itself.

## Key points

## FAQ

Q Is enforcement on by default?

No — shadow mode is. A flagged call produces a notification and a footer status instead of blocking; enforce mode asks for confirmation before flagged calls run, and headless runs fall back to the same warning unless gate.blockWithoutUI is set.

Q What happens when the Jev API is unreachable?

Every error path fails open: a missing key, a timeout, a 429, or a malformed response produces no verdict and the tool call proceeds. Errors are reported at most once a minute, so a dead endpoint does not fill the transcript.

Q Does my file content leave the machine?

By default, part of it can: gate arguments for write and edit calls contain file content, and any string field longer than 400 characters leaves as its first 400 characters plus an elision marker. Setting gate.tools to bash keeps file content out of gate requests entirely; the output judge sends the first 2000 characters of a bash result plus the same tool arguments.

## References

## Related entries

## Guides

Last updated: Sep 17, 2026