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.
| Project | File | Stars | Words | Covers |
|---|---|---|---|---|
| pbakaus/impeccable | AGENTS.md | 90,639 | 2,459 | CommandsTestingDoc pointersStructureCode styleGit |
| vercel-labs/agent-browser | AGENTS.md | 44,719 | 1,398 | CommandsTestingDoc pointersStructureCode style |
| slint-ui/slint | AGENTS.md | 24,300 | 226 | CommandsTestingDoc pointers |
| PrimeIntellect-ai/prime-agent | AGENTS.md | 22,397 | 2,060 | CommandsTestingDoc pointersStructureCode style |
| screenpipe/screenpipe | AGENTS.md | 22,098 | 841 | CommandsTestingDoc pointersGit |
| gitbutlerapp/gitbutler | AGENTS.md | 21,876 | 286 | TestingDoc pointersCode style |
| cube-js/cube | CLAUDE.md | 21,098 | 1,016 | CommandsTestingDoc pointersStructureGit |
| cocoindex-io/cocoindex | AGENTS.md | 11,766 | 2,908 | CommandsTestingDoc pointersStructureCode styleGit |
| rerun-io/rerun | AGENTS.md | 11,653 | 1,783 | CommandsTestingDoc pointersStructureCode style |
| PRQL/prql | AGENTS.md | 10,934 | 687 | CommandsTestingDoc pointersCode style |
| fujiapple852/trippy | AGENTS.md | 8,106 | 243 | CommandsTestingGit |
| magnitudedev/magnitude | AGENTS.md | 7,359 | 1,490 | CommandsTestingDoc pointers |
What Rust projects put in them
Share of the 122 files that cover each topic, against all 731 files we read.
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.