agentleFS
MicrosoftKnown publishermicrosoft/eval-recipes/AGENTS.md

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.

  • In this repository2 other files it gives its agents.

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
  1. Distinctive:

    Do not run tests automatically unless asked since they take a while.

    line 7
  2. Distinctive:

    Don't generate characters that a user could not type on a standard keyboard like fancy arrows.

    line 8
  3. Distinctive:

    Keep it very concise

    line 11
  4. Distinctive:

    No emojis or em dashes.

    line 12
  5. Distinctive:

    Never add back in code or comments that someone else has removed or changed since you last viewed it.

    line 15
  6. Distinctive:

    Follow the Google Python Style Guide.

    line 19
  7. Distinctive:

    After each code change, checks are automatically run.

    line 20
  8. Very specific:

    Always prefer pathlib for dealing with files.

    line 23
  9. Very specific:

    When using pathlib, always Use .parents[i] syntax to go up directories instead of using .parent multiple times.

    line 24
  10. Distinctive:

    When writing tests, use pytest and pytest-asyncio.

    line 25
  11. Distinctive:

    Prefer using loguru for logging instead of the built-in logging module.

    line 27
  12. Very specific:

    NEVER use # type: ignore. It is better to leave the issue and have the user work with you to fix it.

    line 28
  13. Distinctive:

    Don't put types in quotes unless it is absolutely necessary to avoid circular imports and forward references.

    line 29
  14. Very specific:

    When writing multi-line strings, use """ instead of using string concatenation.

    line 30
  15. Very specific:

    When constructing long strings like prompts for LLMs, use python-liquid's render function:

    line 32
  16. Very specific:

    Leave __init__.py files empty unless there is a specific reason to add code there during this early stage of the project.

    line 41
  17. Very specific:

    When running scripts with uv run make sure you are in the top level of this Python project.

    line 42

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

General Instructions

  • This is a production-grade Python package using uv as 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

  • ty by 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.open instead of open.
  • When using pathlib, always Use .parents[i] syntax to go up directories instead of using .parent multiple 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.asyncio decorator.
  • 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's render function:
from liquid import render

print(render("Hello, {{ you }}!", you="World"))
# Hello, World!
  • Include # Copyright (c) Microsoft. All rights reserved at 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 run make sure you are in the top level of this Python project. All you need to do is uv run <script relative path>. You also do not need to do uv run python, the python is unnecessary.

Key Files

@README.md

@pyproject.toml

@docs/BENCHMARKING.md

@src/eval_recipes/benchmarking/schemas.py

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.