semantic-router: Instructions file for Codex

AGENTS.md

semantic-router AGENTS.md is an instructions file for Codex, OpenCode from vllm-project/semantic-router. It costs 968 tokens per session, scanned A, original, Apache-2.0.

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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is vllm-project/semantic-router's own configuration. It tells Codex and OpenCode how to work on semantic-router itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything semantic-router configures →

About the project

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.

vllm-project/semantic-router · 6,402 stars · on GitHub · vllm-sr.ai

Reuse

Borrowing it

Nothing to install: this file belongs to vllm-project/semantic-router. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vllm-project/semantic-router/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/vllm-project/semantic-router

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for semantic-router AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/vllm-project/semantic-router/agents-md/github.svg)](https://agentmods.dev/instructions/vllm-project/semantic-router/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/vllm-project/semantic-router/agents-md"><img src="https://agentmods.dev/badge/instructions/vllm-project/semantic-router/agents-md/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.

agentmods 80×15 button for semantic-router AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vllm-project/semantic-router/agents-md"><img src="https://agentmods.dev/badge/instructions/vllm-project/semantic-router/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 968 This file is loaded in full into every session.
When invoked 968 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00968 $0.00968
Opus 5.5 $0.00387 $0.00387
Sonnet 5.5 $0.00194 $0.00194
Haiku 4.5 $0.00097 $0.00097

Measured 24d ago against content hash 0b6fb15b6df4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 24d ago.

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 · 84 lines

How it starts

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

vLLM Semantic Router agent entry

vLLM Semantic Router is an Envoy ExtProc router for LLM inference. A public entrypoint resolves to an isolated recipe; its signals and projections feed a decision and algorithm, which select a backend and recipe-scoped plugins.

Start here

  • Read the nearest AGENTS.md only for directories you change.
  • Use tools/agent/docs/change-surfaces.md when a user-visible router contract crosses configuration, runtime, deployment, or documentation.
  • tools/agent/domains.yaml is the single changed-path registry for ownership, minimum checks, CI jobs, images, and E2E profiles.
make impact ENV=cpu CHANGED_FILES="path/one path/two"
make check CHANGED_FILES="path/one path/two"
make verify DOMAIN=<domain>       # explicit integration check
make verify PROFILE=<e2e-profile>
make ci-full                      # complete local PR baseline

Use make harness-check after changing the registry, workflows, harness code, or these instructions. impact reports facts; it does not select a skill, prescribe a work loop, or decide when the task is complete.

Repository map

  • src/semantic-router/: Go router, ExtProc runtime, routing, and APIs
  • src/vllm-sr/: Python CLI and local stack orchestration
  • src/model-runtime/: model runtime that serves every model the router uses
  • config/: canonical configuration, fragments, schemas, and recipes
  • dashboard/: React frontend and Go management backend
  • deploy/: deployment artifacts and operator
  • e2e/: end-to-end framework and profiles
  • tools/: build, development, release, security, and harness tooling
  • website/: public documentation

src/semantic-router/cmd/ contains only the Router process entrypoint and its lifecycle tests. Authoring commands belong in tools/dev/, calibration tools in tools/calibration/, benchmark drivers beside their benchmark, and the browser compiler in dashboard/wasm/. Keep shared Go contracts in the Router module; tools/make/go-tools.mk explicitly builds, tests, and lints external Go commands against that module's dependencies.

Read the full file on GitHub · 84 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. 24d ago Changed · +6 lines · +97 tokens per session 0b6fb15b6df4
  2. 1mo ago Changed · -10 tokens per session 14a7d16a13c3
  3. 1mo ago Changed · +9 lines · +127 tokens per session 01d5597082c8
  4. 1mo ago Changed · +1 lines · +21 tokens per session c4598aa12175
  5. 1mo ago Changed · -20 lines · -1,313 tokens per session 15bee1dd6658
  6. 2mo ago Changed · +1 lines · +53 tokens per session 9e78f7e6d76a
  7. 2mo ago 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 (6,402 stars, last pushed yesterday), licensed Apache-2.0. It adds 968 tokens to every session, about $0.0039 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-08-30.

Related

semantic-router AGENTS.md compared with instructions from other repositories

semantic-router AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
semantic-router AGENTS.mdvllm-project/semantic-routerInstructions file6.4kyesterdayApache-2.0A968Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode