A self-organizing Obsidian vault that gives AI coding agents persistent memory.
TypeScript ai-agentsclaude-codecodex-cligemini-cliknowledge-managementobsidianobsidian-vaultpersistent-memorysecond-braintemplate
Shared section: Claude Code and Grok load it at session start; other agents read it when AGENTS.md points here.
When to Consult Brain Topics
The SessionStart hook injects a Brain Topics (read on demand) index listing each brain/ topic note with its description and an (empty) marker for stub notes. Treat that index as a menu:
- When the user's message touches a topic from the index (debugging → Gotchas, "how do we usually…" → Patterns, "why did we decide" → Key Decisions, "which command / slash" → Skills), query QMD first before answering — call
mcp__qmd__querywith aqueryargument describing the topic (or fall back toqmd --index <name> query "<topic>"if MCP is unavailable). The search covers the whole vault, so filter or prioritize results whosefilepath is underbrain/. Do not assume the topic name alone scopes the search. - If QMD is unavailable, read the specific
brain/note directly with the Read tool. Don't load all ofbrain/— only the one(s) matching the topic. - Skip notes marked
(empty)in the index — they're stubs with no substantive content. - After answering, if the conversation produced durable knowledge, update the relevant brain note (see the "remember" workflow in
AGENTS.md→ Memory System).