AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Nov 6, 2026, 06:00 JST

Claude Code prompts routed by Jev to pick model per turn

Send on LINE
Claude Code prompts routed by Jev to pick model per turn

3 Key Points

  1. What happened

    A developer's plugin sends each Claude Code prompt to TypeSafe AI's Jev, which returns a tier label; a 'README typo' request came back as 'low' at 0.92 confidence in 0.17 seconds, mapping to Haiku at effort high.

  2. Why it matters

    The plugin only rewrites model name and effort per request—it leaves conversation history and memory files untouched—so routing happens without resetting context, according to the developer.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The plugin is a personal project rather than a product release, and its routing logic is deliberately simple. Jev does not pick a model; it only returns one of six tier labels (micro, low, medium, high, critical, max). The plugin then looks up that label in a hardcoded table to decide the model and effort level. This separation means the classifier's job is narrow, and the developer can adjust routing by editing the table rather than retraining anything.

The one exception in the code—switching from Haiku to Sonnet when a conversation passes 150,000 tokens—suggests the developer is guarding against a small model being kept on a long context where it might struggle. The plugin also avoids touching conversation history or memory files, which likely keeps it from disturbing Claude Code's normal session behavior.

Beyond cost and convenience, the developer sees potential in security uses such as preventing prompt injection, though no implementation or timeline is described.

FAQ
What does Jev actually return?
Jev returns a single choice label plus probabilities for all labels; the plugin reads only answers.tier.choice and treats broken JSON as undefined.
What happens if Jev fails or returns an unknown label?
The plugin makes no changes and behaves as if it were not installed.
Is there any exception to the routing table?
Yes—if the chosen model is Haiku and the conversation exceeds 150,000 tokens, the plugin uses the medium route (Sonnet) instead.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleMeta's Muse AI agent adds real-time voice and animated avatars