Prefix directives and signal scoring
Checks explicit tags like /eng or /finance, scores strong and weak keywords plus channel priors, and resolves over 85% of daily tasks with zero tokens.
Most agent pipelines waste an expensive reasoning call just to decide what kind of task arrived and which tools to load. I built this three-layer classifier and tool router to tag every request into nine departments in 0 ms locally, fall back to a cached fast model only when ambiguous, and attach the right context pack and tools before the main agent even starts.
Pick a sample prompt or type your own instruction below. Watch Layer 1 deterministic rules, Layer 2 cached fallback, Layer 3 context packs, and dynamic tool discovery fire live.
Every incoming request from chat, voice, email, or a web app passes through the same lightweight router before touching an agent engine.
Checks explicit tags like /eng or /finance, scores strong and weak keywords plus channel priors, and resolves over 85% of daily tasks with zero tokens.
Only genuinely unclassified prompts hit a fast model in the background. Results above 0.7 confidence are cached locally so similar prompts resolve at 0 ms next time.
Injects the department's cognitive domain, worker defaults (like isolated worktrees), and exact matching CLI or MCP connectors in under 15 ms.
The problemLoading every playbook and tool schema into every agent prompt bloats context and burns tokens, while calling an LLM router on every message adds seconds of latency.
How it worksDeterministic local rules classify department and capability domain in microseconds, a cached fallback handles edge cases asynchronously, and only the exact playbooks and tools needed for that task are injected.
Try this firstClick Ambiguous note above to watch Layer 2 cached fallback trigger, then click Grocery price compare to see zero-LLM tool discovery pick exact connectors.
Each front door and engine in this system is available as an interactive showcase. Open any tool below to try it.
Deterministic Fast/Think auto-router with RAM-aware PC and cloud overflow and 429 failover.
Interactive overview of how Telegram, voice calls, email, and browser requests reach the same cloud engines.
Single stdio/HTTP gateway that exposes dozens of MCP connectors to every coding harness cleanly.
Daily one-page hub for tasks, department filters, approval controls, and multi-agent tracking.
Verified email intake that executes emailed instructions and returns structured summaries.
Mobile chat front door with allowlist auth, inline approvals, and threaded task follow-ups.
Adapted from the private classification and tool-discovery layer I run daily. Private accounts and personal playbooks were removed so anyone can drop it in front of their own agent pipeline with zero dependencies.
git clone https://github.com/mohd-km/agent-intent-router.git