Borrowing it
Nothing to install: this file belongs to lktiep/cortex-hub. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lktiep/cortex-hub/master/.cursorrulesgit clone --depth 1 https://github.com/lktiep/cortex-hubWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/lktiep/cortex-hub/cursorrules)<a href="https://agentmods.dev/rules/lktiep/cortex-hub/cursorrules"><img src="https://agentmods.dev/badge/rules/lktiep/cortex-hub/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/lktiep/cortex-hub/cursorrules"><img src="https://agentmods.dev/badge/rules/lktiep/cortex-hub/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00486 | $0.00486 |
| Opus 5.5 | $0.00194 | $0.00194 |
| Sonnet 5.5 | $0.00097 | $0.00097 |
| Haiku 4.5 | $0.00049 | $0.00049 |
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 yesterday.
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.
What it actually says
Cortex Hub — Auto MCP (MANDATORY)
At the START of every conversation:
- Call
cortex_session_startwith repo: "https://github.com/lktiep/cortex-hub.git", agentId: "cursor", mode: "development" cortex_knowledge_search+cortex_memory_searchonce — recall what the last session decided
Finding code — start from what you know, not from a fixed ladder
| You already know | Start with |
|---|---|
| A symbol name | cortex_code_context(name) — exact graph lookup, plus callers/callees/imports in one call |
| Only the behaviour | cortex_code_search(query, limit: 10) — ranked hybrid search, one call |
| An exact literal (env var, config key, error string) | rg / grep — this is not a ranking problem |
| A relationship across files | cortex_cypher |
Search once, read all ten. On the cortex-hub index the target file is in the top 10 for 15/15 queries but at rank 1 for only 8/15 — so scan the whole result set, and never re-run a reworded version of the same query. Ask a different question or switch tool instead.
cortex_code_impact before editing something exported or shared. Knowledge and memory are
for errors and decisions, not for locating code.
Across repos: omit repo: to search every repo in the organization of this project
(the client + server + tools of one product). Projects are isolated per organization, so it never reaches
another one. Running sessions in two organizations with one API key? Pass org:.
Error Protocol
cortex_knowledge_searchfirst — someone may have solved thiscortex_memory_search— you may have seen it before- Fix the error
- Non-obvious fixes:
cortex_knowledge_store
Quality Gates
Run verify commands from .cortex/project-profile.json, then cortex_quality_report.
After a push: cortex_code_reindex. End session: cortex_session_end with sessionId and summary.
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.
- yesterday Changed · -1 lines · -19 tokens per session a9aeff8135a4
- 24d ago Changed · +15 lines · +257 tokens per session a652c95e50ff
- 1mo ago First seen · 23 lines · 248 tokens per session scan A 4881cd7f4736
cursorrules is a cursor rule published in the GitHub repository lktiep/cortex-hub (93 stars, last pushed today), licensed MIT. It adds 486 tokens to every session, about $0.0019 per session on Opus 5.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-30.
Other cursor rules, from other repositories
compat-ui
A set of front-end interaction rules for Compat, a compatibility layer for Wails and WebView applications. It defines how controls, menus, dialogs, focus, and outside-click behavior should work.
codesynapse-cli
Use this rule to answer codebase architecture questions, trace dependencies, find callers/callees, calculate blast radius, and explore the code graph. Triggers on: "how does X work", "what handles Y", "where is Z defined", "explain the mechanism", "who calls", "blast radius", "shortest path", "trace request flow"…
open-agent-fabric
Canonical Open Agent Fabric development rules.
codesift
CodeSift MCP tool usage rules.
architectural-and-structural-rules
The project follows a layered architecture with clear separation of concerns.
api-design-and-implementation
API Design and Implementation Rules for FastAPI Endpoints.