Most "second brains" are graveyards with good intentions. You capture notes, tag a few things, and then never open the vault again-because a vault by itself only stores. It does not think, connect, resurface, or act. The 2026 shift is not another plugin or theme. It is handing the intelligence layer to an AI agent that lives inside your vault and works with the plain Markdown files you already own.
That agent is Claude Code-Anthropic’s command-line AI tool that reads your local file system, writes and edits files, and executes multi-step tasks autonomously. Paired with Obsidian, which stores every note as a local Markdown file, it forms something the plugin ecosystem never could: a system that compounds. Every session, Claude reads your notes before you type a word. The more you use it, the more context it has-your projects, your voice, your working patterns.
This guide walks through the full setup, from the foundation to working automation loops, using the tools that shipped in 2026 and the patterns the community has already validated.
Why This Combination Works (and Why It Did Not Before 2026)
Obsidian’s decision to store notes as plain text is the technical enabler. Claude Code can read, write, and search Markdown files directly-no proprietary API, no format conversion, no rate-limited export. The second enabler is the official Obsidian CLI, released in v1.12 in February 2026. It lets an external agent control a running Obsidian instance from the terminal: create notes, search, move files, manage tags, and query links across 130+ commands.
Before the CLI, integrations relied on fragile community bridges. Now the agent can talk to the same vault you see on screen, while you are using it. That is the difference between an AI that summarizes a folder and an AI that operates your knowledge system.
The Foundation: Three Things to Set Up Before You Touch Claude
1. Structure Your Vault for Machine Readability
Claude is not a human reader. It does not skim, infer, or tolerate chaos gracefully. How you organize the vault determines how useful the agent can be. Four principles carry most of the weight:
- Consistent YAML frontmatter on every note. Date, tags, project, status. Claude filters and queries this metadata directly.
- Atomic notes. One idea per note. Long documents are harder to retrieve and link reliably.
- A clear folder structure such as
/Projects,/People,/Daily Notes,/Resources,/Archive. Claude needs a mental map. - Obsidian wikilinks (
[[like this]]) rather than Markdown links. Backlinks create a graph the agent can traverse to understand relationships.
A minimal note looks like this:
---
date: 2026-06-10
tags: [project, research]
status: active
project: "[[Continual Learning Survey]]"
---
2. Write Your CLAUDE.md Manifest
CLAUDE.md is the master schema Claude reads at the start of every session. It tells the agent how the vault is structured, what conventions to follow, and what it must never do. A working manifest covers four sections: vault map (folder purposes), syntax rules (wikilinks, frontmatter requirements, table preferences), workflow commands (what /morning, /recap, or /digest should do), and guardrails (do not restructure folders without permission, do not create files in the vault root, do not overwrite existing content-append only).
The obrain project ships a ready-made CLAUDE.md and a structure that works out of the box: daily/, weekly/, projects/, refs/, drop/, memory.md, and todo.md. Start there if you want to see a schema that has been tested.
3. Install the Obsidian CLI
The official CLI ships with the Obsidian installer from v1.12 onward. Enable it in Settings → General → CLI. The binary communicates with a running Obsidian desktop instance via IPC, so Obsidian must be open when Claude Code invokes a command. For older setups or cross-platform convenience, notesmd-cli remains the de facto community standard for mass renaming, frontmatter editing, and file movement without keeping Obsidian in focus.
The Integration: Three Routes from Zero to Working
There is no single "correct" integration. The right route depends on how much control you want and how much setup you tolerate.
Route A: The One-Command Installer (obrain)
If you want the fastest path, obrain clones a preconfigured brain, installs Claude Code if needed, drops in slash commands, and points Claude at your vault. It runs entirely locally, requires no API keys, and is re-runnable against an existing vault-it adds what is missing and backs up your CLAUDE.md without touching your notes.
npx obrain
# or
git clone https://github.com/wozacosta/obrain.git && cd obrain && ./setup.sh
You get /brain-setup, /morning, /weekly, /recap, /todo, /digest, and /import-vault out of the box.
Route B: MCP Server (Read/Write Control)
The Model Context Protocol (MCP) is the plumbing layer. An MCP server exposes your vault as a set of tools-read, write, search, append-that Claude Code can call. The @nhangen/obsidian-mcp package is the most mature implementation, with a setup tour that finds your vault, configures Claude Code and Claude Desktop, and enables writing with a single flag.
Manual registration:
claude mcp add -s user obsidian -- \
npx -y @nhangen/obsidian-mcp \
--vault /absolute/path/to/vault \
--daily-path Daily/ \
--write
Use --read instead of --write for a read-only agent. eon is a heavier alternative with 25 MCP tools, a semantic memory layer (ChromaDB + SQLite), a knowledge graph, and episodic session memory. It requires Bun and registers with claude mcp add eon -s user -- bunx @demgun/eon@latest.
Route C: Obsidian Plugin (Sidebar Chat and Inline Editing)
If you want Claude inside Obsidian rather than in a terminal, two plugins lead in 2026. obsidian-claude-code embeds a chat sidebar, gives Claude vault read/write/search access, and supports custom Skills-specialized modes stored in .claude/skills/ that teach Claude repeatable workflows. Claudian goes further: it embeds AI coding agents (Claude Code, Codex, Grok) with inline diff previews, slash commands, @mentions for vault files, a plan mode (Shift+Tab), and native MCP server integration. Claudian requires Obsidian v1.7.2+ and is desktop-only.
The plugin route is the most comfortable for daily use. The MCP route is the most scriptable. You can run both simultaneously-they share the same underlying files.
The Automation Loops: Four Recipes That Actually Compound
A "setup" is not valuable until it does something without you. These four loops represent the highest-leverage patterns the community has validated in 2026.
Recipe 1: The Session Digest (Never Lose Context Again)
The problem: You work with Claude for three hours, solve a hard problem, close the terminal-and tomorrow you cannot remember why you made the decisions you made.
The loop: A Claude Code Stop hook fires when a session ends. It writes a structured note into sessions/YYYY-MM-DD.md containing the goal, outcome, key decisions, files touched, and next steps. The research-assistant-ai-workflow project ships this as a reproducible pattern. The digest is append-only, so new entries sit at the top and nothing you wrote before is overwritten.
The payoff: Every future session can load the last few digests and know exactly where you left off. The "where did I leave off?" search disappears.
Recipe 2: The Literature Review Pipeline
The problem: You have 40 PDFs, 80 notes, and no synthesis. Reading them all again is not an option.
The loop: The vault is structured as Papers/ (one note per source), Knowledge/ (concept notes), and a Literature Canvas (a visual map). Claude Code ingests Zotero metadata or raw PDFs, generates structured summaries with key findings, methodology, and relevance, and writes wikilinks between papers that share concepts. A /obsidian-review or /literature-review skill synthesizes the project-linked review from the notes already in the vault.
The claude-scholar pipeline automates the full sequence: ideation → literature review → citation verification → paper writing. It is semi-automated by design-you approve the synthesis before it becomes a note.
Recipe 3: The Vault Auditor (Self-Healing Knowledge Base)
The problem: Vaults rot. Broken links, orphaned notes, contradictory claims, tags that meant something two years ago and nothing today. Manual cleanup is the task you never do.
The loop: A Vault Auditor skill (/vault-insights) runs a periodic audit: it checks for contradictions across notes, broken wikilinks, orphaned files with no backlinks, and latent cross-cutting insights implied by the graph structure. A WIP Dashboard skill (/wip) generates a Kanban board from the vault, GitHub, and external project tools.
This is the loop that turns maintenance from a chore into a background process. The agent reads the graph you built; you read the audit it produces.
Recipe 4: The Project Documentation Skill (/obsidian)
The problem: Project documentation is always stale because writing it is disconnected from doing the work.
The loop: The /obsidian skill follows a five-stage workflow: detect the current project, analyze the codebase (package files, directory tree, git log), ask what you want (update info, write a dev log, refresh key files, generate an architecture canvas), execute the writes into the vault, and report what changed. The vault uses a Johnny Decimal folder system (10-19 Projects, 20-29 Writing, 30-39 Knowledge) so Claude can locate and create files deterministically rather than guessing at names.
The architecture canvas is generated as a native .canvas file with color-coded layers: entry points (red), state/config (orange), data/persistence (yellow), UI/output (green), API/external services (cyan). You open Obsidian and the diagram is already there.
The Skills Layer: Teaching Claude Your Workflows
Skills are the difference between an agent that can read your vault and an agent that works in it. A skill is a folder in .claude/skills/ containing a SKILL.md file with a name, description, and instructions. The built-in Skill Creator in the obsidian-claude-code plugin lets you describe a workflow in plain language and generates the skill for you.
A minimal skill looks like this:
---
name: daily-note
description: Create daily notes with consistent formatting.
---
# Daily Note Creator
Create daily notes with:
- Date header
- Morning intentions
- Tasks for today
- Evening reflection
High-value skills to build first, based on the patterns that recur across the 2026 ecosystem:
/morning- open today’s note, check what is new, ask what to focus on./weekly- review daily notes, find patterns, plan next week./recap- capture what happened in the session and file it./digest- read a folder of PDFs, docs, and images and write Markdown summaries./vault-insights- audit contradictions, broken links, and latent insights.
The skill specification is portable across agents. A skill written for Claude Code works with Codex CLI and OpenCode, which means you are not locked into a single vendor’s workflow.
Cost and Privacy: What This Actually Runs On
The system runs locally. Claude Code reads and writes files on your machine; the Obsidian vault never leaves your disk unless you send content to a model provider. The research-assistant-ai-workflow reference setup reports $0.02–$0.05 per day in LLM costs using OpenRouter (Gemini Flash) for cheap judgment calls, with Claude Code as the primary agent. obrain requires no API keys at all if you use a Claude subscription.
The privacy trade-off is explicit: the agent sees your vault. If that is unacceptable for certain folders (financial records, credentials, private journals), exclude them in CLAUDE.md with an explicit "do not read or write" guardrail, or keep a separate vault for sensitive material. The system is only as private as the instructions you give it.
The 2026 Difference
The plugin era of Obsidian automation produced tools that helped you take better notes. The Claude Code era produces a system that takes notes with you, connects them for you, and audits them before you notice they have rotted. The vault is still plain Markdown. The agent is the new layer.
Start with the foundation-frontmatter, folders, CLAUDE.md, and the Obsidian CLI. Pick one integration route and one automation loop. Run it for a week. Then add the second loop. The system compounds not because the model is brilliant, but because every session leaves a trace, every trace becomes context, and every piece of context makes the next session cheaper, faster, and more useful than the last.