Original Reddit post

I was about to install fast-jev-compaction , the ~7k-star plugin that replaces Claude Code’s /compact summary with Jev decisions. I replayed 122 compaction points from 59 of my own Claude Code sessions (real projects, not auto-plan-and-build sessions) to see what it would actually keep. It kept almost nothing. It deleted about 98% of old tool calls along with their output, and only ~1% of the output my sessions later needed survived. People in the repo’s issues report similar things: one session started reporting work it never did after compaction, –resume brought the whole old history back, etc. Also, TypeSafe’s firewall blocks a lot of real transcripts, while OpenRouter does not. The idea is still good, so I built new version for hands-on dev work (not for long autonomous runs that might’ve benefited from replacing /compact ). I need to decide myself when and how things get compacted. github.com/NodarDavituri/fast-compact : adds /fc , normal /compact stays untouched. cuts old tool output to its start and end, and Jev picks what stays whole. saves every cut to a file and leaves pointers in context , so Claude reads it back when it needs something. still takes about a second and costs a fraction of a cent per run, via OpenRouter or TypeSafe. On the same replay it kept 75% of the outputs that turned out to be needed, vs 69% for a plain cut of the same size. The bench and all the numbers are in the repo. Unlike native /compact , which takes a while and runs Claude model and paraphrases everything, /fc takes about a second, keeps the conversation word for word and only trims old tool output (cuts are saved to disk, one read away). Jev’s part was modest in my tests - choosing what stays whole, meant Claude needed to dig up a cut file about once every 8 compactions less often, so the main win is fast relief where nothing gets lost , not a magical compaction without losing important stuff. (all this runs on Claude Code’s early-access function hooks, so you need CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 ). Credit to tamaratran for the original idea. The issues on that repo helped a lot too. submitted by /u/Davituri

Originally posted by u/Davituri on r/ClaudeCode