Instruction files are guidance you write once and every session reads, such as AGENTS.md, CLAUDE.md or Cursor rules. Notes a harness saves on its own are on the Memories page.
What gets loaded
| Question | Cursor Agentchecked at 2026.10.12-d47ca18 |
|---|---|
| Which files it reads | Project rules are
|
| Where it looks, and when nested files load | At startup the CLI walks from the workspace directory up to the filesystem root, loading The docs describe CLAUDE.md and AGENTS.md at the project root and in subdirectories; the CLI's walk up through parent directories is wider than the editor docs suggest. |
| When several apply, which wins | All applicable rules are merged into the context; none replaces another. When guidance conflicts, Team Rules beat Project Rules, which beat User Rules, and a nested |
| Size limits | Partly There is no hard size limit or truncation of rule bodies; Cursor recommends keeping each rule under 500 lines and splitting larger ones. A rule's Every always-applied rule, AGENTS.md and CLAUDE.md uses context window on every request, so long files cost tokens. |
Writing them
| Question | Cursor Agentchecked at 2026.10.12-d47ca18 |
|---|---|
| One file for several harnesses | Yes. The CLI reads Claude Code's |
| Rules for some paths, or only on request | Yes. In a
|
| Include other files | Not supported No. Writing |
| Add instructions from config or flags | Partly There is no flag or environment variable that injects instruction text. You can load extra rules with |
| Generate a starter file |
|
Control
| Question | Cursor Agentchecked at 2026.10.12-d47ca18 |
|---|---|
| See what loaded, and apply edits | Partly Run In the editor, Customize → Rules shows every rule and its status. |
| Turn them off or skip some | Partly There is no flag to skip instruction files for a run. To exclude a file, list an |
| Enforce instructions for an organisation | Yes, on Team and Enterprise plans. Admins create Team Rules in the dashboard and tick Enforce this rule so members cannot turn them off; enforced and enabled Team Rules apply to every repository, including CLI sessions. Admins can also mark a plugin that ships rules as Required so it cannot be uninstalled. Non-enforced Team Rules can be switched off by each member in Customize. |
Notes and sources
Cursor Agent, 7 sources
- Enforced team rules cannot be disabled by users.
- AGENTS.md is the plain-Markdown alternative to structured project rules.