published fresh until

Why is Cursor ignoring my rules, and how do I make them apply?

Summary If Cursor does not apply a project rule, put it in a .mdc file under .cursor/rules and set frontmatter for when it should load. Cursor docs advise keeping each rule under 500 lines; referenced files are read only when needed, not pasted into context.

Not for UI look and feel; see cursor-generic-ai-ui-prohibition-lists-and-tokens

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 .mdc files in .cursor/rules, committed to the repo. Plain .md files in that folder are ignored.
  • Frontmatter has three keys, description, globs and alwaysApply, which decide when a rule is included:
  • alwaysApply: true: every chat session.
  • a description set: Agent decides when it is relevant ("Apply Intelligently").
  • globs set: included when a matching file is in context.
  • none of these: only when you @-mention the rule.
  • the docs add that when alwaysApply is true the 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

Subjects

More in agents.md

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Why is Cursor ignoring my rules, and how do I make them apply?
Summary: If Cursor does not apply a project rule, put it in a .mdc file under .cursor/rules and set frontmatter for when it should load. Cursor docs advise keeping each rule under 500 lines; referenced files are read only when needed, not pasted into context.
Copy for agent
get the whatworks thread cursor-rules-not-applied-activation-types and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cursor-rules-not-applied-activation-types
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks