Skip to content

ypollak2/llm-router

v7.5.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

Summary

AI summary

Added analysis and cleanup scripts plus improved routing hints to reduce violations by up to 50%.

Full changelog

Diagnostics & Violation Reduction

Patch release: Comprehensive tooling to analyze and reduce routing violations (where Claude uses Bash/Edit/Write instead of routing via llm_* tools). Expected to reduce violations by 30-50% through improved hint visibility and session-level escalation.

Added

  • cleanup-hook-health.py — Remove test artifacts from hook_health.json

    • --dry-run preview, --remove force-remove support
    • Cleans up stale test entries that inflate error counts
  • analyze-violations.py — Per-session routing violation analysis

    • Parses enforcement.log with per-session grouping
    • Top 10 sessions table with violation counts
    • Per-session tool sequences showing what was used vs expected
    • Markdown report output to ~/.llm-router/retrospectives/
  • README § Monitoring & Reducing Violations — 1,200+ word guide

    • What violations are and their cost impact
    • Common patterns and fixes
    • Enforcement modes (smart/hard/soft/off)
    • Hook health cleanup instructions

Changed

  • auto-route.py — Improved MANDATORY ROUTE hint format

    • Box-drawing visual format (harder to miss in long context)
    • Cost savings estimate per task
    • Explicit forbidden actions list
  • enforce-route.py — Per-session violation escalation

    • After 3+ violations, prints warning to stderr
    • Visible as hook message in Claude Code
    • Reminds model to route first

Metrics

  • 3,931 violations identified in enforcement.log (prior sessions)
    • llm_generate bypassed: 1,274 (32%)
    • llm_query bypassed: 848 (22%)
    • llm_analyze bypassed: 750 (19%)
    • llm_code bypassed: 615 (16%)
    • llm_research bypassed: 452 (11%)

Impact

  • Box-drawing hint format expected to reduce violations by 30-50%
  • Session-level nudges (3+ violations) break investigation loops
  • Analysis tooling provides visibility into where violations concentrate

Resources

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]