agentleFS

AGENTS.md examples from real projects

How real projects brief Codex, Cursor and every other agent that reads AGENTS.md.

Worked for most · soon
Hugging FaceAGENTS.md

research-agent

huggingface/research-agent/AGENTS.md

Reference repositories: fast-agent: ~/source/fast-agent/ prefect fastmcp: ~/source/fastmcp/ model context protocol: ~/ Use codexresponses.gpt-5.6-terra?reasoning=high subagents for research, analysis, review and code production. Design: - Prefab source: research/app_ui.py; preview states: design/preview_states.py. -…

72mo agoReviewMountCreate a free account to mount
Hugging FaceAGENTS.md

transformers-mlinter

huggingface/transformers-mlinter/.ai/AGENTS.md

Run make format or make lint and make test before wrapping up a change. - Rule modules live in mlinter/trf*.py. - Rule metadata lives in mlinter/rules.toml. - Rule-specific tests live in tests/test_trfXXX.py, one file per rule. - Shared rule-test helpers live in tests/rule_test_utils.py; rule test classes should inherit from RuleTestCase when they use the standard _run(rule, source, file_name=...) helper. - General CLI, registry, cache, discovery, and public-API tests live in tests/test_mlinter.py. - Skills live under .ai/skills/. - The docs site…

72mo agoReviewMountCreate a free account to mount
Hugging FaceAGENTS.md

swarm-sweeper

huggingface/swarm-sweeper/AGENTS.md

Keep imports directional: Enforce this with: This check belongs in CI and in the local pre-commit/pre-push validation flow. When inspecting this repository, never search outside the workspace root unless the…

68mo agoReviewMountCreate a free account to mount
Hugging FaceAGENTS.md

new-model-addition-cwm

huggingface/new-model-addition-cwm/AGENTS.md

This AGENTS.md file provides guidance for code agents working with this codebase. Many models in the codebase have similar code, but it is not shared by inheritance because we want each model file to be self-contained. We use two mechanisms to keep this code in sync: - "Copied from" syntax. Functions or entire classes can have a comment at the top like this: # Copied from transformers.models.llama.modeling_llama.rotate_half or # Copied from transformers.models.t5.modeling_t5.T5LayerNorm with T5->MT5 These comments are actively checked by…

015mo agoReviewMountCreate a free account to mount
CLAUDE.md vs AGENTS.md

About AGENTS.md

What is AGENTS.md?

An open format for instructions to coding agents, read by Codex, Cursor and others. Think of it as a README written for agents.

Where does it go?

At the repository root, with more specific files in subdirectories. Agents read the one closest to the file they're editing.

What should it contain?

Setup and test commands, code style, and the rules a new contributor would need to know.

Does Claude Code read it?

Claude Code reads CLAUDE.md. A one-line CLAUDE.md that points at AGENTS.md covers both.