fast-jev-compaction
View on GitHubClaude Code plugin that replaces the compaction summary with Jev decisions: every tool call and result is scored in one fast request, stale ones are dropped or truncated, everything kept stays verbatim.
Claude Code plugin and npm library that swaps the built-in compaction summary for Jev-scored pruning: every tool call and result is judged in one fast request, stale ones dropped or truncated, kept messages stay verbatim. Falls back to the built-in summary when reduction is too small or Jev fails.
Use Cases
Replace Claude Code's built-in /compact summary with lossless pruningShrink long coding-agent transcripts by dropping stale tool calls and resultsPrevent context overflow in multi-hour Claude Code sessionsScore each tool call/result for keep-or-drop via one fast Jev requestUse as an npm library to prune message history in custom LLM agentsTruncate large tool results instead of deleting them entirelyBuild a custom transport via the JevAsker interface
Built With
- Language
- TypeScript
- Frameworks
- Claude Code plugin API · Node.js · TypeScript · Vitest
Tags
context-compaction · claude-code · claude-code-plugin · context-window · token-reduction · memory-management · llm-context · session-history · verbatim-context · typescript · npm-library · hooks