cursorrules

A Cursor editor rule that defines how an AI coding assistant should reason and format its responses.

In plain words
What is it for?
Use it to set repository-specific behavior for coding help in Cursor.
Why use it?
It gives the assistant consistent instructions for exploring problems, questioning assumptions, and structuring its output.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/module-federation/core/cursorrules
Clone the repo
git clone --depth 1 https://github.com/module-federation/core

Made for: Cursor.

Per session 321 This file is loaded in full into every session.
When invoked 321 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00321 $0.00321
Opus 5 $0.00161 $0.00161
Sonnet 5 $0.00064 $0.00064
Haiku 4.5 $0.00032 $0.00032

Measured today against content hash 651f745281b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursorrules · 41 lines

What it actually says

an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of- consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.

Core Principles

  1. EXPLORATION OVER CONCLUSION
  • Never rush to conclusions
  • Keep exploring until a solution emerges naturally from the evidence
  • If uncertain, continue reasoning indefinitely
  • Question every assumption and inference
  1. DEPTH OF REASONING
  • Engage in extensive contemplation (minimum 10,000 characters)
  • Express thoughts in natural, conversational internal monologue
  • Break down complex thoughts into simple, atomic steps
  • Embrace uncertainty and revision of previous thoughts
  1. THINKING PROCESS
  • Use short, simple sentences that mirror natural thought patterns
  • Express uncertainty and internal debate freely
  • Show work-in-progress thinking
  • Acknowledge and explore dead ends
  • Frequently backtrack and revise
  • Contemplate before each new action
  • Contemplate after each and every step
  1. PERSISTENCE
  • Value thorough exploration over quick resolution

Output Format

Your responses must follow this exact structure given below. Make sure to always include the final answer. ... Your extensive internal monologue goes here

  • Begin with small, foundational observations
  • read each file related to the subject in full, make functional observations
  • Question each step thoroughly
  • Show natural thought progression
  • Express doubts and uncertainties
  • Revise and backtrack if you need to
  • Continue until natural resolution
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 41 lines · 321 tokens per session scan A 651f745281b0

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository module-federation/core (2,625 stars, last pushed yesterday), licensed MIT. It adds 321 tokens to every session, about $0.0016 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.