Skip to content

ypollak2/llm-router

v6.2.0 Feature

This release adds 4 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

Summary

AI summary

Four automated loops add self‑tuning routing and a community profile fallback, plus a critical bug fix for model recording.

Full changelog

What's new: Closed Loops Integration

🔄 Loop 1: Directives Feedback

  • Load and apply ROUTING_RULE directives from persistent memory
  • Session-start displays active directives
  • Auto-route applies directives as classifier overrides

📊 Loop 2: Weekly Retrospective

  • Aggregate patterns from 7 days of retrospectives
  • Auto-generate ROUTING_RULE directives based on recurring patterns
  • Callable via llm-router retrospect --weekly

📈 Loop 3: Trend Pressure → Routing

  • Monitor accuracy trends from hourly snapshots
  • Quality decline triggers soft model escalation (independent of budget)
  • Blends with budget pressure for intelligent model selection

🌍 Loop 4: Community Profile Default

  • Fallback community URL for one-click profile imports
  • Enables discovery of community-maintained routing patterns

🐛 Critical Bug Fix

  • Fixed: llm_reroute now properly records corrected_model to database
  • Learned profiles now capture actual models (no more model="unknown")

Architecture

All 4 loops close one-way data flows from v6.1:

  • Corrections → learned profiles → directives ✓
  • Retrospectives → actions → directives ✓
  • Snapshots → trends → model selection ✓
  • Profile imports → community sharing ✓

Upgrade

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

Testing

  • 13 new closed-loops tests
  • 21 model selector tests (pressure blending verified)
  • All 34 tests passing
  • No regressions in full suite

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]