# obsidian-wiki

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

- Category: Agents & Automation / Agent Memory
- Language: Python
- Licence: MIT
- Repository: https://github.com/Ar9av/obsidian-wiki
- Canonical page: https://ai-tldr.dev/tools/obsidian-wiki/

## In short

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`).

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.

1. 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.

```bash
pip install obsidian-wiki
obsidian-wiki setup --vault ~/brain
```

2. 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.

3. Feed the vault

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

```text
/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
```

4. Ask it

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

```text
/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?
```

5. Find the session you cannot name

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

6. 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.

```text
/wiki-lint
/wiki-dedup
/cross-linker
/wiki-status
```

## 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
