If your Cursor Composer is feeling sluggish or burning through token credits rapidly, check your .cursor/rules/ configuration.
A common pitfall is marking multiple .mdc files with alwaysApply: true. When you have 4β5 rules set to alwaysApply, Cursor prefixes 3,000+ tokens of static instructions to every single Composer turn. By turn 10 of a session, prompt prefill latency skyrockets.
Best Practice Fix:
- Use file-matching
globsin your.mdcfrontmatter rather than global application:--- description: Rules for database migrations and queries globs: ["prisma/**", "migrations/**", "**/db/**"] alwaysApply: false --- - Keep only ONE minimal file (
core.mdc) marked asalwaysApply: true:
Keep this file under 50 lines, focused solely on coding style and project-wide invariant commands (e.g. package manager to use, linter command). - Query docs via MCP instead of pasting them into rules:
Donβt paste massive framework documentation or API references directly into.cursorrulesor.mdcfiles. Instead, connect documentation MCP servers so Composer fetches only the relevant sections on-demand.
This keeps your prompt window lean and ensures Composer generates answers in seconds rather than stalling on massive context prefills.