piagent_
← ~/map

$ cat ~/map/pi-jev-sentinel.md

pi-jev-sentinel

Guards pi tool calls, tool outputs, and replies with Jev-scored risk, injection checks, and secret scrubbing — never auto-allows.

extensions✓ Sep 20

Facts

repository
github.com/harshwasan/pi-jev-sentinel ↗
GitHub Stars
★ 13
Forks
0
license
MIT
npm / mo
—
last push
Sep 20, 2026

install

Run pi install git:github.com/harshwasan/pi-jev-sentinel, then export TYPESAFE_API_KEY before starting pi; to try it without installing, run pi -e git:github.com/harshwasan/pi-jev-sentinel.

## TL;DR

A pi extension that screens every step of a run with TypeSafe Jev: tool calls for intent and risk before they run, tool outputs for instructions aimed at AI agents before the agent reads them, and finished replies for harmful or relayed injected content — with secrets scrubbed from everything sent and a fail-closed ask-you default.

## Key points

## FAQ

Q What happens when Jev is unreachable or no key is set?

It asks you. The guard fails closed — a Jev error or a missing key never auto-allows — and after a flagged output, every action needs your approval until /jev-sentinel reset clears the flag.

Q What is sent to TypeSafe?

Recent conversation, the tool call, tool outputs, and replies — nothing from the agent's system prompt. File contents go only when Jev asks for them and only for files inside the project; secret-file values are withheld by name and scrubbed from everything sent.

Q Does it work outside pi?

Yes, as hooks for Claude Code and Codex CLI. The output check runs after the tool instead of before it, ask means the host's own approval prompt, and an allowed action returns nothing, so your existing permission rules still apply.

## References

## Related entries

## Guides

Last updated: Sep 20, 2026