— Save This
● Live · May 2026
— A Learnepreneur guide

Give Claude Code a memory that actually sticks.

"Two files, one plugin, and a vault structure that turns Obsidian into Claude's persistent brain."

Read
4 min.
Perform
20 min.
Sections
08
Steps
04

— 01 / Intro

Claude Code starts blind.

Claude Code starts every session from zero. No memory of yesterday's bug, no memory of last week's architecture call, no idea what the codebase looks like. You explain everything, every time.

The fix is two files and one plugin. A CLAUDE.md file Claude reads at startup, plus an Obsidian vault Claude can search across every session. Set it up once and Claude knows your project the next time you open the terminal.

— 02 / Step 01 — The setup

Install and connect.

Open Obsidian → Settings → Community Plugins → search "Claude Code MCP" → install and enable the one by iansinnott. The plugin starts a WebSocket server on port 22360 the moment you enable it.

Now connect Claude Code to your vault. Open your terminal and run:

Terminal
claude

Then inside Claude Code, run the IDE selector:

Inside Claude Code
/ide

Pick Obsidian from the list. Claude finds the running server via a lock file in your Claude config directory. No manual JSON config needed. That's it. Claude can now read, write, and search your vault.

— 03 / Step 02 — CLAUDE.md

The file Claude reads at every session start.

CLAUDE.md is the file Claude Code reads at the start of every session. Drop one in any project root and it loads automatically. Treat it like a briefing for someone joining your team mid-sprint.

A starter you can paste and edit:

CLAUDE.md template
# Project Context
Stack: Next.js 14, TypeScript, Supabase, Vercel
Repo: ~/projects/my-app

# Standing Rules
- Always TypeScript, never plain JS
- Prefer server components over client components
- Check 02-Decisions/ before changing architecture
- Log every session summary to 03-Daily/

# Current Sprint (week of [date])
- [ ] Auth flow refactor (see 01-Projects/auth.md)
- [ ] Fix mobile nav regression
- [ ] Write API docs for /payments endpoint

Save this as CLAUDE.md at your project root. Claude reads it automatically every session.

Two things to know. First, Claude loads CLAUDE.md as context, not enforced rules. The more concrete the instruction, the more consistently Claude follows it. Second, you can drop one at ~/.claude/CLAUDE.md for instructions that apply across every project on your machine.

— 04 / Step 03 — Vault structure

Treat the vault like departments.

How you organize your vault decides how useful it is. Give Claude a predictable place to look for context, decisions, and history.

Folder structure
00-Inbox/      Raw notes Claude dumps here. You triage later.
01-Projects/   Per-project folders. Each has its own CLAUDE.md.
02-Decisions/  Architecture decisions. One per file. Date, options, outcome.
03-Daily/      Auto-generated session logs. Your audit trail.
04-Resources/  Code patterns, API summaries, reusable snippets.
CLAUDE.md      The standing orders Claude reads every session.

The folder names don't matter. The discipline does. Once you commit to a structure, Claude can find anything you've written across every session.

— 05 / The compound loop

How memory compounds.

The compound effect is the actual prize. It works like this:

— 01

Session starts

Claude reads CLAUDE.md and any project files you reference. You explain nothing.

— 02

You work

Claude logs decisions, bugs, code patterns, and gotchas to Obsidian in real time. No manual note-taking.

— 03

Session ends

Everything Claude learned is in the vault. Tomorrow it picks up where it left off, not where you left it.

— 04

You review weekly

Prune outdated notes. Promote key learnings into CLAUDE.md itself. You're the editor. Claude is the writer.

— 06 / Avoid these

Common traps.

  1. Don't paste 2,000 lines of context into the chat to "remind" Claude. That's a workaround, not memory. Use CLAUDE.md.
  2. Don't stuff every fact about your project into CLAUDE.md. Keep it to facts that matter every session. Move detail into 01-Projects/ or 04-Resources/ so Claude can fetch it on demand.
  3. Don't skip git on your vault. If Claude corrupts a note, git checkout brings it back instantly.
  4. Don't expect auto-discovery to fix a config problem. If /ide doesn't show Obsidian, the plugin isn't running. Restart Obsidian first.
  5. Don't write CLAUDE.md once and forget it. Update it weekly with what you learned. The vault gets smarter only if you treat it that way.
— 07 / The closing principle

You are the editor.

" You are the editor. Claude is the writer. Memory only compounds if you maintain it. "

Treat the vault like documentation that future you will read. Claude writes the first draft. You decide what stays.

— 08 / Starter asks

Try one today.

Four ways to put this to work before you close this tab:

  1. Set up CLAUDE.md for your current project in 5 minutes.
  2. Symlink your code repo's docs folder into 01-Projects/ . Claude sees both at once.
  3. Add a single line to CLAUDE.md: "At session end, write a summary to 03-Daily/YYYY-MM-DD.md." Every session leaves a trail.
  4. Try /memory inside Claude Code to view what it's already saved on its own.
— You're done

If this saved you time, send it to one person who'd use it.

Time spent 0 min
Sections complete 0 / 08
Read 0%
Series Save This · 15
Copied to clipboard