vLLM Semantic Router is a programmable routing layer that chooses or combines language models for each request in a system using multiple models and types of computing infrastructure. It helps teams route inference by signals such as user preferences, application policies, quality, cost, latency, privacy, and safety requirements. The catalogue skills and instructions support configuring and operating this model-routing system.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add vllm-project/semantic-router --skill recipe-lab-loopgit clone --depth 1 https://github.com/vllm-project/semantic-routerWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/vllm-project/semantic-router/recipe-lab-loop)<a href="https://agentmods.dev/skills/vllm-project/semantic-router/recipe-lab-loop"><img src="https://agentmods.dev/badge/skills/vllm-project/semantic-router/recipe-lab-loop/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/vllm-project/semantic-router/recipe-lab-loop"><img src="https://agentmods.dev/badge/skills/vllm-project/semantic-router/recipe-lab-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.01149 |
| Opus 5.5 | $0.00018 | $0.00460 |
| Sonnet 5.5 | $0.00009 | $0.00230 |
| Haiku 4.5 | $0.00004 | $0.00115 |
Grade A, and why
recipe-lab-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Recipe-lab improvement loop
Drive the closed loop with tools/recipe-lab/recipe_lab/cli.py (installed as
recipe-lab): attribution -> proposal -> replay-tier search -> live verdict
-> ledger. sr-bench owns evaluation; this loop only orchestrates it. Read
references/command-reference.md for the command surface,
references/evidence-interpretation.md for reading outcomes, and
references/red-lines.md before proposing anything.
Ground rules
- Never touch a stack you did not start; run
vllm-sr statusfirst. - Credentials stay in environment variables, never in YAML, args, or logs.
- frozen-test is quarantined: proposals and agents see calib/dev only.
- A
RANKEDverdict is a ranking, not a conclusion. APASSis a recommendation, not a promotion - promotion is human + Standard holdout. - Change one variable per candidate; re-run the current step after it.
- INCONCLUSIVE and no-evidence are evidence problems: gather more evidence, never record a guess.
Steps
- Validate the experiment contract:
recipe-lab plan --spec spec.yaml. Success: normalized spec JSON. Failure: fix the spec per the contract error. - Read the evidence:
recipe-lab next --spec spec.yaml --ledger ledger.jsonl --output context.md(add--diagnosis diag/diagnosis.jsonwhen a diagnosis artifact exists). Read the untrusted-material header, then the contract summary, best replay candidate, last live verdict, attribution summary and the citable insight-ref list it exports (G3). - Propose one candidate: edit one recipe variable in a config revision and
cite the motivating evidence with
--insight-refsin steps 5 and 6, using the exact refs fromnext's citable list (rec-<id>,bench:<run_id>,attr:<path>@sha256:<hex>,diag:<path>@sha256:<hex>#<anchor>). When you authored the candidate config yourself (not a proposer output), evaluate it with--proposer agent:<id>in step 5; the id is lowercase[a-z0-9._-](e.g.agent:claude-loop) and is recorded verbatim in the ledger provenance. - Validate the candidate:
vllm-sr config validateon the revision. Failure: fix the config; never evaluate an invalid candidate. - Evaluate in the replay tier:
recipe-lab run --spec spec.yaml --split dev --cases <split.jsonl> --bank bank.jsonl --candidates <config> --proposer agent:<id> --insight-refs <refs> --ledger ledger.jsonl --output-dir out/ --router-bin ... --mock-backend ...against the answer bank. Records land in the ledger. - For the final gate: run sr-bench preview/live for baseline and candidate,
then
recipe-lab live-verdict --spec spec.yaml --baseline-run-id ... --candidate-run-id ... --guard-measurements measurements.jsonl --candidate cand-001.json --ledger ledger.jsonl(add--split frozen_test --finalonly for the promotion verdict). - Read the outcome with
recipe-lab report --ledger ledger.jsonl --output report.md; stop when the objective is met, the budget is exhausted, or evidence is repeatedly incomplete.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 82 lines · 44 tokens per session scan A 2a7fdbb7ced7
recipe-lab-loop is a skill published in the GitHub repository vllm-project/semantic-router (6,619 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 1,149 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-04.
recipe-lab-loop compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| recipe-lab-loopvllm-project/semantic-router | Skill | 6.6k | today | Apache-2.0 | A | 44 | Claude Code, Codex |
| cli-evaldiegosouzapw/OmniRoute | Skill | 91k | 5d ago | MIT | A | 34 | Claude Code, Codex |
| omni-mcpdiegosouzapw/OmniRoute | Skill | 91k | 5d ago | MIT | A | 48 | Claude Code, Codex |
| cli-resiliencediegosouzapw/OmniRoute | Skill | 91k | 5d ago | MIT | A | 35 | Claude Code, Codex |
| merge-batchdiegosouzapw/OmniRoute | Skill | 91k | 5d ago | MIT | A | 46 | Claude Code |
| green-prsdiegosouzapw/OmniRoute | Skill | 91k | 5d ago | MIT | A | 51 | Claude Code, Codex |
| 9router-web-searchdecolua/9router | Skill | 33k | 11d ago | MIT | A | 74 | Claude Code, Codex |