swamr-obsidian-brain

swamr-obsidian-brain is a cursor rule for Cursor from Vedthakar/swamr. It costs 62 tokens per session (1,645 once invoked), scanned A, original, MIT.

A persistent project knowledge base stored as notes in an Obsidian vault. Obsidian is a note-taking application; the vault keeps architecture decisions, requirements, risks, and previous work available across coding sessions.

In plain words
What is it for?
Use it to record project goals, technology choices, architecture, requirements, task dependencies, risks, and summaries from completed work.
Why use it?
Coding agents can lose context when a task moves between phases or sessions. Shared notes preserve decisions and project knowledge so later work does not have to start from scratch.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to record project goals, technology choices, architecture, requirements, task dependencies, risks, and summaries from completed work.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/vedthakar/swamr/swamr-obsidian-brain
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/Vedthakar/swamr

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 swamr-obsidian-brain

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/vedthakar/swamr/swamr-obsidian-brain"><img src="https://agentmods.dev/badge/rules/vedthakar/swamr/swamr-obsidian-brain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,645 The whole file, excluding the scripts and references it only reads on demand.
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.00062 $0.01645
Opus 5.5 $0.00025 $0.00658
Sonnet 5.5 $0.00012 $0.00329
Haiku 4.5 $0.00006 $0.00164

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

Security

Grade A, and why

swamr-obsidian-brain 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 11d 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.

rules/swamr-obsidian-brain.mdc · 202 lines

How it starts

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

🧠 Swamr Obsidian Brain

You manage the project's Obsidian vault — the persistent second brain that ensures no agent ever loses context, no matter how many phases or sessions the build spans.

Vault Location

The Obsidian vault lives at swamr/brain/ inside the project directory. It is initialized by the orchestrator at project start and opened in Obsidian alongside Cursor.

Vault Structure

swamr/brain/
├── 00-project/
│   ├── overview.md              # Project description, goals, constraints
│   ├── tech-stack.md            # Chosen technologies and why
│   ├── architecture.md          # System architecture decisions
│   └── glossary.md              # Domain terms and definitions
├── 01-planning/
│   ├── requirements.md          # Full requirements breakdown
│   ├── task-tree.md             # Master task list with dependencies
│   ├── risk-register.md         # Known risks and mitigations
│   └── decisions/
│       └── ADR-001-auth.md      # Architecture Decision Records
├── 02-foundation/
│   ├── db-schema.md             # Database schema with explanations
│   ├── api-design.md            # API route design and contracts
│   ├── component-tree.md        # UI component hierarchy
│   └── auth-flow.md             # Authentication flow documentation
├── 03-build/
│   ├── phase-log.md             # Running log of what was built per phase
│   ├── task-outputs/
│   │   ├── F1-scaffold.md       # What each task produced
│   │   ├── B1-dashboard.md
│   │   └── ...
│   └── issues/
│       ├── bug-001.md           # Issues found during build
│       └── ...
├── 04-testing/
│   ├── test-plan.md             # Testing strategy
│   ├── qa-results.md            # Aggregated QA results
│   └── coverage-gaps.md         # Known gaps in test coverage
├── 05-hardening/
│   ├── security-audit.md        # Security findings
│   ├── performance-report.md    # Performance benchmarks
│   ├── a11y-report.md           # Accessibility audit
│   └── legal-checklist.md       # Legal compliance status
├── 06-launch/
│   ├── deploy-runbook.md        # Deployment steps
│   ├── post-launch-checklist.md # Post-launch verification
│   └── handoff.md               # Final handoff documentation
├── templates/
│   ├── task-output.md           # Template for task completion notes
│   ├── decision-record.md       # Template for ADRs
│   └── phase-summary.md         # Template for phase summaries
└── index.md                     # Vault homepage with links to everything

Read the full file on GitHub · 202 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. 11d ago First seen · 202 lines · 62 tokens per session scan A 402b25d890c0

Subscribe to this mod's changes

swamr-obsidian-brain is a cursor rule published in the GitHub repository Vedthakar/swamr (12 stars, last pushed 10d ago), licensed MIT. It adds 62 tokens to every session and 1,645 once invoked, about $0.0002 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-10-04.