Skip to content

ypollak2/llm-router

v4.0.1 Feature

This release adds 3 notable features for engineering teams evaluating rollout.

Published 1mo LLM Frameworks
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

ai-routing anthropic claude claude-code cost-optimization gemini
+7 more
litellm llm llm-router mcp-server model-router ollama openai

Affected surfaces

auth

Summary

AI summary

Fixed session usage delta always reporting 0.0pp by ensuring the start snapshot is written only once.

Full changelog

What's new

  • fix(session-end): session usage delta was always 0.0pp — _fetch_live_usage() was overwriting the session-start snapshot on every mid-session refresh call, making start == end by session close. Snapshot now written only once, after the delta is reported.
  • fix(session-start): session_spend.json now resets at each session start so top model reflects the current session only (hook v15)
  • feat(session-start): p50 latency hint in session banner (hook v14)
  • feat(hooks): plan-nudge.py — injects Plan Mode reminder for complex multi-file prompts
  • feat(hooks): test-nudge.py — reminds to run tests after editing source files
  • feat(hooks): version-guard.py — blocks on Edit/Write when version files diverge
  • feat: /insights skill for session gap analysis
  • feat: /release skill with full release checklist
  • feat: docs/decisions.md decision log
  • docs(CLAUDE.md): deadlock warning, Python-first, env setup, uv run pytest, version sync

Upgrade

pip install --upgrade claude-code-llm-router && llm-router install

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track ypollak2/llm-router

Get notified when new releases ship.

Sign up free

About ypollak2/llm-router

Subscription-aware LLM router for Claude Code. Routes tasks to 20+ providers (OpenAI, Gemini, Groq, Ollama, Codex) based on complexity classification, Claude subscription pressure, and cost. Free tasks stay on Claude subscription; expensive tasks fall back to the cheapest capable model. Includes 30 MCP tools, 6 auto-routing hooks, semantic dedup cache, prompt caching, daily spend cap, and a live web dashboard.

All releases →

Related context

Earlier breaking changes

  • v9.2.0 Changes auto‑route directive from advisory "DO NOT SKIP" to hard constraint with explicit blocked tools list.
  • v9.2.0 Breaks permanent downgrade of enforcement after first Edit/Write; v13 now requires per‑turn routing.

Beta — feedback welcome: [email protected]