Last reviewed
Correct answer: A. In subdirectories of the project, so instructions load with the area of the codebase being worked on.
Explanation
The principle — AGENTS.md is plain markdown with no frontmatter, and Cursor reads it from the project root and from subdirectories.
Why the key is correct — A file placed in a package folder applies when you work on files in that folder or below it, and its instructions combine with those of its parents. In a monorepo that means a package's conventions travel with the package rather than riding along in every unrelated conversation.
Why the others are wrong — The root-only reading pushes teams into one enormous file whose every line is injected into context on each request. AGENTS.md also sits outside the rules folder, which holds .mdc files with frontmatter. And it is a project file, so a home-directory copy is the wrong place for it.
Remember this — Put instructions next to the code they govern.
Sources — Cursor's Rules documentation.
Sources
“Cursor supports AGENTS.md in the project root and subdirectories.”
Practise 10 questions on this topic
Take Cursor Basics — Timed Test 1 (10 questions) — scored instantly, explanation for every question, no login.