Writing Cursor rules that actually fire: activation modes…
    Neura Market
    Neura Market
    /Cursor
    Marketplace
    Directories
    Resources
    Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeekCoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityExtensionsTrending
    CursorBlogWriting Cursor rules that actually fire: activation modes explained
    Back to Blog
    Writing Cursor rules that actually fire: activation modes explained
    cursor

    Writing Cursor rules that actually fire: activation modes explained

    Piekwerk September 18, 2026
    0 views

    A Cursor rule that never fires is indistinguishable from a rule you never wrote. There is no warning,...

    A Cursor rule that never fires is indistinguishable from a rule you never wrote. There is no warning, no log line, no UI flag. You find out when the agent, for the fifth time, generates API errors as raw strings despite your beautifully written rule saying not to. This article is about the activation mechanics that decide whether a rule loads at all.

    The frontmatter

    Every .mdc file in .cursor/rules/ has YAML frontmatter with three fields:

    ---
    description: Error handling for payment API routes
    globs: ["src/api/payments/**/*.ts"]
    alwaysApply: false
    ---
    
    Your rule content here.
    
    FieldControlsUsed by
    descriptionWhat the model sees when deciding whether the rule is relevantAuto Agent and Agent Requested modes
    globsWhich file paths trigger inclusionAuto Agent; matches against files in context
    alwaysApplyForce-load the rule into every requestOverrides everything when true

    The four activation modes

    Cursor's UI presents four "rule types". They map onto the frontmatter like this:

    UI modeFrontmatterWhen it loads
    AlwaysalwaysApply: trueEvery request, everywhere. Costs tokens always
    Auto Agentglobs set, alwaysApply: falseWhen files matching the globs appear in the agent's context
    Agent Requesteddescription set, no globs, alwaysApply: falseThe model reads all rule descriptions and decides to pull the rule in
    Manual@ruleName mentionOnly when explicitly invoked in chat

    Practical guidance:

    • Always is for rules that are genuinely universal. Keep the count low; every Always rule spends your instruction budget on every request.
    • Auto Agent (globs) is the workhorse. Scope by path and the rule loads exactly when relevant code is in play. This is how you afford specific knowledge without bloating always-on config.
    • Agent Requested is worth using for cross-cutting rules that do not map to a path: "when writing database migrations.." applies to files whose names vary. The risk is that the model's relevance judgment is a judgment; a weak description means rare firing. Write descriptions as retrieval queries, not labels: "Applying when writing or modifying database migrations, schema files, or seed data" beats "Database stuff".
    • Manual is for heavyweight references you explicitly want: style guides, long API conventions.

    The five silent failure modes

    1. Broken glob. globs: "src/api/**/*.ts" when your API lives in app/api/ matches nothing. The rule never loads. Nothing tells you. This is the most common failure by a wide margin, and it survives code review because the glob looks plausible.

    2. Single-string glob quirks. Cursor accepts a single string or an array of strings. globs: "src/a/**/*.ts,src/b/**/*.ts" (comma-joined in one string) does not do what you hope. Use an array.

    3. Description-only rules with bad descriptions. In Agent Requested mode the description is the entire retrieval surface. "Coding standards" fires on vibes. Include the trigger vocabulary the model needs to match against the task at hand.

    4. alwaysApply sprawl. Every rule someone marks "important" becomes alwaysApply: true, and suddenly you are back to a 900-line implicit CLAUDE.md, except worse because it is twelve files and nobody has seen the total.

    5. Filewatcher drift. Globs are matched against your repo as it exists today. Move src/api to apps/web/src/api in a restructure and every rule scoped to the old path dies on the same day, quietly. Nobody re-audits globs during a restructure.

    Auditing: make firing observable

    Because Cursor will not warn you, test the globs yourself. The essence of an audit is: does each glob match at least one real file, and roughly how many?

    # rules_audit.py -- check every .mdc glob against the repo
    import pathlib, re, sys
    
    broken = 0
    for mdc in pathlib.Path(".cursor/rules").glob("*.mdc"):
        text = mdc.read_text()
        m = re.search(r'globs:\s*\[?(.+?)\]?
    ', text)
        if not m:
            print(f"{mdc.name}: no globs found")
            continue
        # hand the glob list to pathspec/minimatch of your choice here
        ..
    

    If you do not want to maintain that script: our validation harness, which ships with AgentConfig Studio, parses every rule's frontmatter (catching malformed YAML and missing activation modes), verifies required files and line budgets, and scans for placeholder rot. Every kit passes it before release, so the rule you install is the rule that loads.

    Want to start from a working baseline instead? The free Next.js sample kit is MIT licensed: take it, break it, keep it.

    Tags

    cursoraiprogrammingdevtools

    Comments

    More Blog

    View all
    Zero-Signup Docs MCP: How to Query Technical Documentation Directly Inside Cursorai

    Zero-Signup Docs MCP: How to Query Technical Documentation Directly Inside Cursor

    If you use Cursor, Windsurf, or Claude Code to build software, you have inevitably encountered the...

    M
    Mohammed Rafay
    1
    This week in Cursor + .NET — 7 rules (week ending September 20, 2026)csharp

    This week in Cursor + .NET — 7 rules (week ending September 20, 2026)

    A weekly digest from the Agentic Architect persistence kit: 7 senior C#/.NET rules for engineers keeping Cursor honest across sessions.

    A
    Agentic Architect
    What to Check in an AI Coding Tool's Privacy Policycursor

    What to Check in an AI Coding Tool's Privacy Policy

    A checklist for auditing what any AI coding assistant does with your source code: retention, training use, subprocessors, and the settings that quietly change all three.

    G
    Ganesh Joshi
    1
    Cursor Pricing in 2026: $20 Pro, the SpaceX Deal, and a Number We Got Wrong About a Competitorcursor

    Cursor Pricing in 2026: $20 Pro, the SpaceX Deal, and a Number We Got Wrong About a Competitor

    Disclosure: DevTools Review has no confirmed affiliate relationship with Cursor — affiliateStatus:...

    R
    Ramdai Bista
    Cursor Pricing 2026: Plans & Is It Worth It?cursorpricing

    Cursor Pricing 2026: Plans & Is It Worth It?

    Originally published at https://aitoolspot.net/cursor-pricing-2026-plans-review What...

    I
    Incubadora
    1
    How to connect Grok or Cursor to Jithox MCP (prepaid EU business checks)mcp

    How to connect Grok or Cursor to Jithox MCP (prepaid EU business checks)

    Your agent stays the brain. Jithox adds read-only EU business checks with clear rights, costs, and...

    J
    jithox

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Games
    • Blog
    • Videos
    • Guides
    • Courses
    • Community
    • Extensions

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Cursor resource

    • Automate Daily Activation of IoT Sensor Workflows with N8Nn8n · $8.18 · Related topic
    • Synchronize Drip Campaign Activation with GetResponse Campaign Creationmake · $3.99 · Related topic
    • Schedule n8n Workflow Activation/Deactivation via APIn8n · $9.99 · Related topic
    • PayPal Billing Plan Activation Triggern8n · $3.99 · Related topic
    Browse all workflows