Updated
AGENTS.md · Rust

AGENTS.md and CLAUDE.md examples for Rust

Of 188 actively developed open-source products built with Rust, 130 (69%) keep instruction files for coding agents: AGENTS.md in 112, CLAUDE.md in 84. The typical file is 1,161 words, and most cover pointers to other docs (73%) and commands to build, run and test (71%).

Real files to read

From the best-known open-source Rust products whose file is a real one (not a pointer to another), 200 to 4,000 words, covering at least three of the usual topics, written mainly in Rust. Each opens on GitHub.

ProjectFileStarsWordsCovers
pbakaus/impeccableAGENTS.md90,6392,459CommandsTestingDoc pointersStructureCode styleGit
vercel-labs/agent-browserAGENTS.md44,7191,398CommandsTestingDoc pointersStructureCode style
slint-ui/slintAGENTS.md24,300226CommandsTestingDoc pointers
PrimeIntellect-ai/prime-agentAGENTS.md22,3972,060CommandsTestingDoc pointersStructureCode style
screenpipe/screenpipeAGENTS.md22,098841CommandsTestingDoc pointersGit
gitbutlerapp/gitbutlerAGENTS.md21,876286TestingDoc pointersCode style
cube-js/cubeCLAUDE.md21,0981,016CommandsTestingDoc pointersStructureGit
cocoindex-io/cocoindexAGENTS.md11,7662,908CommandsTestingDoc pointersStructureCode styleGit
rerun-io/rerunAGENTS.md11,6531,783CommandsTestingDoc pointersStructureCode style
PRQL/prqlAGENTS.md10,934687CommandsTestingDoc pointersCode style
fujiapple852/trippyAGENTS.md8,106243CommandsTestingGit
magnitudedev/magnitudeAGENTS.md7,3591,490CommandsTestingDoc pointers

What Rust projects put in them

Share of the 122 files that cover each topic, against all 731 files we read.

Pointers to other docs73% vs 69%
Commands to build, run and test71% vs 79%
Testing65% vs 67%
Project structure49% vs 57%
Git, commits and pull requests46% vs 46%
Code style44% vs 49%

How they talk to the agent: 75% say “never” or “do not” somewhere (all files: 80%), 25% shout a rule in capitals like IMPORTANT or MUST (23%), and 19% tell it to ask before some changes (20%).

The tools they name

Package managerscargo (39 files), pnpm (28 files), npm (17 files)

Tests and lintersVitest (16), pytest (14), Playwright (12), ESLint (12), Prettier (8), Biome (8)

Named more than in files generallyTauri (19)

Questions

What should an AGENTS.md for a Rust project include?

In 122 files from open-source Rust products: pointers to other docs (73%), commands to build, run and test (71%), testing (65%), project structure (49%), git, commits and pull requests (46%), code style (44%). The package manager they name most is cargo (39 files).

AGENTS.md or CLAUDE.md?

Among these Rust products, 112 keep an AGENTS.md and 84 a CLAUDE.md. Across every product we checked, 354 keep both, and in 189 of those the CLAUDE.md only points to the AGENTS.md (a symlink or a line like @AGENTS.md), so there's one file to maintain. Codex, Cursor, Copilot and others read AGENTS.md; Claude Code reads CLAUDE.md.

How long is a typical Rust AGENTS.md?

The median is 1,161 words in these 122 files; across all 731 files we read, half are between 444 and 1,727 words.

How this is counted: the GitHub repos of open-source products built with Rust, pushed to in the 180 days before 2026-10-28. We read each repo's AGENTS.md, CLAUDE.md and other agent files; what's published here is counts and links, not their text. All files, by the numbers.