breferrari/obsidian-mind
An Obsidian vault with lifecycle hooks for persistent coding-agent memory
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
brain/; ~/.claude/MEMORY.md points to it rather than storing it.search, vector-only retrieval via vsearch, and full hybrid retrieval via query./clear.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.
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.
Quick Start & Installation
npm install -g shardmind mkdir my-vault && cd my-vault shardmind install github:breferrari/obsidian-mind
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| obsidian-mind ★ | 5.6k | +23 | TypeScript | MIT | An Obsidian vault with lifecycle hooks for persistent coding-agent memory |
| obsidian-skills | 56.2k | +1.7k | Shell | MIT | Agent Skills plugins for editing Obsidian files and working with vaults |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/breferrari/obsidian-mind.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about obsidian-mind
Where does memory live, and how do I keep two vaults from sharing a QMD index?
brain/; Claude Code's ~/.claude/MEMORY.md is a pointer index, not the primary store. The QMD bootstrap, SessionStart hook, and MCP wrapper use the same qmd_index setting from vault-manifest.json, or a slug derived from the vault folder name when the setting is absent. Assign distinct names if vaults on one machine need separate SQLite indexes, and set the name before bootstrapping.Do I need a GPU, and how much storage or VRAM should I budget?
qmd doctor to check the active backend. If model downloads or interactive latency are a concern, start with model-free BM25 via qmd search, or skip QMD and use grep plus the Obsidian CLI.Can we use the template commercially and keep the deployment local?
When is this preferable to native agent memory or Obsidian plus QMD?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy