---
title: "Tamara Tran's fast-jev-compaction Stops Claude Code From Forgetting Critical Tool Output"
subtitle: "A new open-source Claude Code plugin uses TypeSafe's Jev decision model to prune agent context per tool call instead of summarizing it away."
url: "https://alphasignal.ai/news/tamara-tran-s-fast-jev-compaction-stops-claude-code-from-forgetting-critical"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-09-18T04:45:31.000Z"
updated: "2026-09-18T07:18:20.784Z"
type: "Repo"
topics:
  - "Development"
  - "Infra"
subtopics:
  - "Code Agents"
  - "Model Serving"
upvotes: 80
source_url: "https://github.com/tamaratran/fast-jev-compaction"
comments: 0
truncated: true
---

# Tamara Tran's fast-jev-compaction Stops Claude Code From Forgetting Critical Tool Output

> A new open-source Claude Code plugin uses TypeSafe's Jev decision model to prune agent context per tool call instead of summarizing it away.

# fast-jev-compaction prunes Claude Code history without paraphrasing it

Claude Code compacts a long transcript when it approaches the context limit, replacing earlier turns with a generated summary. That summary can omit an error string, file path, shell command, or constraint needed later. Developer Tamara Tran has published [fast-jev-compaction](https://github.com/tamaratran/fast-jev-compaction), an MIT-licensed plugin that uses TypeSafe’s Jev model to score historical tool calls for retention. User and assistant messages remain verbatim, while tool calls and results can be kept, truncated, or removed.

Tran distributes the project as both an npm package and a Claude Code function hook. When `/compact` or auto-compaction runs, the hook asks Jev which tool interactions still matter, applies those decisions in code, and invokes Claude Code’s built-in summarizer if Jev fails or removes too little.

## Why classification fits compaction

TypeSafe describes Jev as a model for software-directed decisions. It returns typed choices, scores, and probability distributions that programs can consume directly. The company calls it a System One model trained with Reinforcement Learning for Calibrated Decisions, or RLCD. A request supplies shared state alongside several structured questions.

fast-jev-compaction maps that interface onto context management. Jev answers narrow retention questions for each eligible tool interaction, and deterministic TypeScript applies the results. Retained text stays exact because the model never generates replacement prose.

## A pruning pipeline with guardrails

The library preserves all user and assistant text in its original order. Its pruning scope covers paired

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [tamaratran/fast-jev-compaction](https://github.com/tamaratran/fast-jev-compaction)
- [TypeSafe AI - Introduction](https://docs.typesafe.ai/introduction)
- [TypeSafe AI debuts model for machines that plays Doom](https://www.theregister.com/ai-and-ml/2026/09/16/typesafe-ai-debuts-model-for-machines-that-plays-doom/5296711)
- [Jev: The Language Model That Won't Talk](https://anthonymaio.substack.com/p/jev-the-language-model-that-wont)
- [opencode-jev-compactor](https://github.com/christian-taillon/opencode-jev-compactor)
