obsidian-memory

obsidian-memory is a cursor rule for Cursor from jmjava/obsidian-mcp. It costs 624 tokens per session, scanned A, original, MIT.

A set of rules for saving and retrieving durable engineering notes in a local Obsidian vault, a folder of linked Markdown notes.

In plain words
What is it for?
Use it before substantial work to read relevant project context, and after meaningful work to record sessions, decisions, and project updates.
Why use it?
It helps preserve project context, past decisions, and work history between coding sessions without relying on memory or repeated explanations.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it before substantial work to read relevant project context, and after meaningful work to record sessions, decisions, and project updates.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/jmjava/obsidian-mcp/obsidian-memory
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.

Clone the repo
git clone --depth 1 https://github.com/jmjava/obsidian-mcp

Made for: Cursor.

Wrote 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.

agentmods badge for obsidian-memory

README.md
[![agentmods](https://agentmods.dev/badge/rules/jmjava/obsidian-mcp/obsidian-memory/github.svg)](https://agentmods.dev/rules/jmjava/obsidian-mcp/obsidian-memory)
Your own site
<a href="https://agentmods.dev/rules/jmjava/obsidian-mcp/obsidian-memory"><img src="https://agentmods.dev/badge/rules/jmjava/obsidian-mcp/obsidian-memory/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.

agentmods 80×15 button for obsidian-memory

Your own site · 80×15
<a href="https://agentmods.dev/rules/jmjava/obsidian-mcp/obsidian-memory"><img src="https://agentmods.dev/badge/rules/jmjava/obsidian-mcp/obsidian-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 624 This file is loaded in full into every session.
When invoked 624 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00624 $0.00624
Opus 5.5 $0.00250 $0.00250
Sonnet 5.5 $0.00125 $0.00125
Haiku 4.5 $0.00062 $0.00062

Measured 23d ago against content hash 6489af1b63b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

obsidian-memory 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 23d 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.

.cursor/rules/obsidian-memory.mdc · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Obsidian Developer Memory

Use the obsidian-dev-memory MCP tools to keep durable engineering memory in the local Obsidian vault. Obsidian does not need to be running.

Before substantial work

Call get_project_context when existing project memory is likely to improve the work: continuing a feature, debugging a known area, making an architecture change, or answering "why is it like this?"

Do not call it for trivial edits.

After meaningful work

Call capture_work_session after a meaningful implementation, investigation, debugging session, migration, architecture change, or research task.

Do not create a memory entry for:

  • typo fixes
  • formatting-only changes
  • trivial comments
  • one-line mechanical edits

Prefer appending to today's session note over creating duplicate notes.

Durable decisions

Call record_decision when an architectural or engineering decision is made that future work should know about.

Examples:

  • selected authentication architecture
  • changed API boundaries
  • selected persistence mechanism
  • changed deployment strategy
  • chose one library over another for a durable reason

If a decision file with the same generated name already exists, the server adds a numeric suffix instead of overwriting.

Project state

Call update_project_state when the overall project state materially changes. Keep that file concise. It is current state, not a session log. The tool merges a patch: omitted fields keep existing sections, and unknown H2s survive.

When claiming, blocking, unblocking, or finishing a Next Steps, Agent Queue, or TODO/*.md item, prefer list_open_tasks, list_blocked_tasks, claim_task, block_task, unblock_task, and complete_task over rewriting the whole state by hand. Those tools preserve other Project State sections, may check a matching Agent Queue checkbox or update a matching TODO note (claim_task / complete_task only), and do not overwrite daily notes.

Memory lookup

Call search_memory before guessing about prior decisions. It searches project memory plus top-level TODO/*.md and Daily/*.md. Use read_note only for a specific vault-relative Markdown path.

Read the full file on GitHub · 77 lines

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. 23d ago Changed · +4 lines · +64 tokens per session 6489af1b63b2
  2. 1mo ago Changed · +2 lines · +137 tokens per session 1f453f0c27ce
  3. 2mo ago First seen · 71 lines · 423 tokens per session scan A 6a709cf3edfe

Subscribe to this mod's changes

obsidian-memory is a cursor rule published in the GitHub repository jmjava/obsidian-mcp (1 stars, last pushed 23d ago), licensed MIT. It adds 624 tokens to every session, about $0.0025 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-31.