Claude Code model router
Yoshi
Context-pruning proxy for Claude Code and Codex: Jev judges which history is still needed, measured not claimed. POC here now, heading soon into https://github.com/compozy/compozy
Install
git clone https://github.com/compozy/yoshi.gitFrom the README
Yoshi 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. Yoshi is a proof of concept. The real version is heading into CompozyOS. CompozyOS is an open-source operating system for AI agents: it runs Claude Code, Codex and other ACP agents as durable background sessions. There, context pruning becomes automatic for every session, the session goal and plan feed the judge, and judging runs between turns instead of on the request path, which removes the latency you will see below. If that is what you came for, star CompozyOS and follow along. What it does 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: - Judges new spans once: completed Bash, Write and Edit arguments, tool results and teammate reports. The default starts above 50,000 estimated input tokens. Previously forwarded content, human instructions, assistant notes, errors and opaque blocks stay protected. Cached omissions are replayed without rejudging. - Asks Jev, one span per request, with up to eight requests in flight. Each request carries the current task, earlier user constraints, action chronology, paired completion results for input spans and a byte-bounded set of retained evidence, and asks two questions: would a required fact be lost, and would a binding user constraint be lost. - Applies only validated omissions. A removed span becomes an explicit omission marker; tool IDs, names, file…
Details
- Repository
- compozy/yoshi
- Language
- TypeScript
- License
- MIT
- Last updated
- 18 September 2026
- Topics
- bunclaude-codecodexcontext-windowjevllm-proxytypesafe
FAQ
What is Yoshi?
Context-pruning proxy for Claude Code and Codex: Jev judges which history is still needed, measured not claimed. POC here now, heading soon into https://github.com/compozy/compozy It is a model router for Claude Code, from compozy/yoshi on GitHub.
How do I install Yoshi?
Clone compozy/yoshi from GitHub and follow the setup steps in its README.
Is Yoshi popular?
compozy/yoshi has 31 GitHub stars and 3 forks. It was last updated on 18 September 2026.
More model routers & proxies
Claudegpt
33pilc80/claudegpt
Use ChatGPT/Codex OAuth in Claude Code without an API key
Claude Gateway
260xMaxMa/claude-gateway
Turn Claude Code into a voice-enabled, multi-channel assistant that runs tasks in parallel
CLASP
28jedarden/CLASP
Run Claude Code with any LLM provider — drop-in proxy for OpenAI, Gemini, and more. Go.
Tokdiet
32agiwhitelist/tokdiet
Local streaming reverse proxy between AI coding agents (Claude Code, Cursor, Codex) and model APIs (Anthropic, OpenAI, Gemini, MiniMax). Meters every token + USD cost, compacts bloated context to cut pay-per-token API spend, and runs shadow-eval to prove quality held. ccusage-style metering + live local dashboard.
Openproxy
29quangdang46/openproxy
Smart AI proxy router that connects Claude Code, Cursor, Codex, Copilot, and 50+ coding tools to 40+ AI providers with 100+ models. Saves 20-40% tokens via RTK compression, auto-fallback from subscription to cheap to free providers, multi-account round-robin, and a local dashboard.
Claude N Codex API Proxy
28jimmc414/claude_n_codex_api_proxy
Claude Code and Codex API Routing Proxy
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.