RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/vllm-project/vllm

AGENTS.md

rust/AGENTS.md
AGENTS.md

Quality

59/100

Scores the file, not the repository.

Length

594 words

3 headings · 0 code blocks

Repository

88k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
vllm-project/vllm/rust/AGENTS.mdRawGitHub
1# Alternative Frontend to vLLM Engine in Rust
2 
3This project aims to implement an alternative frontend to the vLLM Engine in Rust, providing a more efficient and robust interface for interacting with the engine. Currently it's still in the very early stage and is actively evolving.
4 
5## Coding Styles
6 
7- Always use workspace dependencies for Cargo crates.
8- Prefer splitting code into multiple smaller modules and files for better organization and readability, rather than putting everything in a single file.
9- When refactoring or reconstructing code, always preserve the original comments and documentation VERBATIM, if applicable.
10- If not specified, default to writing concise Rust documentation and comments that match the style of the existing codebase when generating code.
11- When migrating code from Python or any other language, preserve the original documentation comments whenever they still make sense in the Rust code.
12- Although you might be asked to only implement or migrate minimal functionality at the beginning, you should still leave necessary `TODO` comments in the code for the future improvements of the lacked features, so that it's easier for the next iteration to build upon the existing codebase.
13- When writing parsers with `winnow`:
14 - Prefer a declarative parser shape over imperative step-by-step parsing, as long as it's more readable and maintainable.
15 - Prefer tuple-based parser composition over calling `parse_next` one parser at a time.
16 - Prefer built-in combinators and token parsers before adding local helpers.
17 - Add short documentation comments like `Parse a ..` to all local parser/combinator functions.
18 - Reuse existing utilities from `utils` module as much as possible, and add new ones there if needed.
19- Rust error handling:
20 - Never call `to_string()` directly on an error value.
21 - Use `ToReportString` or `AsReport` by `thiserror-ext` instead.
22 - For `Error` variants that are primarily free-form text, prefer a struct variant with a `message: String` field. `thiserror_ext::Macro` will auto-derive `foo!(...)` and `bail_foo!(...)` helper macros from that shape.
23 - Use `foo!(...)` when you need to construct an error value inside an expression, such as `Err(foo!(...))`, `.ok_or_else(|| foo!(...))`, or `Err::<(), _>(foo!(...))?`.
24 - Use `bail_foo!(...)` only in statement positions where you want to exit the current `Result`-returning function immediately. Prefer it over `return Err(foo!(...))` in those cases.
25 - If a variant has extra structured fields, prefer the generated macro form `foo!(field = value, "message")` rather than manually writing `Error::Foo { ... }`.
26- Since the project is still in early stage, it's fine to break API and make non-backwards-compatible changes as needed.
27- Currently the project is only targeting Unix-like platforms, so it's fine to use Unix-specific APIs without extra compatibility layers like `cfg(unix)`
28 
29## Testing
30 
31- Prefer snapshot testing with the `expect-test` crate over writing multiple `assert_eq!` statements on individual fields. Use `expect_test::expect![[...]].assert_debug_eq(...)` to snapshot the `Debug` output of the entire struct.
32 - Write `expect![[""]]` as a placeholder first, then run `UPDATE_EXPECT=1 cargo test` to auto-fill the snapshot content.
33 - For values containing non-deterministic data (e.g., UUIDs), set them to a fixed value like `"<placeholder>"` before snapshotting.
34- In tests, avoid hand-writing full request struct literals when only a few fields matter. Prefer test fixtures such as `for_test()` with struct update syntax, so newly added fields do not force mechanical edits across many tests.
35- Prefer deterministic synchronization in async and integration tests, such as channels, barriers, explicit handshakes, or observable state transitions, instead of `sleep`-based timing assumptions.
36 - Use `sleep` only as a last resort when there is no better observable synchronization point.
37- Always run test with `cargo nextest run` instead of `cargo test`, if available, as it's much faster.
38 

Commands it names

  • cargo nextest run
  • cargo test

Sections

  • Alternative Frontend to vLLM Engine in Rust
  • Coding Styles
  • Testing

What it covers

testcode-style

Stack — with the evidence

python

(1.00)

pytorch

(1.00)

transformers

(0.70)

rust

(0.60)

cpp

(0.60)

github-actions

(0.60)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
vllm-project
Language
—
License
—
Archived
no

All configs in this repo

Also in vllm-project/vllm

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
vllm-project/vllmAGENTS.md · 88kAGENTS.mdpythonpytorch+3setuptestlint-formatstyle+5100/1003 days ago
vllm-project/vllmrust/src/bench/AGENTS.md · 88kAGENTS.mdpythonpytorch+4buildtestarchperformance+273/1003 days ago
Diff against AGENTS.md Diff against rust/src/bench/AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
vllm-project/vllmAGENTS.md · 88kAGENTS.mdpythonpytorch+3setuptestlint-formatstyle+5100/1003 days ago
unoplat/unoplat-code-confluenceunoplat-code-confluence-frontend/AGENTS.md · 95AGENTS.mdtypescriptpython+14setupbuildtestlint-format+6100/1002 days ago
OnlyTerp/prompt-cache-skillsAGENTS.md · 111AGENTS.mdpythongithub-actionssetupbuildtestlint-format+5100/1003 days ago
SkeneTechnologies/skene-cookbookAGENTS.md · 51AGENTS.mdpythoneslint+4setupbuildtestlint-format+7100/1002 days ago
netdata/netdatasrc/go/plugin/ibm.d/AGENTS.md · 80kAGENTS.mddockerinfrastructure+7buildtestlint-formatarch+399/1003 days ago
unoplat/unoplat-code-confluenceunoplat-code-confluence-query-engine/AGENTS.md · 95AGENTS.mdtypescriptpython+13setupbuildtestlint-format+598/1002 days ago
ruvnet/RuViewAGENTS.md · 88kAGENTS.mdtypescriptnode+14teststylegitsecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack