█

AI/TLDR

Buy me a coffee
Buy me a coffee

obsidian-wiki

Compiles what you learn into an interconnected Obsidian vault your agent maintains — plain markdown, no runtime, no API keys

Agent MemoryOpen source
Language
Python
License
MIT
$pip install obsidian-wiki
IN SHORT

What is obsidian-wiki?

obsidian-wiki attacks the problem of knowledge that only exists inside chat logs. You solve something hard on a Tuesday; three months later, in a different repo, you solve it again, because the answer lived in a conversation you will never find. It sits in the Agent Memory category of the Agents & Automation tools and is open-source, written in Python and licensed MIT.

Overview

obsidian-wiki attacks the problem of knowledge that only exists inside chat logs. You solve something hard on a Tuesday; three months later, in a different repo, you solve it again, because the answer lived in a conversation you will never find. The project's approach comes from Andrej Karpathy's LLM Wiki gist: compile knowledge once and keep it current, rather than asking a model the same questions forever or re-running retrieval on every query. You point it at a folder, tell your agent what to remember, and it compiles what you learn into interconnected markdown you own.

It is not a service and not a runtime. Every capability is a markdown skill file that any agent reads and runs — Claude Code, Cursor, Codex, Windsurf, Gemini CLI and a dozen more are documented — so there is no daemon, no API key and no vendor in the path. The 39 skills split into feeding the vault (`/wiki-ingest` for a folder, `/wiki-update` to distil the repository you are standing in with code-graph awareness, `/wiki-capture` to save the current conversation, `/wiki-history-ingest` to mine everything you have ever asked an agent), asking it (`/wiki-query`, `/wiki-narrate` for a cited briefing, `/wiki-digest` for what you learned this week) and keeping it honest (`/wiki-lint` for broken links, orphans and contradictions, `/wiki-dedup`, `/cross-linker`, `/wiki-status`).

Obsidian graph view of a vault built by obsidian-wiki, with hundreds of colour-tinted note nodes and a folder tree of concepts, entities, journal, projects and skills
The compiled vault in Obsidian's graph view, tinted by tag and categoryobsidian-wiki README ↗

Four design choices separate it from a notes folder. It compiles rather than accumulates: new knowledge merges into existing pages, contradictions get flagged, nothing duplicates. It reads only the delta — a manifest tracks every source ingested, so a second run does not reprocess the library. Claims carry provenance, tagged `extracted`, `^[inferred]` or `^[ambiguous]`, and lint flags pages drifting into speculation. And queries stay cheap as the vault grows because titles, tags and summaries are read before page bodies. A separate session index (`sessions-build` / `sessions-query`) finds the conversation you cannot name, and the whole graph exports to `graph.json`, GraphML, Neo4j Cypher, Postgres SQL or a self-contained interactive `graph.html`. It is MIT-licensed, and the vault is plain markdown in a folder you can grep, push to a private repo or delete.

What it does

  • 39 markdown agent skills that run in Claude Code, Cursor, Codex, Windsurf, Gemini CLI and a dozen more — one `.skills/` directory symlinked into each
  • Ingest anything text-shaped: docs, PDFs, chat exports, meeting transcripts, screenshots, URLs, and the repository you are working in
  • Compiling, not accumulating — new knowledge merges into existing pages, contradictions are flagged and duplicates are collapsed
  • Delta-only processing: a manifest records every source ingested so re-runs touch only what changed
  • Provenance on every claim (`extracted` / `^[inferred]` / `^[ambiguous]`), with lint catching pages drifting into speculation
  • Query skills that answer with `[[wikilink]]` citations, plus cited topic briefings and weekly digests
  • A session index that finds a past conversation by description, and graph export to graph.json, GraphML, Neo4j Cypher, Postgres SQL or interactive HTML

Getting started

Install the package, point it at a vault directory, then drive everything from whichever agent you already use.

Install and set up a vault

`uv tool install obsidian-wiki` and `pipx install obsidian-wiki` work the same way; `uvx` does not — see the project's installation guide for why.

bashbash
pip install obsidian-wiki
obsidian-wiki setup --vault ~/brain

Let the agent finish the setup

Open any project in your agent and say "set up my wiki". If you would rather not touch a terminal at all, hand the agent the repository URL followed by "set up my wiki" and it will do the whole thing.

Feed the vault

These are skill invocations typed into your agent, not shell commands.

texttext
/wiki-ingest ~/research
/wiki-update                        # distill the repo you're standing in (code-graph aware)
/wiki-capture                       # save this conversation
/wiki-history-ingest claude         # mine everything you've ever asked Claude

Ask it

Answers come back with wikilink citations pointing at the pages they were drawn from.

texttext
/wiki-query what do I know about rate limiting?
/wiki-narrate MCP security          # a cited briefing on a topic
/wiki-digest week                   # what did I learn this week?

Find the session you cannot name

bashbash
obsidian-wiki sessions-build
obsidian-wiki sessions-query "the auth bug with the weird retry loop"

Keep it clean

A vault gets messy on its own. These skills catch broken links and orphans, merge pages that say the same thing under different names, weave new pages into the graph, and report what is ingested and where the hubs are.

texttext
/wiki-lint
/wiki-dedup
/cross-linker
/wiki-status

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Stop re-solving the same problem because the answer is buried in a chat log you cannot search
  • Give every agent you use the same durable memory without running a memory service or handing over an API key
  • Answer structural questions — how X connects to Y, what breaks if this page goes — that a plain agent has to reconstruct by grepping every file
  • Keep a portable second brain: plain markdown in a folder, openable in Obsidian, pushable to a private repo, deletable at will

How obsidian-wiki compares

obsidian-wiki alongside other open-source agent memory tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Claude-Mem★ 121kPersistent memory layer for coding agents: it captures what an agent does during a session, compresses it into semantic summaries, and injects the relevant parts back into later sessions.
Mem0★ 69.7kA memory layer that you add to existing LLM agents to extract, store, and recall user facts and preferences across sessions using vector, graph, and key-value backends.
Hindsight★ 64.3kAn agent memory server that stores facts and experiences, consolidates them into observations and mental models, and serves them back through retain, recall, and reflect operations.
MemPalace★ 60.8kLocal-first agent memory that stores conversations verbatim instead of summarising them, with a structured palace index, pluggable vector backends and an MCP server.
OpenViking★ 43.1kA context database that stores an agent's memories, resources, and skills as one browsable viking:// filesystem with three-tier (abstract/overview/details) on-demand loading.
Cognee★ 33.7kA graph-native memory engine that turns raw documents and conversations into a queryable knowledge graph for agents that need to build lasting knowledge.
Graphiti★ 33.2kA library that builds a temporal knowledge graph from an agent's conversations and data so facts can be tracked and queried as they change over time.
obsidian-wiki★ 3.8kCompiles what you learn into an interconnected Obsidian vault your agent maintains — plain markdown, no runtime, no API keys