A 0.57 MB router model cuts LLM costs by 68%
Negaaaa7 · reddit · 2026-07-20
The author claims they cut LLM costs by 68% with Prompt Compass, a tiny 0.57 MB model that handles four classifications in a single CPU call of about 5 ms.
What it does
It combines four tasks that are often split across multiple models and network hops:
- prompt routing
- PII scanning
- jailbreak detection
- local/cloud lane selection
Reported results
- 2,022 held-out real prompts
- 82% overall accuracy on the hard 4-way task
- 87.5% jailbreak recall on lmsys/toxic-chat
- under 5% false blocks on genuine prompts
- 100% recall on 15 obfuscated PII attacks in their benchmark comparison
Where it fails
- about 1 in 5 prompts are misrouted, mostly from local to cloud, which hurts cost rather than safety
- persona prompts like “act as...” often hit the jailbreak lane and are flagged for review
- it does not catch slow-burn multi-turn attacks because it only sees one prompt at a time
Integration
The tool ships as:
- an on-device npm SDK
- a hosted API
- a VS Code / Cursor extension
The extension is a thin client to the hosted API, while the SDK runs locally. It cannot intercept built-in Copilot/Cursor chat. The extension is also available on Open VSX and has a free tier.
Related event: Tiny 0.57MB Router Slashes LLM Costs(2 posts)→
More from coding & agent
- Harnesses widen what LMs can do, but may not improve compositional generalization — a1zhang · 2026-07-23
- A workflow for sharing agentic coding artifacts with teammates and pushing them to Git — rseroter · 2026-07-23
- An open-source /no-ai-slop skill removes 20+ common AI writing patterns — petergyang · 2026-07-23
- Open-source /no-ai-slop skill targets more than 20 common AI writing patterns — robleclerc · 2026-07-23
- LLMs are erasing framework-first identity labels among programmers — generativist · 2026-07-23
- Rork says Max App can build and preview iOS apps directly on iPhone — rudrank · 2026-07-23