SuperAPI AI Directory

Routed

Local router for Agent Skills across coding agents and MCP clients, with hybrid matching on the local CPU that spends no tokens.

Open website

About this tool

Routed is a universal local Agent Skills router for AI coding environments. Its core purpose is to automatically match coding prompts to the most relevant Skill, for use by coding agents locally, without the need for additional routing calls through a cloud LLM.

Main capabilities

  • Zero token cost: It is officially claimed to eliminate expensive LLM routing calls, saving 1,000+ prompt tokens per interaction.
  • Low latency: It performs hybrid search locally on the CPU, with the official claim of responses under 20 milliseconds and no network round trips.
  • Hybrid retrieval: It combines Okapi BM25, exact matching, and local dense semantic embeddings for scoring.
  • Empirical hyperparameter tuning: It has built-in parameter grid search and stratified 5-fold cross-validation (the command routed tune), and is officially claimed to achieve a 2.6% generalization gap.
  • Adversarial precision floor: Based on semantic gating and a calibrated 0.35 confidence floor, it is officially claimed to achieve zero false activations for gibberish or non-coding prompts.
  • Negated intent and framework penalties: It isolates positive intent, suppresses negated skills, and penalizes framework specialization that was not prompted.
  • MCP server: Run through routed mcp, it can be integrated as a standard MCP server into LM Studio, Cursor, Claude Desktop, Windsurf, Continue, Cline, and others, avoiding dumping a large number of tool schemas into the model context and consuming VRAM.
  • Multilingual understanding: It is officially claimed to natively understand German, Spanish, French, Japanese, and 100+ languages, and automatically handle compound words.
  • Automatic updates and self-healing: routed update automatically checks the version and upgrades in place; routed doctor --fix uniformly diagnoses and repairs adapters.
  • Privacy first: Prompt routing is 100% local, and user queries do not leave the local machine.
  • Multi-skill distribution: It decomposes compound prompts and activates multiple skills simultaneously.

Usage

  • Instant testing: It can be tested via npx with zero installation, or you can run the interactive installation wizard directly; it can also be installed globally with npm.
  • Standalone installers: The official packages RoutedSetup.exe (Windows), RoutedSetup.pkg (macOS), and RoutedSetup.deb (Linux) are provided and can be downloaded from GitHub Releases.
  • Source builds are available.
  • Setup: Run the setup wizard, detect installed AI coding tools and configure /route adapters.
  • Index: scan local directories and build a hybrid index.
  • Routing: invoke routing in AI agent chats (Antigravity, OpenCode, Claude Code, Cursor, Codex) or in the terminal; use routed doctor to verify system health, the SQLite index, and the embedding model.

Tuning and Evaluation

  • routed tune first caches lexical, exact, and dense vector signals, evaluating 1,000+ candidate parameter configurations in milliseconds; stratifies representative benchmark cases into 5 folds across 9 categories (exact match, synonyms, technical terms, abbreviations, indirect intent, multilingual, multi-skill, domain-specific, no-skill); sweeps over the weight simplex (summing to 1.0, step size 0.05) and optimizes composite Top-1 accuracy, Top-3 recall, and no-skill precision; validates out-of-sample performance on held-out validation queries and computes the generalization gap; the tuned weights are persisted directly to the local SQLite index.db, and subsequent routed route automatically uses them; use routed tune --reset to reset to baseline.
  • Dual evaluation framework: use 190 evaluation cases (including 50 subtle boundary programming queries and 50 adversarial traps) to measure False Accept Rate (officially stated as 0.0% for v1.6.5) and False Decline Rate (officially stated as 1.5% for v1.6.5).
  • Dynamic confidence lower bounds: anchored queries (with lexical/BM25 overlap or exact label/keyword match) use an anchoring lower bound of 0.28 to preserve recall; unanchored queries use a strict lower bound of 0.40 to suppress noise.
  • The benchmark dataset definition is located at packages/core/src/benchmark/dataset.ts; use routed benchmark --dataset <path> to evaluate a custom dataset.

MCP and Local Models

  • Can be attached as an MCP server; the host model only calls the route_skill tool; Routed evaluates on local CPU in under 20 milliseconds and returns only the matching skill list.
  • Provides direct Ollama integration: generates the Ollama tool schema for /api/chat function calling; can route prompts and generate runnable Ollama API payloads.
  • Provides Hermes Agent integration: generates tool schemas for Hermes agents (OpenAI JSON or Nous Hermes XML), and outputs injectable instructions.

Security and Operating Model

  • Integrates with HOL Guard (command.routed): intercepts and flags state-modifying operations (routed doctor --fix, routed adapters install, routed adapters uninstall, routed update) for human review before execution, while allowing regular routing, diagnostics, and update checks to execute without interruption.
  • Idempotent desired-state convergence model with zero blast radius: each host adapter runs in isolation, and failure of one adapter does not affect other adapters; missing adapters can be detected and repaired with a single command.
  • Runs quantized ONNX dense embedding models locally (Snowflake Arctic Embed S / all-MiniLM-L6-v2) along with Okapi BM25; vector similarity and text indexes are cached in local SQLite, with no networking or cloud tokens required.

Storage Locations

  • macOS: ~/Library/Application Support/Routed
  • Linux: ~/.local/share/routed
  • Windows: %LOCALAPPDATA%\Routed

License MIT License, Copyright (c) 2026 bshea-1, see LICENSE for details.