A Pi extension that keeps conversation text verbatim while pruning stale tool history with Jev keep-or-drop decisions, falling back to Pi's built-in summary compaction when pruning cannot free enough context.
Asks two noul questions per eligible tool call - keep the call and keep its result - then applies keep, drop_result, or drop_call.
Keeps the first message and recent messages pinned and filters only the context sent to the model; it never rewrites the JSONL session file.
Decisions are stored as append-only fast-jev-decisions entries, and the ledger rebuilds after startup, reload, resume, fork, or tree navigation.
Defaults include keepThreshold 0.5, preserveRecentMessages 6, compactAtPercent 60, truncateHeadChars 300, and a minReductionRatio of 0.25.
It fails open: a missing key, malformed response, timeout, abort, network error, or insufficient reduction leaves Pi's summary path available.
Quickstart
bash
pi install git:github.com/joelhooks/pi-fast-jev-compaction
pi -e git:github.com/joelhooks/pi-fast-jev-compaction # one run without installing
export TYPESAFE_API_KEY=YOUR_API_KEY
Watch out
MIT-licensed with the decision core ported from tamaratran/fast-jev-compaction; needs Node 24.18 and Pi 0.85.1 plus TYPESAFE_API_KEY, every ledger edit invalidates the provider's prompt cache from the first edited message, and decisions are model judgments, not proofs.
A Claude Code plugin and npm library that replaces transcript summarization with Jev keep-or-drop judgments, deleting stale tool calls and results while kept text stays verbatim.
An MCP server and agent skill that verifies coding-agent work by driving the real running app and returning pass, fail, or couldn't-tell verdicts with the file:line to fix; its listing frames the approach as Jev-style machine-native runtime perception.
A router that turns models, subagents, skills, MCP tools, CLIs, and plugins into one candidate set Jev answers with a single typed Choice, while the router code owns availability, permissions, and confirmation.
I've been using Jev by @typesafeai Here's the six things i've tried and am confident I'll still use Jev for 60 days from now.
There's many more experiments, ideas, and things I think I will use it for. It's a big deal (more on why in next post).
But I am only sharing thingsShow more
This made me rethink where AI actually fits into security engineering.
For purely engineering work, forget about ChatGPT or Claude.
TypeSafe AI just released Jev, and I think it’s going to change how we build AI into security workflows.
Instead of asking an LLM to “investigateShow more
TypeSafe AI
@typesafeai
we are officially out of stealth! join the frontier and get access to Jev on our website (link on profile)