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

- **GitHub URL**: https://github.com/breferrari/obsidian-mind
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A (83/100 · Maintenance 26/35 · Adoption 20/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v10.0.0 (2026-10-12) — https://github.com/breferrari/obsidian-mind/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: MCP, CLI, Local AI
- **Momentum**: 5,580 ★ total (+2 24h / +23 7d) · 620 forks
- **Topics**: `ai-agents`, `claude-code`, `codex-cli`, `gemini-cli`, `knowledge-management`, `obsidian`, `obsidian-vault`, `persistent-memory`, `second-brain`, `template`
- **When to Use**: Best for: Engineers or small teams already using Obsidian and a supported coding CLI who want decisions, project context, and work evidence to carry across sessions in a browsable Git-tracked vault. Skip if: You only need a few remembered preferences, cannot permit repository-provided hooks, or need a centrally managed shared service with access and retention controls built in.

## Overview
```text
### Architecture & Core Mechanics
Obsidian Mind is a vault template with an agent integration layer, not a standalone model service. Markdown, frontmatter, and wikilinks form the durable, Git-trackable store; `brain/` holds long-lived topic notes, and `AGENTS.md` defines how agents read, file, and link them. Node runs the TypeScript lifecycle scripts directly with `--experimental-strip-types`. The scripts handle routing, validation, indexing, and context delivery; the agent decides what to write and how to link it.

`SessionStart` injects goals, active work, recent changes, tasks, and a file listing under a context budget rather than loading the vault wholesale. Later hooks classify prompts, validate Markdown writes, and surface changes in vault hygiene. Optional QMD adds a vault-scoped SQLite index and MCP retrieval tools such as `mcp__qmd__query` and `mcp__qmd__multi_get`. Claude Code's mod changes how the same scripts deliver context and reports, standing down the corresponding hooks when it handles their events. The hooks remain the fallback for Codex CLI, Gemini CLI, and Claude Code sessions where the mod does not load.

### Key Capabilities & Differentiators
The vault connects daily agent work to records that can be reused later. `/om-dump` can turn meeting notes into a decision record, project tasks, and linked people notes; `/om-wrap-up` checks notes and updates indexes. After Markdown writes, the hooks check frontmatter and wikilinks and flag notes that should be split. `PreCompact` saves a transcript to `thinking/session-logs/`. Claude Code has the fullest integration; Gemini's report handling runs at session end rather than after each response.

QMD offers three retrieval paths: model-free BM25 with `qmd search`, vector retrieval with `qmd vsearch`, and hybrid retrieval with `qmd query`. The full local stack uses `embeddinggemma-300M` (~328 MB), `qmd-query-expansion-1.7B` (~1.28 GB), and `Qwen3-Reranker-0.6B` (~640 MB). The `om` server sends both lexical and vector subqueries. It updates the index synchronously on memory writes and generates vectors in the background, so a new entry can be found before its vector is ready. Without QMD, lexical lookup remains available, and the agent can use grep and the Obsidian CLI.

### Trade-offs & Limitations
Compared with Claude Code's native memory, a vault of linked notes is easier to browse in Obsidian, version in Git, and reuse across agents. The cost is maintaining filing conventions, links, hook configuration, and agent approvals rather than just an instruction file. A plain Obsidian vault plus QMD can provide the same search layer with less automation; this template earns its keep when context injection, checks after writes, and repeatable capture workflows matter. Search can find a note, but it cannot make an agent's filing or linking decisions correct.

Local QMD removes the need for a retrieval API key or per-query fee, but hybrid search adds model downloads and query-time compute. CPU fallback is available, not a guarantee of responsive hybrid search on every machine. Startup context is deliberately selective, so detailed recall depends on follow-up queries. The Claude Code mod avoids the hook output cap for instruction-file delivery, but it runs unsandboxed with user permissions. Inspect it before trusting the vault, and set retention and sharing rules for saved transcripts and Git-tracked notes; local retrieval alone does not keep agent prompts on-device.

### Hardware & Deployment Guide
Use Obsidian 1.12+ with its CLI enabled, Node 22+ LTS with support for direct TypeScript execution (Node 22.6+ on the Node 22 line), Git for version history, and Claude Code, Codex CLI, or Gemini CLI. Run `shardmind install github:breferrari/obsidian-mind` from a new directory for guided setup, or clone and fill in `brain/North Star.md` yourself. Open the folder in Obsidian and launch the agent from the vault root. Codex requires folder trust and approval of each hook; Claude Code's mod needs version 2.1.287 or later and a trusted vault.

For semantic search, install `@tobilu/qmd` and run `node --experimental-strip-types .scripts/qmd-bootstrap.ts`. Use QMD 2.5.1 or later: QMD 2.1 can spend long enough probing the GPU in `qmd status` to exceed the five-second SessionStart self-heal limit. The models download on first use and run offline afterward; the agent's inference path is separate. The v10.0.0 quick start recommends ShardMind but retains the clone path. The v9.1.0 release made goal excerpts shrink progressively under tight budgets, while v9.0.1 raised the ShardMind minimum to 0.1.7 after older versions could overwrite edited files during upgrades.
```

## Key Capabilities
```text
- Memory portability: Durable knowledge lives in linked Markdown under `brain/`; `~/.claude/MEMORY.md` points to it rather than storing it.
- Lifecycle checks: TypeScript hooks route prompts, validate frontmatter and wikilinks after Markdown writes, and back up transcripts before compaction.
- Retrieval tiers: QMD exposes model-free BM25 via `search`, vector-only retrieval via `vsearch`, and full hybrid retrieval via `query`.
- Index isolation: The bootstrap, lifecycle hook, and MCP wrapper use the same vault-specific SQLite index selection.
- Claude Code integration: On 2.1.287+, the mod delivers startup context as an instruction file that is reread after compaction and `/clear`.
- Upgrade handling: ShardMind adds optional modules and three-way-merge upgrades without becoming a runtime dependency of the vault.
```

## Quick Start / Clone
```bash
npm install -g shardmind
mkdir my-vault && cd my-vault
shardmind install github:breferrari/obsidian-mind
```
