Skip to content

Jev directory

Yoshi

An experimental local context-pruning proxy for Claude Code and Codex that asks Jev, through the Vercel AI Gateway, which history spans to omit, then forwards a rewritten request with omission markers.
Stars
31
Language
TypeScript
License
MIT
Reading time
3 min
Published by
Community
Author
compozy
Last verified
Sep 2026

About this project

A local context-pruning proxy for Claude Code and Codex. Jev judges new context once, above a configurable size gate. Yoshi applies the validated omissions while keeping the protocol intact, then forwards the request to Anthropic or OpenAI and streams the response back unchanged. Coding agents resend their whole conversation on every request. Most of that history is completed tool input, tool output and teammate reports that the model no longer needs. Yoshi sits between the client and the provider and:

Quoted from the project's README. Read the full README.

Highlights

  • Judges completed Bash, Write, and Edit arguments, tool results, and teammate reports once, above a default 50,000 estimated-token gate.
  • Each span is one Jev request, up to eight in flight, asking whether a required fact or a binding user constraint would be lost.
  • Both loss probabilities must be at most 0.2 to omit an input or report span; tool results keep the Atomic relevance/coverage/conflict rule.
  • Serves the Anthropic Messages API and the OpenAI Responses API on one loopback listener at 127.0.0.1:8790.
  • The README reports both v12 trials were slower than baseline and that a Jev outage can hold a request up to the 45-second deadline.

Quickstart

bash
bun install
cp .env.example .env   # new installations only; set the Gateway key and policy knobs

Watch out

MIT-licensed, but an experimental proof of concept whose successor is CompozyOS; needs Bun and a Vercel AI Gateway key, and candidate spans including source code go to TypeSafe with no zero-data-retention option.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: The compaction plugin, in Chinese

YouTube: Ray Amjad puts Jev inside an agentic coding loop and looks at what it costs to run.

YouTube: RoboNuggets puts Jev to work inside Claude Code.

X: Decision outputs in Grep

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai