Cursor keeps ignoring your rules. Fix the file type and when it applies
Cursor Agent skips a rule you already wrote because the file type or the apply setting never put that rule in the chat. Short answer: 5 steps. 1) Save the rule as .mdc inside .cursor/rules; 2) Set when the rule is included; 3) Put required text in the rule body; 4) Check you are in Agent chat; 5) On a team plan, check the dashboard rule.
Last updated: · This page is the decision checklist; the tools list for “Make Cursor rules apply” is a separate URL.
How do I fix this: Cursor keeps ignoring your rules?
Save the rule as .mdc inside .cursor/rules
Project rules are .mdc files in .cursor/rules. A plain .md file in that folder is ignored, because it has no frontmatter for description, globs, and alwaysApply. For plain markdown, put an AGENTS.md in the project root or a subdirectory instead. https://cursor.com/docs/rules
Set when the rule is included
Always Apply means alwaysApply: true, and then globs and description are ignored. Apply to Specific Files means alwaysApply: false plus globs, and the rule attaches when a matching file is in context. Apply Intelligently means alwaysApply: false, a description, and no globs: the agent pulls it in when the description looks relevant. With neither a description nor globs, the rule is included only when you @-mention it.
Put required text in the rule body
A mention like @migration-template.sql tells the agent where to look. The file is not copied into the prompt, in the editor, the CLI, or Cloud Agents. Paste anything that must always be in context into the rule itself. Cursor's docs also say to keep a rule under 500 lines and to split a long one.
Check you are in Agent chat
Rules do not change Cursor Tab. User Rules, set in Customize, are used by Agent chat and are not applied to Inline Edit (Cmd/Ctrl+K). When a project rule matches, its text is included at the start of the model context.
On a team plan, check the dashboard rule
Team Rules are available on Team and Enterprise plans. A rule saved as a draft does not apply until it is enabled. Unless it is enforced, a teammate can turn it off. When guidance conflicts, the order is Team Rules, then Project Rules, then User Rules.
Which tools are best to make Cursor rules apply?
Cursor
Agent reads project rules from .cursor/rules and plain instructions from AGENTS.md.
Cursor Rules
How Always Apply, globs, descriptions, Team Rules and AGENTS.md decide what enters the chat.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Make Cursor rules apply” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.