WHAT NEW IN X10.30 FRI

AI collections from X · 22 collections · 61,986 posts

jevIMAGE

compact-adviser: a Jev classifier that decides when to compact a session

The author built a Claude and Pi plugin that uses a Jev classifier to judge whether the agent is at a task boundary safe to compact, with hint and auto modes, evaluated on 40 real sessions.

Kun Chen
@kunchenguidArchived 2026.09.19Originally posted 2026.09.19
compact-adviser: a Jev classifier that decides when to compact a session
Kun Chen @kunchenguidOriginally posted 2026.09.19
Open original on X

almost every day i hear people ask "when should i /compact my session" there's no easy answer because it depends on how likely your future action will need detailed context in the existing window but we have Jev now! introducing compact-adviser - an agent plugin you can use in claude and pi today to help determine whether you're likely at a task boundary that's safe to compact https://github.com/kunchenguid/compact-adviser i built a private eval set from 40 real sessions and manually labeled all the safe vs unsafe checkpoints to evaluate this, and hillclimbed the Jev prompt till it performed quite well i also made it so that the classifier will - optimize for precision (not triggering a compaction prematurely) when context window is small - and gradually shift to optimize for recall (not missing an opportunity to compact) when context window fills up, because the cost of not compacting becomes higher, and at the end the agent will be forced to compact anyway it supports a "hint" mode (just give you a hint and it's up to you to run /compact) vs "auto" mode which runs compaction whenever Jev says it's safe to do so if you have Jev and want to put your compaction on autopilot, try this out and let me know how it goes! support for more harness is coming soon as well

x.com/kunchenguid/status/2101032677940117875Archived 2026.09.19 10:11