router-detection
Skill8.2k starsChanged 58 days agoApache-2.0View on GitHub
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).
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about GetStream/Agents
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.404 → 0.6.405”GitHub · Nov 30, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.403 → 0.6.404”GitHub · Nov 30, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.402 → 0.6.403”GitHub · Nov 29, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.6.399 → 0.6.402”GitHub · Nov 27, 2026
- sudosubin/agents.nix“agent-skills.github.getstream.agents: 0.7.1 → 0.6.399”GitHub · Nov 27, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub (8 times).
On GitHub · 8
- Nov 30, 2026agent-skills.github.getstream.agents: 0.6.404 → 0.6.405 — sudosubin/agents.nix0 reactions
- Nov 30, 2026agent-skills.github.getstream.agents: 0.6.403 → 0.6.404 — sudosubin/agents.nix0 reactions
- Nov 29, 2026agent-skills.github.getstream.agents: 0.6.402 → 0.6.403 — sudosubin/agents.nix0 reactions
- Nov 27, 2026agent-skills.github.getstream.agents: 0.6.399 → 0.6.402 — sudosubin/agents.nix0 reactions
- Nov 27, 2026agent-skills.github.getstream.agents: 0.7.1 → 0.6.399 — sudosubin/agents.nix0 reactions
3 more on GitHub
- Nov 25, 2026fix: retain 7 reviewed references that left discovery (Nov 25) — tekvisions/voice-index0 reactions
- Nov 24, 2026agent-skills.github.getstream.agents: 0.7.0 → 0.7.1 — sudosubin/agents.nix0 reactions
- Nov 17, 2026agent-skills.github.getstream.agents: init at 0.7.0 — sudosubin/agents.nix0 reactions
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/python.mdcCursor rule
- pr-reviewSkill
- typesafe-aiSkill
- vgpuSkill
- accelerate-sales-engineerSkill
- add-connectorSkill
- check_pricesSkill
- cliSkill
- commitSkill
- connectorsSkill
- dashboardSkill
- decision_modelSkill
- deploySkill
- docsSkill
- generative-uiSkill
- good_morningSkill
- goSkill
- go-testingSkill
- integrate_new_modelsSkill
- llm-interfaceSkill
- loop_performance_benchSkill
- migrate-to-accelerateSkill
- new_modelsSkill
- paginationSkill
- parallel-agentsSkill
- performance_benchmarkSkill
- phonecheckSkill
- pricingSkill
- prospect-competitor-researchSkill
- provider_auditSkill
- prSkill
- querySkill
- refresh_model_statsSkill
- router-interfaceSkill
- router-llmSkill
- router-searchSkill
- router-stsSkill
- router-sttSkill
- router-ttsSkill
- scheduled-tasksSkill
- sdk-dartSkill
- sdk-dotnetSkill
- sdk-goSkill
- sdk-jsSkill
- sdk-kotlinSkill
- sdk-phpSkill
- sdk-rubySkill
- sdk-rustSkill
- sdkSkill
- sdk-swiftSkill
- securitySkill
- sttSkill
- telnyxSkill
- ttsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
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 …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
| Option | Moondream | Roboflow model | Roboflow Workflow | Ultralytics YOLO |
| endpoint | POST api.moondream.ai/v1/detect | POST serverless.roboflow.com/{project}/{version} | POST serverless.roboflow.com/workflows/run or /infer/workflows/{ws}/{id} | POST platform.ultralytics.com/api/models/{owner}/{project}/{model}/predict |
| auth | X-Moondream-Auth | api_key query | api_key body | Authorization: Bearer, optional for public models |
| image | image_url data URI | base64 body, form encoded | inputs.image {type: base64} | multipart file |
classes | object, free text, one call per class | filter after the fact | filter after the fact | filter after the fact |
confidence | none, no score returned | confidence | inside the Workflow | conf |
| box | normalized x_min..y_max | centre x, y, width, height in pixels | same as a model | x1..y2, normalized with normalize=true |
| embeddings | none | none | what the Workflow outputs as embeddings | none |
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/3andyolo26n), 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/facesis 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::
| Term | Meaning | Declared by |
open_vocabulary | classes may be any words, not only trained labels | Moondream |
confidence | min_confidence is honoured | Roboflow, Ultralytics |
embeddings | each box carries a vector | roboflow/faces, roboflow/workflow |
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:
{"overwrites": {"roboflow": {"workspace": "acme", "workflow_id": "doorbell"}}}roboflow/workflowneedsworkspaceandworkflow_id(a saved Workflow), orspecification(an inline one). It must outputpredictions, and may outputembeddings, one per box.- 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
- A package under
internal/detection/<vendor>implementingdetection.Provider, reading its key from the environment, normalizing boxes, and failing withdetection.Fail. - Register it in
detectionrouter.DefaultRegistry. - Declare its models in
router.yamlwithper_imageand the terms it really sends. - A unit test against an
httptestserver for the request it sends and the boxes it reads, and an integration test against the real API.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

