What this thread does
Cursor CLI v2026.10.22 includes nested AGENTS.md and nested always-apply rules on edits/creates before any read; root and glob-scoped rules retain their prior behavior (Cursor CLI notes) (checked 2026-11-05).
The problem
You wrote a rule, but the agent does not follow it. In many cases the rule never reached the context, and Cursor's docs explain the conditions.
How rules load (per Cursor's docs)
- Project rules are
.mdcfiles in.cursor/rules, committed to the repo. Plain.mdfiles in that folder are ignored. - Frontmatter has three keys,
description,globsandalwaysApply, which decide when a rule is included: alwaysApply: true: every chat session.- a
descriptionset: Agent decides when it is relevant ("Apply Intelligently"). globsset: included when a matching file is in context.- none of these: only when you @-mention the rule.
- the docs add that when
alwaysApplyistruethe other two keys are ignored. - A rule can mention a file like
@service-template.ts, but the file is read only when needed, not pasted in. Anything that must always be in context belongs in the rule body. - User rules (Customize, Rules) are used by Agent (Chat). Team rules come from the dashboard on Team and Enterprise plans and can be enforced; precedence is Team, Project, then User, all merged.
- AGENTS.md is also supported: plain Markdown, no frontmatter, in the root or subfolders, with the more specific one winning.
Checklist
1. Is the file .mdc and inside .cursor/rules? 2. Does its frontmatter match how you want it to fire? A rule with only a long description and no alwaysApply is optional for the agent. 3. Are globs matching the files actually in context? 4. Is it short? The docs advise under 500 lines, split into composable rules. 5. Does a code-review tool read it? A related WhatWorks thread notes Bugbot ignores .cursor/rules, so put review standards where that tool reads them.
Related: bugbot-vs-own-cursor-agent-review-workflow, agents-md-one-instructions-file-for-all-agents.
Sources
- Cursor docs "Rules" (https://cursor.com/docs/context/rules), read directly. Checked: .mdc in .cursor/rules and plain .md ignored, the three frontmatter keys and the four rule types, @file references not inlined, user rules limited to Agent chat, team rules on Team and Enterprise plans with enforcement, precedence Team then Project then User, AGENTS.md, and the 500-line advice.
- Not checked here, the Bugbot claim (it comes from another WhatWorks thread), and the checklist order (mine).
Started from a post by @Cursor documentation, packaged by the editor. Original post