Router Detection logo

Router Detection

OrganizationPopular
GetStream
router-detection

What the detection router can be asked for, what each vendor calls it, and what it refuses to fake. Read before adding a detection option or a detection provider (Moondream, Roboflow, Ultralytics YOLO).

Overview

PublisherGetStream
RepositoryAgents
Skill namerouter-detection
Stars
8.2K
Forks
709
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by GetStream on GitHub. Read the source before you install it.

Installation

Install the Router Detection AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/GetStream/Agents/tree/main/.claude/skills/router-detection
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GetStream/Agents.git /tmp/Agents
mkdir -p .claude/skills
cp -r /tmp/Agents/.claude/skills/router-detection .claude/skills/router-detection
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Router Detection in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Router Detection on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Router Detection is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Routing detection

The per-modality half of router-interface. The contract is internal/detection, the router is internal/detectionrouter, the providers sit under internal/detection/<vendor>, and they are declared in the detection: section of router.yaml.

Detection is one image in and boxes out, so like search and image generation it is a plain POST /v1/detection with no socket. The router never sees the call's video: a worker (the Python stream.DetectionProcessor) samples frames and sends them one at a time. One request is one stat row with images: 1, priced per_image.

Every box comes back normalized to 0..1 as x_min, y_min, x_max, y_max, whatever the vendor sent, so a caller never needs the image size to draw it.

The vendors, and what each calls the same thing

OptionMoondreamRoboflow modelRoboflow faces WorkflowUltralytics YOLO
endpointPOST api.moondream.ai/v1/detectPOST serverless.roboflow.com/{project}/{version}POST serverless.roboflow.com/workflows/run, the built-in specification in the bodyPOST platform.ultralytics.com/api/models/{owner}/{project}/{model}/predict
authX-Moondream-Authapi_key queryapi_key bodyAuthorization: Bearer, optional for public models
imageimage_url data URIbase64 body, form encodedinputs.image {type: base64}multipart file
classesobject, free text, one call per classfilter after the factfilter after the factfilter after the fact
confidencenone, no score returnedconfidenceinside the Workflowconf
boxnormalized x_min..y_maxcentre x, y, width, height in pixelssame as a modelx1..y2, normalized with normalize=true
embeddingsnonenonewhat the Workflow outputs as embeddingsnone

What the table is saying:

  • Only Moondream is open vocabulary. It finds whatever noun it is asked for, so "package" or "a red mug" works. A Roboflow or YOLO model has the classes it was trained on (COCO's 80 for coco/3 and yolo26n), and asking one for a class it does not have finds nothing.
  • Moondream returns no confidence. Its boxes carry confidence: 1, and a request asking for a confidence floor is not routed to it.
  • Embeddings come from a Workflow. roboflow/faces is a built-in Workflow (face detection, dynamic crop, CLIP) whose boxes each carry a 512-dimension vector. CLIP describes how a crop looks, not who it is: it re-identifies the same person in the same light and clothes, and is not face identification.

What the router refuses to fake

The terms a detection model declares in supports::

TermMeaningDeclared by
open_vocabularyclasses may be any words, not only trained labelsMoondream
confidencemin_confidence is honouredRoboflow, Ultralytics
embeddingseach box carries a vectorroboflow/faces

A request that asks for one is only routed to a model that declared it, and a term nothing can serve is a 400 naming it. A fixed-class model asked for "package" would return an empty list that looks like "there is no package", which is the exact failure terms exist to prevent.

Overwrites

options.overwrites carries what the vocabulary has no word for, keyed by provider. No detection provider takes one today: the provider an overwrite names refuses it, and the next candidate is asked without it.

  • There is no Workflow of the caller's own. Roboflow runs a Workflow on the account of the key it is sent with, which is the deployment's, and a Workflow can run any block Roboflow has: vision language models billed by the second, uploads into the account's datasets, webhooks. roboflow/workflow, which took a specification or a workspace and workflow_id, is retired for roboflow/faces. One comes back only on the customer's own Roboflow key, which detection does not take yet.
  • There is no overwrite for an address. Ultralytics' shared API is limited to 20 requests a minute, and a deployment that needs more names a dedicated endpoint in ULTRALYTICS_ENDPOINT. That is the operator's to set, because whatever address it names is sent the key and the frame.

Adding a provider

  1. A package under internal/detection/<vendor> implementing detection.Provider, reading its key from the environment, normalizing boxes, and failing with detection.Fail.
  2. Register it in detectionrouter.DefaultRegistry.
  3. Declare its models in router.yaml with per_image and the terms it really sends.
  4. A unit test against an httptest server for the request it sends and the boxes it reads, and an integration test against the real API.

Frequently asked questions

What does the Router Detection AI skill do?

What the detection router can be asked for, what each vendor calls it, and what it refuses to fake. Read before adding a detection option or a detection provider (Moondream, Roboflow, Ultralytics YOLO).

Why use Router Detection on TypingMind?

Because you install it once and use it with any model. Router Detection is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Router Detection in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GetStream/Agents/tree/main/.claude/skills/router-detection. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Router Detection?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Router Detection?

As many as you like. As long as a model supports skills, you can use Router Detection with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Router Detection AI skill free?

Yes. It is published on GitHub by GetStream under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇