# Repository Briefing: Ar9av/obsidian-wiki
> Source: https://repoforai.com/repo/Ar9av/obsidian-wiki (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Ar9av/obsidian-wiki
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (94/100 · Maintenance 35/35 · Adoption 19/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v2026.11.9 (2026-11-27) — https://github.com/Ar9av/obsidian-wiki/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, CLI
- **Momentum**: 3,846 ★ total (+1 24h / +18 7d) · 380 forks
- **Topics**: `agent-memory`, `agent-skills`, `brain`, `claude-code`, `claude-skills`, `codex`, `karpathy`, `knowledge-base`, `knowledge-graph`, `llm-tools`, `llm-wiki`, `mcp`
- **When to Use**: Best for: Individuals and teams using several agents who want to preserve recurring research, engineering decisions, and project findings in a Git-friendly wiki that humans and agents can both maintain. Skip if: You need exhaustive transcript capture, managed backup and synchronization, or a drop-in vector retrieval backend rather than an agent-maintained knowledge base.

## Overview
```text
### Architecture & Core Mechanics
obsidian-wiki is a file-backed agent knowledge system, not a vector database. Markdown skills define the workflow and the host agent executes it. Inputs can be staged in `_raw/`; ingestion uses a source manifest to identify changes and merges reusable findings into linked Markdown pages. Queries start with titles, tags, and summaries before opening candidate pages. The vault is the source of truth and remains readable without Obsidian.

The standard-library Python CLI handles setup and skill installation. The Python `Memory` API exposes operations such as `remember`, `search`, and `recap`; session hooks surface the owner profile, open threads, and recent context. A shared writer uses locks and atomic updates for the index, log, hot cache, profile, and todo index. MCP exposes the vault over local stdio or hosted HTTP, while the optional server extra supplies the browser UI. An optional, default-off decision layer can delegate relevance, intake triage, and contradiction judgments; it fails open and does not write.

### Key Capabilities & Differentiators
The system can ingest sources, distill a working repository, capture a useful conversation, and index past agent sessions separately for later search. Input coverage depends on the host agent: it reads text, PDFs, and images itself; Office support varies, and audio and video are skipped. Wiki queries return links to supporting pages, while claim markers distinguish extraction from inference or ambiguity. Lint, deduplication, and cross-linking address broken links, duplicate concepts, and weakly connected pages.

The web UI combines a staging inbox, vault switching, maintenance actions, graph insights, and cited Ask responses. Ask can use Claude Code or an Anthropic API key, and web search is on by default but can be disabled. In a small Claude Sonnet comparison on one 38-page vault, structured graph tooling took 19 s versus 81 s and scored 83% versus 44% correct, at $0.208 versus $0.202 in API cost. That is evidence for the tested graph tasks, not for general retrieval quality or large-vault latency.

### Trade-offs & Limitations
Compared with conventional RAG, this design shifts work from finding raw evidence at query time to compiling and maintaining knowledge pages during ingestion. The payoff is a durable wiki that humans can inspect, edit, diff, and navigate. The cost is dependence on the host agent's synthesis and maintenance behavior: a stale or incorrect page can influence future answers. Claim markers, lint, and citations help reviewers find issues but do not replace source verification. A desktop wiki app may require less agent setup, and a standalone MCP memory server centered on recording events may be a better fit for capture without curation.

The MIT-licensed Markdown storage avoids a mandatory managed backend, but it does not supply a backup policy or guarantee offline operation. Git sync is an option, not a substitute for backups. Ask sends relevant excerpts and any search queries to the configured model; disable web search where appropriate and separately review what the model provider receives. The documented writer locking covers named memory files; it should not be treated as a guarantee of transactional updates across the entire vault.

### Hardware & Deployment Guide
For local use, install with `pip install obsidian-wiki` and run `obsidian-wiki setup --vault ~/brain`. Setup registers session hooks unless `--no-hooks` is supplied. The base package requires Python 3.9+; `pip install 'obsidian-wiki[server]'` requires Python 3.10+ and enables `obsidian-wiki ui`, which listens at `127.0.0.1:3114` by default. The Claude Code plugin is a skills-only option: it installs neither the CLI nor the hooks. The base CLI and local Memory operations require no GPU or model service.

For a hosted vault, use `obsidian-wiki serve` or `docker compose up -d`. Compose defaults to `ghcr.io/ar9av/obsidian-wiki:${WIKI_VERSION:-latest}` and binds to `127.0.0.1:8080`; set `WIKI_VERSION` to pin a release. Configure `WIKI_API_KEY` and, where needed, `WIKI_READ_KEY`; put TLS in front before exposing authenticated HTTP. v2026.11.7 added the self-hosting path with a TLS profile, read-only key, and two-way Git sync. v2026.11.8 expanded the web viewer and added PreCompact capture; v2026.11.9 included Windows test fixes involving the write hook and lockfile.
```

## Key Capabilities
```text
- Incremental ingestion: A source manifest tracks changes so repeat runs can process the delta instead of re-reading the whole library.
- Provenance and retrieval: Claims are marked extracted, inferred, or ambiguous; queries narrow candidates using titles, tags, and summaries before reading page bodies.
- Session memory: Hooks surface the owner profile, open threads, and recent context; eligible material can be captured at session end rather than recording every transcript.
- Write consistency: A shared writer locks and atomically updates index.md, log.md, hot.md, and the owner profile and todo index under _meta/.
- Integration: The Markdown skills work across agent hosts; Python Memory and MCP over stdio or HTTP provide programmatic access to the vault.
- Graph tooling: Link analysis exposes hubs, bridges, and clusters, with export to JSON, GraphML, Neo4j Cypher, PostgreSQL SQL, and standalone HTML.
```

## Quick Start / Clone
```bash
pip install obsidian-wiki
obsidian-wiki setup --vault ~/brain
```
