semantic-router AGENTS.md

A set of instructions for coding agents working on vLLM Semantic Router, a service that directs requests to suitable large-language-model backends. It explains which project documents to read, how the repository is organized, and how tasks are routed.

In plain words
What is it for?
Use it when developing, reviewing, or routing work in the vLLM Semantic Router repository.
Why use it?
It gives an agent the project context and working rules needed to make changes in the right places.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/vllm-project/semantic-router/agents-md
Clone the repo
git clone --depth 1 https://github.com/vllm-project/semantic-router

Made for: Codex, OpenCode.

Per session 1,993 This file is loaded in full into every session.
When invoked 1,993 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.01993 $0.01993
Opus 5 $0.00996 $0.00996
Sonnet 5 $0.00399 $0.00399
Haiku 4.5 $0.00199 $0.00199

Measured yesterday against content hash 54240a3e2840, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

semantic-router AGENTS.md 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 yesterday.

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.

AGENTS.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

vLLM Semantic Router Agent Entry

This file is the short entrypoint for coding agents. The detailed human-readable system of record lives in tools/agent/docs/README.md. The executable rule layer lives in tools/agent/repo-manifest.yaml, tools/agent/test-domain-registry.yaml, tools/agent/task-matrix.yaml, tools/agent/skill-registry.yaml, tools/agent/structure-rules.yaml, tools/agent/maintainer-policy.yaml, and tools/make/agent.mk.

vLLM Semantic Router is an Envoy ExtProc request router for LLM inference. It resolves a request-facing entrypoint to an isolated recipe, evaluates that recipe's signals and projections, applies its decision and algorithm, then invokes the selected backend and recipe-scoped plugins.

Read First

  1. tools/agent/docs/README.md
  2. tools/agent/docs/repo-map.md
  3. tools/agent/docs/environments.md
  4. tools/agent/docs/change-surfaces.md
  5. make agent-report ENV=cpu|amd CHANGED_FILES="..."

Task Routing

  • Root startup begins with this AGENTS.md entrypoint.
  • Full task routing, primary-skill resolution, local-rule surfacing, loop-mode guidance, and validation planning come from make agent-report ENV=cpu|amd CHANGED_FILES="...".
  • Follow the primary skill selected from tools/agent/skills/ instead of treating the root entrypoint as a task-specific skill.
  • tools/agent/** remains the canonical harness source.

If you need real AMD model deployment details instead of the minimal smoke path, also read website/docs/installation/amd-rocm.md and config/recipes/balance/config.yaml.

Read the full file on GitHub · 87 lines

Changes

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.

  1. yesterday First seen · 87 lines · 1,993 tokens per session scan A 54240a3e2840

Subscribe to this mod's changes

semantic-router AGENTS.md is an instructions file published in the GitHub repository vllm-project/semantic-router (5,423 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,993 tokens to every session, about $0.0100 per session on Opus 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-08-30.