# claude-obsidian: Self-Organizing AI Second Brain for Obsidian + Claude Code

claude-obsidian: persistent compounding wiki vault for Claude Code and Obsidian

[![GitHub stars](https://img.shields.io/github/stars/AgriciDaniel/claude-obsidian?style=flat&color=e8734a)](https://github.com/AgriciDaniel/claude-obsidian/stargazers) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Release](https://img.shields.io/github/v/release/AgriciDaniel/claude-obsidian?color=blue)](https://github.com/AgriciDaniel/claude-obsidian/releases/latest) [![CI](https://github.com/AgriciDaniel/claude-obsidian/actions/workflows/test.yml/badge.svg)](https://github.com/AgriciDaniel/claude-obsidian/actions/workflows/test.yml) [![Claude Code](https://img.shields.io/badge/Claude_Code-plugin-8B5CF6)](https://code.claude.com/docs/en/discover-plugins) [![Obsidian](https://img.shields.io/badge/Obsidian-v1.9.10%2B-7c3aed)](https://obsidian.md) [![Agent Skills](https://img.shields.io/badge/Agent%20Skills-Compatible-blue)](https://agentskills.io) [![Community](https://img.shields.io/badge/AI%20Marketing%20Hub-Pro%20community-purple)](https://www.skool.com/ai-marketing-hub-pro) [![Blog Post](https://img.shields.io/badge/Deep_Dive-Blog_Post-22c55e)](https://agricidaniel.com/blog/claude-obsidian-ai-second-brain) Claude + Obsidian knowledge companion and self-organizing AI second brain. A running AI notetaker that builds and maintains a persistent, compounding wiki vault. Every source you add gets integrated. Every question you ask pulls from everything that has been read. Knowledge compounds like interest. Open-source Obsidian AI plugin for AI note-taking, personal knowledge management (PKM), second-brain workflows, and a private Notion alternative. **15 Claude Code skills**, multi-agent support, multi-writer safe (v1.7+), first-class methodology modes (LYT / PARA / Zettelkasten / Generic via v1.8), and the 10-principle thinking framework (v1.9). Based on [Andrej Karpathy's LLM Wiki pattern](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f). > **Two ways to get this skill.** Pick the one that fits how you work. > > - 🌐 **Public open-source build** (latest: `v1.9.2`, recommended): the free, MIT-licensed release on [Daniel Agrici's GitHub](https://github.com/AgriciDaniel/claude-obsidian). Open to anyone, no membership required. Ships everything: v1.7 Compound Vault, v1.8 methodology modes, and the v1.9 thinking framework plus audit hardening. > - ⚡ **AI Marketing Hub Pro**: the same MIT-licensed core, plus earliest access to in-development features before they land here, direct collaboration, and the [Pro community](https://www.skool.com/ai-marketing-hub-pro). Pro members install from the [AI Marketing Hub](https://github.com/AI-Marketing-Hub) org mirror (swap note under Option 2 below). > ✨ **v1.7 "Compound Vault" refoundation**: Obsidian CLI as default transport, hybrid retrieval (contextual prefix + BM25 + cosine rerank per [Anthropic's Sept 2024 research](https://www.anthropic.com/news/contextual-retrieval)), per-file advisory locking that closes a latent multi-writer corruption hole, and substrate alignment with [kepano/obsidian-skills](https://github.com/kepano/obsidian-skills). Full guide: [docs/compound-vault-guide.md](docs/compound-vault-guide.md). Optional [DragonScale Memory](docs/dragonscale-guide.md) extension (log folds, deterministic page addresses, semantic tiling lint, boundary-first autoresearch). --- ## Contents - [What It Does](#what-it-does) - [Why claude-obsidian?](#why-claude-obsidian) - [Quick Start](#quick-start) - [Commands](#commands) - [`/wiki`: setup, scaffold, continue](#wiki-setup-scaffold-continue) - [`/autoresearch`: autonomous research loop](#autoresearch-autonomous-research-loop) - [`/canvas`: visual layer](#canvas-visual-layer) - [`/think`: 10-principle thinking loop](#think-10-principle-thinking-loop) - [Methodology Modes (v1.8+)](#methodology-modes-v18) - [Vault Use Cases (v1.0+)](#vault-use-cases-v10) - [Cross-Project Knowledge Base](#cross-project-knowledge-base) - [What Gets Created](#what-gets-created) - [Architecture](#architecture) - [MCP Setup (Optional)](#mcp-setup-optional) - [Plugins](#plugins) - [CSS Snippets](#css-snippets-auto-enabled-by-setup-vaultsh) - [Banner Plugin](#banner-plugin) - [File Structure](#file-structure) - [AutoResearch Configuration](#autoresearch-programmd) - [Seed Vault](#seed-vault) - [Companion: claude-canvas](#companion-claude-canvas) - [FAQ](#faq) - [Requirements](#requirements) - [Uninstall](#uninstall) - [Contributing](#contributing) - [Related Projects](#related-projects) - [Community](#community) - [License](#license) --- ## What It Does ### [YouTube Demo](https://www.youtube.com/watch?v=a2hgayvr-H4)

claude-obsidian welcome canvas: visual demo of the wiki vault workflow

You drop sources. Claude reads them, extracts entities and concepts, updates cross-references, and files everything into a structured Obsidian vault. The wiki gets richer with every ingest. You ask questions. Claude reads the hot cache (recent context), scans the index, drills into relevant pages, and synthesizes an answer. It cites specific wiki pages, not training data. You lint. Claude finds orphans, dead links, stale claims, and missing cross-references. Your wiki stays healthy without manual cleanup. At the end of every session, Claude updates a hot cache. The next session starts with full recent context, no recap needed.

Obsidian graph view showing the claude-obsidian knowledge graph with color-coded nodes for concepts, entities, and sources Wiki Map canvas: visual hub linking domain pages, concepts, and entities

--- ## Why claude-obsidian? Most Obsidian AI plugins are chat interfaces. They answer questions about your existing notes. claude-obsidian is a knowledge engine. It creates, organizes, maintains, and evolves your notes autonomously. | Capability | claude-obsidian | Smart Connections | Copilot | |---|---|---|---| | **Auto-organize notes** | ✅ Creates entities, concepts, cross-references | ❌ | ❌ | | **Contradiction flagging** | ✅ `[!contradiction]` callouts with sources | ❌ | ❌ | | **Session memory** | ✅ Hot cache persists between conversations | ❌ | ❌ | | **Vault maintenance** | ✅ 8-category lint (orphans, dead links, gaps) | ❌ | ❌ | | **Autonomous research** | ✅ 3-round web research with gap-filling | ❌ | ❌ | | **Methodology modes** | ✅ LYT / PARA / Zettelkasten / Generic (first-class) | ❌ | ❌ | | **Thinking framework** | ✅ 10-principle loop as invocable skill | ❌ | ❌ | | **Multi-model support** | ✅ Claude, Gemini, Codex, Cursor, Windsurf | ❌ Claude only | ✅ Multiple | | **Visual canvas** | ✅ Via [claude-canvas](https://github.com/AgriciDaniel/claude-canvas) | ❌ | ❌ | | **Multi-writer safe** | ✅ Per-file advisory locks (v1.7+) | ❌ | ❌ | | **Query with citations** | ✅ Cites specific wiki pages | ✅ Cites similar notes | ✅ Cites notes | | **Batch ingestion** | ✅ Parallel agents for multiple sources | ❌ | ❌ | | **Open source** | ✅ MIT | ✅ MIT | âš ī¸ Freemium | > 📖 **Deep dive:** [I Turned Obsidian Into a Self-Organizing AI Brain](https://agricidaniel.com/blog/claude-obsidian-ai-second-brain). Full breakdown with data visualizations, market context, and workflow demos. --- ## Quick Start > â„šī¸ The commands below install the **public open-source build** from `AgriciDaniel/claude-obsidian` (recommended, no membership needed). **AI Marketing Hub Pro members** who want early access to in-development features can swap `AgriciDaniel/claude-obsidian` for `AI-Marketing-Hub/claude-obsidian` (Option 2 also swaps the plugin slug; see the note under that option). ### Option 1: Clone as vault (recommended, full setup in 2 minutes) ```bash git clone https://github.com/AgriciDaniel/claude-obsidian cd claude-obsidian bash bin/setup-vault.sh ``` Open the folder in Obsidian: **Manage Vaults → Open folder as vault → select `claude-obsidian/`**. Open Claude Code in the same folder. Type `/wiki`. > â„šī¸ `setup-vault.sh` configures `graph.json` (filter + colors), `app.json` (excludes plugin dirs), and `appearance.json` (enables CSS). Run it once before the first Obsidian open. You get the fully pre-configured graph view, color scheme, and wiki structure out of the box. --- ### Option 2: Install as Claude Code plugin Plugin installation is a two-step process. First add the marketplace catalog, then install the plugin from it. > â„šī¸ **Which version are you installing?** > > - **Public (recommended, no membership):** the commands below install the free, MIT-licensed release from [`AgriciDaniel/claude-obsidian`](https://github.com/AgriciDaniel/claude-obsidian). Nothing to sign up for. > - **AI Marketing Hub Pro member?** For early access to in-development features, swap `AgriciDaniel/claude-obsidian` for `AI-Marketing-Hub/claude-obsidian` and the plugin slug `claude-obsidian@agricidaniel-claude-obsidian` for `claude-obsidian@ai-marketing-hub-claude-obsidian`. The org mirror requires an authenticated `gh auth login` (or GitHub PAT) with access to the `AI-Marketing-Hub` org. If `/plugin marketplace add` returns a 404, your account is not in the org yet. DM in the [Skool community](https://www.skool.com/ai-marketing-hub-pro) to get added. ```bash # Step 1: add the marketplace claude plugin marketplace add AgriciDaniel/claude-obsidian # Step 2: install the plugin claude plugin install claude-obsidian@agricidaniel-claude-obsidian ``` In any Claude Code session: `/wiki`. Claude walks you through vault setup. To check it worked: ```bash claude plugin list ``` --- ### Option 3: Add to an existing vault Copy `WIKI.md` into your vault root. Paste into Claude: ``` Read WIKI.md in this project. Then: 1. Check if Obsidian is installed. If not, install it. 2. Check if the Local REST API plugin is running on port 27124. 3. Configure the MCP server. 4. Ask me ONE question: "What is this vault for?" Then scaffold the full wiki structure. ``` --- ## Commands | You say | Claude does | |---------|------------| | `/wiki` | Setup check, scaffold, or continue where you left off | | `ingest [file]` | Read source, create 8-15 wiki pages, update index and log | | `ingest all of these` | Batch process multiple sources, then cross-reference | | `what do you know about X?` | Read index, drill into relevant pages, synthesize answer | | `/save` | File the current conversation as a wiki note | | `/save [name]` | Save with a specific title (skips the naming question) | | `/autoresearch [topic]` | Run the autonomous research loop: search, fetch, synthesize, file | | `/canvas` | Open or create the visual canvas, list zones and nodes | | `/canvas add image [path]` | Add an image (URL or local path) to the canvas with auto-layout | | `/canvas add text [content]` | Add a markdown text card to the canvas | | `/canvas add pdf [path]` | Add a PDF document as a rendered preview node | | `/canvas add note [page]` | Pin a wiki page as a linked card on the canvas | | `/canvas zone [name]` | Add a new labeled zone to organize visual content | | `/canvas from banana` | Capture recently generated images onto the canvas | | `/think [problem]` | Apply the 10-principle thinking loop to a non-trivial problem | | `lint the wiki` | Health check: orphans, dead links, gaps, suggestions | | `update hot cache` | Refresh hot.md with latest context summary | > ✨ **Want more?** [claude-canvas](https://github.com/AgriciDaniel/claude-canvas) adds 12 templates, 6 layout algorithms, AI image generation, presentations, and full canvas orchestration. Install both, they complement each other. ### `/wiki`: setup, scaffold, continue First-run setup walks through: 1. Check Obsidian is installed 2. Check Local REST API plugin (if MCP transport desired) 3. Ask "What is this vault for?" (one question, drives the scaffold) 4. Scaffold per chosen [Methodology Mode](#methodology-modes-v18) and [Vault Use Case](#vault-use-cases-v10) 5. Seed `hot.md`, `index.md`, `log.md`, `wiki/meta/dashboard.base` 6. Suggest the first ingest On subsequent runs, `/wiki` continues where you left off. It checks vault health, surfaces stale claims, and shows recent activity from `hot.md`. ### `/autoresearch`: autonomous research loop Configurable program at [`skills/autoresearch/references/program.md`](skills/autoresearch/references/program.md): - Max rounds (default 3) - Max pages per session (default 15) - Source preference rules (academic, official docs, news) - Confidence scoring + domain constraints The loop: 1. **Round 1, broad search**: decompose into 3-5 angles, run 2-3 queries per angle, fetch top 2-3 results per angle 2. **Round 2, gap fill**: targeted searches for contradictions and missing pieces 3. **Round 3, synthesis check** (optional): one more pass if major gaps remain 4. **Filing**: synthesis page + source pages + entity pages + concept pages, all cross-referenced URL validation + content sanitization applied per the `## Web egress hygiene (v1.8.2+)` policy in [`skills/autoresearch/SKILL.md`](skills/autoresearch/SKILL.md): rejects `file://` / `javascript:` / RFC1918 hosts, strips `