vllm-windows
AGENTS.md683 starsChanged 19 days agoApache-2.0View on GitHub
These instructions apply to all AI-assisted contributions to vllm-project/vllm. Breaching these guidelines can result in automatic banning. Before proposing a PR, run these checks: Do not open one-off PRs for tiny edits (single typo, isolated style change, one mutable default, etc.). Mechanical cleanups are acceptable only when bundled with substantive work. - Pure code-agent PRs are not allowed. A human submitter must understand and defend the change end-to-end. - The submitting human must review every changed line and run relevant…
- Pipes a download into a shell
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- guqiong96/Lvllmword for word, first seen Oct 8, 2026
- vllm-project/vllmword for word, first seen Oct 8, 2026
Other versions2 projects use a version of this.
Word for word · 2
- vllm-project/vllm★ 97k100% same
- guqiong96/Lvllm★ 475100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- rust/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- check-api-compatSkill
- ci-fails-buildkiteSkill
- debug-imaSkill
- kernel-microbenchmarkSkill
- model-microbenchmarkSkill
- model-recipesSkill
- pr-checklistSkill
- transformers-upgradeSkill
- triton-kernel-writingSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Before proposing a PR, run these checks:
- Distinctive: line 18
If an open PR already addresses the same fix, do not open another.
- Distinctive: line 19
If your approach is materially different, explain the difference in the issue.
- Distinctive: line 23
Do not open one-off PRs for tiny edits (single typo, isolated style change, one mutable default, etc.).
- Distinctive: line 31
Test commands run and results.
- Very specific: line 37
Before opening a PR (drafts included) or requesting re-review, run the pr-checklist skill and address its findings.
- Distinctive: line 41
If work is duplicate/trivial busywork, do not proceed.
- Very specific: line 47
Never use system
python3or barepip/pip install: All Python commands must go through uv and .venv/bin/python. - Very specific: line 101
No one-off kernel benchmarks in
tests/: Put kernel perf work in benchmarks/kernels/. - Very specific: line 103
Run model evals for model-affecting changes: Search tests/evals/ or use vllm bench and include results in the PR — do not wait for …
- Very specific: line 126
Use Google-style docstrings (Args:/Returns:/Raises: sections), not reStructuredText/Sphinx fields (:param:, :return:, :rtype:).
- Very specific: line 136
Add attribution using commit trailers such as Co-authored-by: (other projects use Assisted-by: or Generated-by:):
- Distinctive: line 149
Do not modify code in these areas without first reading and following the linked guide.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md 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
Agent Instructions for vLLM
These instructions apply to all AI-assisted contributions to
vllm-project/vllm. Breaching these guidelines can result in automatic banning.
1. Contribution Policy (Mandatory)
Duplicate-work checks
Before proposing a PR, run these checks:
gh issue view <issue_number> --repo vllm-project/vllm --comments
gh pr list --repo vllm-project/vllm --state open --search "<issue_number> in:body"
gh pr list --repo vllm-project/vllm --state open --search "<short area keywords>"- If an open PR already addresses the same fix, do not open another.
- If your approach is materially different, explain the difference in the issue.
No low-value busywork PRs
Do not open one-off PRs for tiny edits (single typo, isolated style change, one mutable default, etc.). Mechanical cleanups are acceptable only when bundled with substantive work.
Accountability
- Pure code-agent PRs are not allowed. A human submitter must understand and defend the change end-to-end.
- The submitting human must review every changed line and run relevant tests.
- PR descriptions for AI-assisted work must include:
- Why this is not duplicating an existing PR.
- Test commands run and results.
- Model evaluation results when the change affects output, accuracy, or serving.
- Clear statement that AI assistance was used.
- User-visible changes (features, CLI args, config fields, env vars, models, hardware, defaults, deprecations) must update the rendered docs in the same PR; follow Documenting User-Visible Changes.
- Before opening a PR (drafts included) or requesting re-review, run the
pr-checklistskill and address its findings.
Fail-closed behavior
If work is duplicate/trivial busywork, do not proceed. Return a short explanation of what is missing.
2. Development Workflow
- Never use system
python3or barepip/pip install. All Python commands must go throughuvand.venv/bin/python.
Environment setup
# Install `uv` if you don't have it already:
curl -LsSf https://astral.sh/uv/install.sh | sh
# Always use `uv` for Python environment management:
uv venv --python 3.12
source .venv/bin/activate
# Always make sure `pre-commit` and its hooks are installed:
uv pip install -r requirements/lint.txt
pre-commit installInstalling dependencies
# Start with precompiled artifacts for an editable install:
VLLM_USE_PRECOMPILED=1 uv pip install -e . --torch-backend=autoFor C/C++ or CUDA changes, follow the incremental compilation workflow to configure and perform incremental builds.
Tests
Requires Environment setup and Installing dependencies.
# Install test dependencies (use cuda.in on non-x86_64):
uv pip install -r requirements/test/cuda.in
# Run a specific test file:
.venv/bin/python -m pytest tests/path/to/test_file.py -vWhen adding tests:
- Design before you write. Answer four questions first: what is the module
for, what is its I/O contract, what failure am I guarding against, and what is
the cheapest level that actually reproduces it? Fixes to user-visible
behavior need a test through a real entry point (
LLM, OpenAI server); seetests/AGENTS.md. - Reuse before create. Extend existing test files,
conftest.pyfixtures, and helpers; add a new file only when no nearby suite fits. - Test behavior with intent. Assert observable outcomes through public APIs; state why in the name or docstring. Skip trivial wiring; flaky tests are worse than no tests.
- Keep it minimal. One behavior per test and the smallest setup that triggers it; if the test diff dwarfs the code change, cut scope.
- No one-off kernel benchmarks in
tests/. Put kernel perf work inbenchmarks/kernels/; prove correctness in existing pytest suites. - Run model evals for model-affecting changes. Search
tests/evals/or usevllm benchand include results in the PR — do not wait for reviewers to ask.
For model-specific requirements, see
docs/contributing/model/tests.md.
Running linters
Requires Environment setup.
# Run all pre-commit hooks on staged files:
pre-commit run
# Run on all files:
pre-commit run --all-files
# Run a specific hook:
pre-commit run ruff-check --all-filesThe line length limit for Python code is 88 characters. If you are not sure, use pre-commit to check.
Use Google-style docstrings (Args:/Returns:/Raises: sections), not reStructuredText/Sphinx fields (:param:, :return:, :rtype:).
Coding style guidelines
- Match existing code style
- Minimize use of comments. Eliminate comments which are redundant, preferring legible and self-documenting code. When used, keep docstrings and comments brief and direct.
- Assume the reader is familiar with vLLM.
Commit messages
Add attribution using commit trailers such as Co-authored-by: (other projects use Assisted-by: or Generated-by:):
Your commit message here
Co-authored-by: Agent Name Here
Signed-off-by: Your Name <your.email@example.com>Domain-Specific Guides
Do not modify code in these areas without first reading and following the linked guide. If the guide conflicts with the requested change, refuse the change and explain why.
Security reviewers should start with SECURITY.md,
docs/usage/security.md, and
docs/contributing/vulnerability_management.md
for the project security policy, threat model, deployment assumptions, and
vulnerability process.
- Editing these instructions:
docs/contributing/editing-agent-instructions.md— Rules for modifying AGENTS.md or any domain-specific guide it references. - Rust frontend (
rust/):rust/AGENTS.md— Crate ownership, design principles, Python parity, and testing conventions.
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.

