fast-jev-compaction plugin

A Claude Code plugin that prunes stale tool calls instead of summarizing old history and keeps everything else verbatim

  • 7,967 ★ on the repository
  • Last commit
  • MIT
Plugin

Extended access

Why this level

  • Sends the whole conversation to the external Jev service on every compaction
  • Runs as a function hook and changes Claude Code session behavior
  • Requires an external API key
All reasons and checks

tamaratran/fast-jev-compaction

Install

Works in

In your terminal, with SkillFoxx CLI

npx skillfoxx add plugins/fast-jev-compaction

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Sends the whole conversation to the external Jev service on every compaction
  • Runs as a function hook and changes Claude Code session behavior
  • Requires an external API key

This is third-party code. Review the repository files before installing.

What it does

The plugin replaces Claude Code's built-in compaction. Usually an overflowing context makes the model summarize old turns, and exact paths, errors and commands can vanish. Here nothing is rewritten: the external Jev service receives the whole conversation and, for each tool call, answers whether the call and whether its full result should stay. Based on the answers a call is kept, truncated to the head of its result, or removed together with its result. User and assistant text is untouched and stays in order. The first and the newest few messages are pinned and excluded from the selection. If the reduction is too small or the request fails, the plugin falls back to the built-in summary. The same code ships as an npm library.

Who it is for. For developers who run long Claude Code sessions and do not want compaction to lose details.

Good fit when

  • A long session hits the context limit and summaries drop important details
  • You want to keep exact commands, paths and message texts verbatim
  • You want to tune compaction by a threshold and a count of pinned messages

Not a fit when

  • Session content may not be sent to an external service
  • You have no TypeSafe key or access to the Jev API
  • Sessions are short and the built-in compaction is enough

Example request

Compact the session context but keep commands and paths verbatim

Limitations

It needs a TypeSafe key in TYPESAFE_API_KEY and access to the Jev API at api.typesafe.ai; availability from Russia is unverified. The plugin sends the whole conversation to the external service on every compaction. Claude Code function hooks are an early-access feature enabled by the CLAUDE_CODE_ENABLE_FUNCTION_HOOKS flag, and the type reference is tied to Claude Code 2.1.274. Only tool calls and their results are removed; message texts are not shortened. Context size is estimated without a tokenizer, so it is approximate.

How to disable. Remove the plugin via /plugin or run claude plugin uninstall fast-jev-compaction@fast-jev-compaction; compaction then returns to the built-in summary.

FAQ

Does session data leave the machine?

Yes. For the selection the whole conversation is sent to the Jev service at api.typesafe.ai, with tool results replaced by a short note.

What happens if the service is down?

The plugin logs a fallback and delegates to Claude Code's built-in compaction, so the session does not break.

Discussion

No questions or reviews yet.

Plugins

A plugin that cuts token use in long sessions: prunes stale tool output, picks a subagent model and narrows the skill list.

PluginExtended access54Repository stars

The ctx-handoff plugin for Claude Code: hands a long session to a fresh one, keeps cache warm and learns your corrections.

PluginBroad access127Repository stars

A self-improvement plugin for Claude Code, Codex and OpenCode: turns corrections into rules the agent follows in later sessions

PluginExtended access794Repository stars

A plugin for long Claude Code runs: context, cache and progress at a glance, with handoff to a fresh context before it fills.

PluginExtended access58Repository stars

A Claude Code plugin that makes the model finish the job: result verification, evidence and systematic investigation enforced as procedure

PluginExtended access891Repository stars

A Claude Code plugin that gives the agent a name, a personality and memory across sessions, plus chat channels.

PluginBroad access64Repository stars

README in short

The README explains that the plugin installs verbatim compaction instead of summarization: it pairs each tool call with its result, shows Jev the whole conversation and, against a threshold, decides what to keep, truncate or drop. Configurable options include the threshold, the number of pinned messages, token budgets for state and request, how much of a dropped result's head is kept, and the context percentage that triggers compaction. The repository is both an npm package with exported building blocks and a Claude Code plugin built on function hooks. Unit tests use a fake Jev and never hit the network. MIT licensed.

README badge

Report a problem