obsidian-agent-vault
Template Obsidian Vault to be used with any AI Agent: Claude Code, Gemini CLI, Pi etc.
obsidian-agent-vault
An opinionated Obsidian vault template combining PARA+Zettelkasten organisation with a shared agent memory protocol for Claude, Gemini, and any AI tool that can read a markdown file.
Any AI agent starts every session by reading AGENTS.md, which tells it exactly how to load prior context, write new memories, and leave the vault in a better state than it found it.
Prerequisites
- Obsidian v1.9+ — Bases requires v1.9. Enable under Settings > Core Plugins > Bases
- obsidian CLI — ships with the Obsidian app. On macOS, add to PATH:
On Linux/Windows: locate the Obsidian binary and add its directory to your PATH.ln -s /Applications/Obsidian.app/Contents/MacOS/obsidian /usr/local/bin/obsidian - qmd — local semantic search for your vault:
npm install -g @tobilu/qmd
Setup
-
Click "Use this template" on GitHub, then clone your new repo
-
Open the cloned folder as a vault in Obsidian: File > Open folder as vault
-
Enable Bases if not already on: Settings > Core Plugins > Bases
-
Set up the
obsidianCLI symlink (see Prerequisites above) -
Decide on a collection name for qmd (e.g.
my-vault), then index the vault:qmd collection add /path/to/your/vault --name <your-collection-name> qmd embedqmd embeddownloads ~2 GB of models on first run and may take several minutes. Re-runqmd embedafter adding significant numbers of new notes. -
Find-and-replace the following placeholders in
AGENTS.mdandResources/AI & Agents/agent-memory-tutorial.md:Placeholder Replace with <your-vault-name>Your Obsidian vault name (the folder name you opened in step 2) <your-collection-name>The name you chose in step 5
Verify your setup
- Open
agent-memory/memory.basein Obsidian — it should render as an empty table - Run
qmd search "agent" -c <your-collection-name>— should return results from this vault
What's included
AGENTS.md— the protocol every agent reads at session start. One file, every agent, same protocol.- Five memory types:
context,decision,mistake,pattern,snapshot— stored as plain markdown files inagent-memory/ memory.base— a live Obsidian Bases table of all active memories, grouped by type, no index to maintainstale.base— pruning queue: agents flag outdated entries; you approve deletions- PARA+Zettelkasten vault structure — see
Vault Structure.mdfor the full layout and decision tree Permanent Notes/Assisting-User-Context.md— fill this in so agents understand who you are and how to help you
Included skills
Agent skills are stored in .agents/skills/ and extend what AI agents can do in this vault. Skills are loaded on demand — agents read them when they need guidance on a specific tool or task.
| Skill | What it does |
|---|---|
obsidian-cli | Interact with Obsidian vaults from the command line — read, create, search, and manage notes |
obsidian-bases | Create and edit Obsidian Bases (.base files) with filters, formulas, and database-style views |
obsidian-markdown | Write Obsidian Flavored Markdown — wikilinks, embeds, callouts, properties, and more |
second-brain | Personal knowledge management workflows combining GTD, Zettelkasten, and PARA |
qmd | Search your vault semantically and by keyword using qmd |
defuddle | Extract clean markdown from web pages, stripping clutter and navigation |
json-canvas | Create and edit JSON Canvas files (.canvas) for visual maps and flowcharts |
Using with AI agents
Point your agent at AGENTS.md at the start of every session. For Claude Code, CLAUDE.md does this automatically. For other tools, add the equivalent instruction to their config file (e.g. GEMINI.md for Gemini CLI).
The agent reads the protocol, searches for relevant memories using qmd, loads prior context, does the work, and writes a snapshot before stopping. The next session — whether the same agent or a different one — picks up where it left off.
Links
- Blog post: AI Agents That Remember: Building a Second Brain for Claude and Gemini
- qmd: github.com/tobi/qmd
- Obsidian: obsidian.md
- Install Obsidian skills:
npx skills add git@github.com:kepano/obsidian-skills.git - Install qmd skill:
npx skills add https://github.com/tobi/qmd - Install second-brain skill:
npx skills add https://github.com/sean-esk/second-brain-gtd
How to Install
- Download the ZIP or clone the repository
- Open the folder as a vault in Obsidian (File → Open Vault)
- Obsidian will prompt you to install required plugins
Stats
Stars
4
Forks
1
License
MIT
Last updated 20d ago