eval-recipes
AGENTS.md29 starsChanged 10 months agoMITView on GitHub
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
17 rules. About 0 are common, 10 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Do not run tests automatically unless asked since they take a while.
- Distinctive: line 8
Don't generate characters that a user could not type on a standard keyboard like fancy arrows.
- Distinctive: line 11
Keep it very concise
- Distinctive: line 12
No emojis or em dashes.
- Distinctive: line 15
Never add back in code or comments that someone else has removed or changed since you last viewed it.
- Distinctive: line 19
Follow the Google Python Style Guide.
- Distinctive: line 20
After each code change, checks are automatically run.
- Very specific: line 23
Always prefer pathlib for dealing with files.
- Very specific: line 24
When using pathlib, always Use .parents[i] syntax to go up directories instead of using .parent multiple times.
- Distinctive: line 25
When writing tests, use pytest and pytest-asyncio.
- Distinctive: line 27
Prefer using loguru for logging instead of the built-in logging module.
- Very specific: line 28
NEVER use # type: ignore. It is better to leave the issue and have the user work with you to fix it.
- Distinctive: line 29
Don't put types in quotes unless it is absolutely necessary to avoid circular imports and forward references.
- Very specific: line 30
When writing multi-line strings, use """ instead of using string concatenation.
- Very specific: line 32
When constructing long strings like prompts for LLMs, use python-liquid's render function:
- Very specific: line 41
Leave __init__.py files empty unless there is a specific reason to add code there during this early stage of the project.
- Very specific: line 42
When running scripts with uv run make sure you are in the top level of this Python project.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
General Instructions
- This is a production-grade Python package using
uvas the package and project manager. You must always follow best open-source Python practices. - Shortcuts are not appropriate. When in doubt, you must work with the user for guidance.
- Any documentation you write, including in the README.md, should be clear, concise, and accurate like the official documentation of other production-grade Python packages.
- Make sure any comments in code are necessary. A necessary comment captures intent that cannot be encoded in names, types, or structure. Comments should be reserved for the "why", only used to record rationale, trade-offs, links to specs/papers, or non-obvious domain insights. They should add signal that code cannot.
- The current code in the package should be treated as an example of high quality code. Make sure to follow its style and tackle issues in similar ways where appropriate.
- Do not run tests automatically unless asked since they take a while.
- Don't generate characters that a user could not type on a standard keyboard like fancy arrows.
- Anything is possible. Do not blame external factors after something doesn't work on the first try. Instead, investigate and test assumptions through debugging through first principles.
- When writing documentation
- Keep it very concise
- No emojis or em dashes.
- Documentation should be written exactly like it is for production-grade, polished, open-source Python packages.
- You should only use the dependencies in the provided dependency files. If you need to add a new one, ask first.
- Never add back in code or comments that someone else has removed or changed since you last viewed it.
Python Development Instructions
tyby Astral is used for type checking. Always add appropriate type hints such that the code would pass ty's type check.- Follow the Google Python Style Guide.
- After each code change, checks are automatically run. Fix any issues that arise.
- IMPORTANT: The checks will remove any unused imports after you make an edit to a file. So if you need to use a new import, be sure to use it FIRST (or do your edits at the same time) or else it will be automatically removed. DO NOT use local imports to get around this.
- At this stage of the project, NEVER add imports to init.py files. Leave them empty unless absolutely necessary.
- Always prefer pathlib for dealing with files. Use
Path.openinstead ofopen. - When using pathlib, always Use
.parents[i]syntax to go up directories instead of using.parentmultiple times. - When writing tests, use pytest and pytest-asyncio.
- The pyproject.toml is already configured so you do not need to add the
@pytest.mark.asynciodecorator.
- The pyproject.toml is already configured so you do not need to add the
- Prefer using loguru for logging instead of the built-in logging module. Do not add logging unless requested.
- NEVER use
# type: ignore. It is better to leave the issue and have the user work with you to fix it. - Don't put types in quotes unless it is absolutely necessary to avoid circular imports and forward references.
- When writing multi-line strings, use
"""instead of using string concatenation. Use\to break up long lines in appropriate places. - When constructing long strings like prompts for LLMs, use
python-liquid'srenderfunction:
from liquid import render
print(render("Hello, {{ you }}!", you="World"))
# Hello, World!- Include
# Copyright (c) Microsoft. All rights reservedat the top of each Python file (don't worry about init.py files) - For Windows compatibility, use encoding='utf-8' when handling files, unless required otherwise.
- Leave init.py files empty unless there is a specific reason to add code there during this early stage of the project.
- When running scripts with
uv runmake sure you are in the top level of this Python project. All you need to do isuv run <script relative path>. You also do not need to douv run python, thepythonis unnecessary.
Key Files
@README.md
@pyproject.toml
@docs/BENCHMARKING.md
@src/eval_recipes/benchmarking/schemas.py
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.

