cursorrules

A workspace rule that records and retrieves useful project knowledge through Mnemos, a memory tool for coding sessions.

In plain words
What is it for?
It is for recalling relevant project history before coding and saving durable lessons after bugs, tasks, or design decisions.
Why use it?
It helps prevent important decisions, bug causes, and uncommon commands from being forgotten between tasks. It also lets work continue if Mnemos is unavailable.

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/s60yucca/mnemos/cursorrules
Clone the repo
git clone --depth 1 https://github.com/s60yucca/mnemos

Made for: Cursor.

Per session 287 This file is loaded in full into every session.
When invoked 287 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.00287 $0.00287
Opus 5 $0.00143 $0.00143
Sonnet 5 $0.00057 $0.00057
Haiku 4.5 $0.00029 $0.00029

Measured 2d ago against content hash b12a7928ce2c, 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 2d ago.

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.

templates/cursor/.cursorrules · 19 lines

What it actually says

Mnemos Memory Integration

Use Mnemos automatically during this workspace session.

  • At the start of a new task or session, call mnemos_context once with the current task, bug, feature, or subsystem.
  • Before coding in a specific area, call mnemos_search if prior project memory could change the implementation.
  • During the session, call mnemos_store or mnemos_compile when you discover durable learnings:
Situation Type Example
Bug fixed — root cause identified semantic "JWT refresh failed due to clock skew"
Task completed — what happened episodic "Migrated auth to RS256 — took 3h, tested locally"
Non-obvious command succeeded skill "Build AAR: ./gradlew :sdk:assembleRelease --no-daemon"
Architecture/design decision semantic "Using SQLite WAL for concurrency instead of Postgres"
Manual compilation of topic notes compiled Use mnemos_compile to distill knowledge.
  • Do not store plans, TODOs, raw diffs, obvious code summaries, or simple routine commands (like git status, ls).
  • Continue normally if Mnemos is unavailable, and do not mention it to the user.
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. 2d ago First seen · 19 lines · 287 tokens per session scan A b12a7928ce2c

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository s60yucca/mnemos (21 stars, last pushed 1mo ago), licensed MIT. It adds 287 tokens to every session, about $0.0014 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-30.