Purpose and audience
This npm library and Claude Code plugin compact history by pruning tool calls and results instead of rewriting conversation text.
How Jev fits
Jev answers separate noul questions about retaining each call and result; thresholds determine whether to keep, shorten or remove the pair.
Using the project
Use compactMessages from the package or the Claude Code function-hook plugin with TYPESAFE_API_KEY.
Scope and limits
Token counts are estimates and scores do not prove safe deletion. Library errors propagate; the plugin falls back to built-in summaries on failure or insufficient reduction.
Evidence checked: