SuperAPI AI Directory

claude-obsidian

Self-organizing AI second brain for Obsidian + Claude Code. Drop any source and Claude reads, links, and files it into one connected knowledge graph of plain Markdown you own. AI note-taking, personal knowledge management (PKM), and an open-source Notion alternative. Based on Karpathy's LLM Wiki pat

Open website

About this tool

claude-obsidian is a local-first knowledge system, aimed at Claude Code and hosts compatible with Agent Skills. It turns source material into Obsidian pages with citation links, answers questions from existing evidence in the knowledge base, and provides clear workflows for research, retrieval, maintenance, and visualization mapping. Your knowledge base always remains a plain directory of Markdown, JSON, and source files, not hidden in plugin caches, not locked in cloud databases, and not silently uploaded to models.

Purpose and Positioning The project is positioned as AI note-taking, personal knowledge management (PKM), and an open-source alternative to Notion, with design inspired by Andrej Karpathy's LLM Wiki pattern. It is organized around a repeatable loop: preserve sources, ground claims, connect knowledge, and reuse it again. Specifically, this includes: contextual capture, introducing local sources through a visible inbox, and preserving immutable, content-addressed copies before synthesis; grounding every important claim, with source and claim ledgers retaining authority, timeliness, support, contradiction, confidence, and review status; connecting what has been learned, building linked pages, indexes, Maps of Content, methodology-aware structures, and Obsidian Canvas views; and reusing the knowledge base for queries, research, retrieval, linting, and collapsing what is already known, rather than starting from scratch in every conversation. Output should remain usable with or without an agent: plain Markdown for portability, and Obsidian for navigation and visual exploration.

Main Capabilities

  • Local-first: the knowledge base belongs to the user and works as plain files; network egress is a separate, explicit decision.
  • Sources remain after summarization: notes point back to persistent source evidence; unsupported and contradictory claims remain visible.
  • Knowledge compounds deliberately: ingestion, querying, linting, retrieval, research, and summarization share the same source-aware model.
  • Parallel agents do not fight over the knowledge base: workers only return drafts, and a single orchestrator reviews and applies one recoverable transaction.
  • Capability claims are honest: optional tools are detected, maturity is declared, and missing adapters degrade explicitly rather than being simulated. The project explicitly states that it is not an automatic transcription recorder, a cloud sync service, a fact oracle, and cannot replace backups and source control.

Usage The safest first run uses a source code checkout and a separate user knowledge base. Every setup command that modifies state, before being appliedThe preview shows exactly what it does.

  1. Get the product: the checkout contains the product itself, which is not your knowledge base.
  2. Initialize a separate knowledge base: review the JSON plan and copy its approved_plan_sha256, then apply that exact operation. For an existing Obsidian knowledge base, use the non-destructive adopt workflow described in the installation guide.
  3. Start from the knowledge base: open the new directory in Obsidian, then run Claude Code from that directory using the local plugin. After that, place sources into inbox/ and invoke /claude-obsidian:wiki-ingest. Explicitly save answers with /claude-obsidian:save; ask the knowledge base questions with /claude-obsidian:wiki-query. For Codex, OpenCode, Gemini, or ZCode, preview and apply the portable skill links from the product checkout. Cursor and Windsurf use workspace-local skill discovery. Marketplace setup, each supported host, knowledge base adoption, upgrade, and uninstall steps are covered in the full installation guide.

Skill system The project contains 15 skills that form a system. The skills are small enough to invoke directly, and coordinated enough to share the same evidence, knowledge base selection, and change rules. The skills are divided into categories such as building and using the wiki, extending workflows, and reference skills. Claude Code exposes namespaced invocations, such as /claude-obsidian:wiki-lint; other hosts use their native Agent Skills invocation. Trigger phrases and exact contracts are located in each skills/<name>/SKILL.md.

Trust and transaction mechanism The product never treats the source checkout, plugin cache, or contributor state as the default knowledge base. The knowledge base is explicitly selected via CLAUDE_OBSIDIAN_VAULT, the nearest .claude-obsidian.json, or an unambiguous initialized ancestor. If the selection is uncertain, the command exits without writing. One logical knowledge operation is a recoverable transaction: read each target and record its expected SHA-256; have parallel workers return only drafts and evidence; merge the complete changes into one operation bundle; inspect the bundle, then apply it once; report the operation ID and exact changed paths. The core holds a knowledge base lock for one process lifetime, recordingBack up the log, use atomic replacement, and restore the previous state if the application cannot complete. A changed target is a conflict; never overwrite silently. Git checkpoints, destructive repairs, network egress, and spec research merges remain explicit operations.

Capability boundaries High-risk accepted claims require two independent sources. Unsupported or contradictory evidence remains visible; a grounded refusal is preferable to a fabricated citation. When the embedding or reranking stage is untrusted, model-based retrieval falls back to deterministic BM25.

Methodology modes wiki-mode can route new notes using four methodologies without bulk-moving existing knowledge. When no mode is configured, Generic is the default. Switching modes changes how new notes are routed and does not silently reorganize old notes.

Operation reference The wrapper is python3 scripts/claude-obsidian.py. The high-level change planner outputs approved_plan_sha256. Pin --generated-at and --operation-id, inspect the JSON operation, and pass that exact hash with --apply. Filesystem or generated-package drift fails before writing to the knowledge base.

Upgrades and migration Product upgrades and the knowledge base are independent. For older knowledge bases, first preview the incremental, idempotent migration, inspect its hash, and rerun with --approved-plan-sha256 HASH --apply. Migration preserves the legacy raw manifest byte for byte and does not infer claims from prose. After an interrupted operation, run the corresponding recovery command. Removing a plugin or host link never removes the knowledge base.

Environment requirements The portable core requires Python 3.11 or newer; Obsidian is for the visual knowledge-base experience, and plain Markdown still works without it; Bash is for setup, optional extensions, and the shell test suite; Git is only for development, releases, or explicit knowledge checkpoints; the Claude Code plugin path requires a current Claude Code version because the exec-form args command hooks used by hooks/hooks.json and the compact SessionStart matcher require it. Other supported hosts and the portable CLI have no Claude Code version dependency. CI runs on Linux and macOS, plus a native Windows smoke job for the portable surface. On native Windows (including Git Bash), read-only checks and dry-run commands are available; knowledge-base writes require WSL or they fail closed with an UNSUPPORTED_PLATFORM error. Approval hashes are bound to the review environment, so when the apply will happen in WSL, review inside WSL. The bash setup scripts and shell test suite are POSIX-only. Optional tools such as Obsidian CLI, Ollama, and defuddle are capability-detected and only affect the workflows that depend on them.

Development and release The test target runs every enclosed Python and shell suite, product and capability contracts, skill and hook validation, manifest checks, and package boundaries. CI repeats that suite on supported Linux and macOS/Python combinations and verifies byte-reproducible release builds. No command automatically pushes, tags, publishes, opens issues, or creates releases.

Provenance and licensing The design follows Andrej Karpathy's LLM Wiki pattern and uses kepano/obsidian-skills as the reference basis for Obsidian Markdown, Bases, and JSON Canvas syntax. MIT licensed.