NeuroRoute — Adaptive LLM Inference Router

    by Anurag Jha

    1

    Route every request to the cheapest sufficient model tier, retrieval, tools, vision or audio path — under a validated, budget-capped execution graph with confidence scoring and full cost/latency traces.

    Free

    Security scanned

    Works with the AI Agents you already use

    About this skill

    NeuroRoute treats inference as a routing problem. Instead of sending every request to one fixed pipeline (usually the biggest model), a lightweight decision model decides how each request should be answered — which model tier, whether to retrieve, which tools to use, whether an image or audio file must be perceived first, and how much budget it may spend. A validator authorises the resulting execution graph before anything runs, and a confidence engine checks the outcome and escalates when it isn't good enough. The objective is quality per unit cost, measured against fixed always-large and always-medium baselines on identical datasets, with decision and verification overhead included in NeuroRoute's own totals.

    The code is open source (the neuroroute repository by Anurag0018 on GitHub). This skill is the operating manual: it installs, configures, runs, and queries that platform. It does not reimplement it.

    • Install or run NeuroRoute locally (offline mock mode, or real local models via Ollama).

    • Send requests through NeuroRoute's REST API or its MCP server and read back the strategy, confidence, cost, and trace for each answer.

    • Preview a routing decision (/route/preview) without executing it.

    • Configure routing behaviour: decision model, DAG planner, embeddings, vector store, vision/audio models, API key, budgets and prices.

    • Reproduce the published benchmarks and test suite.

    • Routing strategies: direct_small, rag_medium, verified_large, decomposed_research (parallel sub-questions merged by a large synthesis node), tool_assisted, vision_grounded, audio_grounded, and llm_dag (an LLM proposes the execution graph; a validator authorises it — it can never execute unchecked or escalate itself).

    • Decision model: deterministic rules by default; an optional lightweight-LLM router (NR_DECISION_MODEL=llm) behind the same interface. Deterministic guardrails (high-risk or document inputs) outrank any model.

    • Tools (registered only): calculator (AST-evaluated, no eval), datetime, and web search (DuckDuckGo). Free-form code execution is deliberately not offered.

    • Retrieval: document ingestion (PDF/TXT/MD, ~1,200-character chunks), hashing embeddings by default, all-MiniLM-L6-v2 semantic embeddings when installed, in-memory vector store by default or Qdrant (NR_VECTOR_STORE=qdrant).

    • Confidence & verification: score = 0.35·evidence coverage + 0.25·validation + 0.20·retrieval relevance + 0.20·model agreement. Bands: return ≥ 0.85, verify 0.60–0.84, escalate < 0.60 (thresholds env-tunable). Verification is evidence- and rule-based, never a second LLM's opinion. Escalation is capped (budget-bound, at most one escalation per request by default policy).

    • Budgets: per-request caps on tokens, latency, modelled cost, model calls, and escalations, enforced at plan time and run time.

    • Observability: a full execution trace per request (spans, decision source, confidence, cost), a built-in dashboard, a Next.js web console, and Prometheus-format metrics.

    • Interfaces: REST (FastAPI) and MCP (stdio server, mcp_server.py) over the same validated pipeline.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Accounts
    Duckduckgo
    Software
    Python 3.10+Git
    Optional
    OllamaNode.js 18+

    No API keys required; mock mode runs fully offline. Python 3.9 also works via the project's eval_type_backport dependency.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    Allowed Hosts

    api.duckduckgo.com

    File Scopes

    The
    cloned
    neuroroute
    project
    folder

    Reads NR_* environment variables to configure the local NeuroRoute server. Everything except the optional web-search tool runs on localhost (API on :8000, Ollama on :11434).

    Listed9 days ago

    What's inside

    Frequently Asked Questions

    Route every request to the cheapest sufficient model tier, retrieval, tools, vision or audio path — under a validated, budget-capped execution graph with confidence scoring and full cost/latency traces.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use NeuroRoute — Adaptive LLM Inference Router on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Free