Skip to content
Opentrop
Go back

Obsidian Mind: Give Your AI Coding Agent a Permanent Brain

Edit page

Your AI coding agent forgets everything the moment you close the session. Obsidian Mind fixes that — permanently.

Every AI session starts from zero. No memory of yesterday’s decisions. No recall of that architecture choice from last week. No awareness of your goals, your team, or your patterns.

You re-explain the same context. You lose insights made three conversations ago. The knowledge never compounds.

Obsidian Mind changes this entirely. It turns your Obsidian vault into a persistent external brain for AI coding agents — and every session automatically builds on the last.

Table of Contents

Open Table of Contents

What Is Obsidian Mind?

Obsidian Mind is an Obsidian vault template designed for engineers who use AI coding agents like Claude Code, Codex CLI, or Gemini CLI.

It’s not just a plugin. It’s a complete knowledge architecture that:

Think of it as upgrading your AI from a goldfish to an elephant. Same agent, permanent memory.


The Problem It Solves

AI coding agents are powerful but amnesiac. Here’s what happens without persistent memory:

Session 1Session 2Session 3
”I’m working on an auth refactor""What was I working on again?""Remember the auth refactor?”
Explain your team structureRe-explain your team structureRe-explain again
Make a decision about cachingDecision is lostMake the same decision differently
Get praised by your managerWin is forgottenNo evidence for review

With Obsidian Mind:

Session 1Session 2Session 3
”I’m working on an auth refactor”Agent already knows — loaded on startupContinues seamlessly
Mention your team onceAgent recalls all people and rolesSuggests relevant context proactively
Make a decision about cachingDecision is documented and linkedReferences it when relevant
Get praised by your managerAuto-added to your Brag DocReady for review season

How It Works

The Core Architecture

Folders group by purpose. Links group by meaning. A note lives in one folder (its home) but links to many notes (its context). Your agent maintains this graph — linking work notes to people, decisions, and competencies automatically.

Lifecycle Hooks

Five hooks run automatically to keep everything organized:

HookWhenWhat It Does
🚀 SessionStartOn startupLoads your North Star goals, active projects, recent changes, open tasks
💬 UserPromptSubmitEvery messageClassifies content (decision, incident, win, 1:1) and routes it
✍️ PostToolUseAfter writing .mdValidates frontmatter and checks for wikilinks
💾 PreCompactBefore compactionBacks up session transcript to session logs
🏁 StopEnd of sessionArchives completed projects, updates indexes, checks orphans

You just talk naturally. The hooks handle the routing.

Vault-First Memory

All durable knowledge lives in brain/ topic notes — git-tracked, Obsidian-browsable, and linked. Claude Code’s MEMORY.md acts as an auto-loaded index that points to vault locations, never storing knowledge itself. This means your memories survive machine changes and stay part of the connected graph.


See It in Action

Morning Standup

/om-standup

→ Loads North Star, active projects, open tasks, recent git changes
→ "You have 2 active projects. The auth refactor is blocked on API
   contract. Your 1:1 with Sarah is at 2pm — last time she flagged
   observability."

One command. Full context. Ready to work.

Brain Dump After a Meeting

/om-dump Just had a 1:1 with Sarah. She's happy with the auth work
but wants us to add error monitoring before release. Tom mentioned
the cache migration is deferred to Q2 — we decided to focus on the
API contract first. Win: Sarah praised the auth architecture.

What happens automatically:

All from a casual paragraph. No manual filing. No templates to fill.

Incident Response

/om-incident-capture https://slack.com/archives/C0INCIDENT/p123456

→ Reads every Slack message, thread, and profile
→ Creates notes for new people involved
→ Generates full timeline, root cause analysis
→ Adds brag doc entry for incident response

End of Day

"wrap up"

→ Verifies all notes have proper links
→ Updates indexes
→ Finds uncaptured wins (brag-spotter agent)
→ Suggests improvements for tomorrow

Key Commands

Obsidian Mind includes 18 built-in commands that cover the full engineering workflow:

Daily Workflow

CommandWhat It Does
/om-standupMorning kickoff — loads context, reviews yesterday, suggests priorities
/om-dumpFreeform capture — routes natural language to the right notes
/om-wrap-upEnd-of-session review — verify notes, indexes, links
/om-weeklyWeekly synthesis — patterns, North Star alignment, uncaptured wins

Meetings & People

CommandWhat It Does
/om-capture-1on1Capture a 1:1 transcript into structured notes
/om-prep-1on1Prep for an upcoming 1:1 — person context, open items, agenda
/om-meetingPrep for any meeting by topic
/om-intakeProcess meeting notes inbox — classify and route

Incidents & Collaboration

CommandWhat It Does
/om-incident-captureCapture an incident from Slack into structured notes
/om-slack-scanDeep scan Slack channels for evidence
/om-peer-scanScan a peer’s GitHub PRs for review prep

Performance Reviews

CommandWhat It Does
/om-review-briefGenerate a review brief (manager or peer version)
/om-self-reviewWrite your self-assessment with linked evidence
/om-review-peerWrite a peer review with project and principle data

Vault Maintenance

CommandWhat It Does
/om-vault-auditAudit indexes, links, orphans, stale content
/om-vault-upgradeImport content from an existing vault
/om-humanizeMake Claude-drafted text sound like you wrote it
/om-project-archiveMove completed projects from active to archive

Subagents: Specialized AI Workers

Obsidian Mind uses subagents — specialized AI workers that run in isolated context windows for heavy operations without polluting your main conversation:

SubagentWhat It Does
brag-spotterFinds uncaptured wins and competency gaps
context-loaderLoads all vault context about a person, project, or concept
cross-linkerFinds missing wikilinks, orphans, and broken backlinks
people-profilerBulk creates/updates person notes from Slack profiles
review-prepAggregates all performance evidence for a review period
slack-archaeologistFull Slack reconstruction — every message, thread, profile
vault-librarianDeep vault maintenance — orphans, broken links, stale notes
review-fact-checkerVerifies every claim in a review draft against vault sources

The brag-spotter is particularly valuable — it scans your conversations for achievements you didn’t think to document and adds them to your Brag Doc automatically.


Agent Compatibility

Obsidian Mind works with multiple AI coding agents:

AgentSupport LevelDetails
Claude Code✅ Full supportHooks, commands, subagents, memory system
Codex CLI✅ Hooks + commandsReads AGENTS.md, hook config at .codex/hooks.json
Gemini CLI✅ Hooks + commandsReads GEMINI.md, hook config at .gemini/settings.json
Cursor, Windsurf, Copilot🟡 PartialReads AGENTS.md for vault conventions, hook support varies

All hooks, commands, and subagent prompts are agent-agnostic — pure Markdown, Python, and shell with zero SDK dependencies.


Smart Token Management

A common concern: “Won’t loading my entire vault burn through tokens?”

Obsidian Mind uses tiered loading to keep costs minimal:

TierWhat LoadsWhenToken Cost
AlwaysNorth Star excerpt, git summary, tasks, file listingSession start~2K tokens
On-demandSemantic search results (via QMD)When agent needs contextTargeted
TriggeredClassification routing hintsEvery message~100 tokens
TriggeredWrite validationAfter .md writes~200 tokens
RareFull file readsOnly when explicitly neededVariable

The agent queries by meaning first (via semantic search), then reads only what’s relevant. Your vault can contain thousands of notes — the agent only loads what it needs.


Getting Started

Prerequisites

Setup (5 Minutes)

# Clone the vault
git clone https://github.com/breferrari/obsidian-mind.git
cd obsidian-mind

# Open as an Obsidian vault
# Enable Obsidian CLI in Settings → General

# Optional: Enable semantic search
npm install -g @tobilu/qmd
qmd collection add . --name vault --mask "**/*.md"
qmd update && qmd embed

First Steps

  1. Open the vault in Obsidian
  2. Fill in brain/North Star.md with your goals — this grounds every session
  3. Run your agent in the vault directory (claude, codex, or gemini)
  4. Start talking about work

That’s it. The hooks handle everything from there.

TimeAction
MorningRun /om-standup — get full context and priorities
During the dayTalk naturally — hooks route everything automatically
After meetingsUse /om-dump to narrate what happened
End of daySay “wrap up” — agent verifies and closes out
WeeklyRun /om-weekly for cross-session synthesis

Frequently Asked Questions (FAQ)

Does it only work with Claude Code?

No. Obsidian Mind has full support for Claude Code and working hooks for Codex CLI and Gemini CLI. The vault conventions work with any agent that can read Markdown.

Will it make my AI sessions expensive?

No. The tiered loading system keeps token usage minimal (~2K tokens at session start). The agent only reads full files when explicitly needed.

Can I use my existing Obsidian vault?

Yes. Use the /om-vault-upgrade command to import and classify content from your existing vault into the Obsidian Mind structure.

What if I don’t use Slack?

The Slack-related commands (/om-incident-capture, /om-slack-scan) are optional. The core workflow — standup, dump, wrap-up, weekly — works without Slack.

Is my data private?

Yes. Everything stays in your local Obsidian vault and Git repository. No cloud service required. Your AI agent processes data locally through its normal API — Obsidian Mind doesn’t add any external data transmission.

How is this different from just using MEMORY.md?

MEMORY.md is a flat file with session notes. Obsidian Mind is a connected knowledge graph — notes link to each other, subagents process and categorize information, and the lifecycle hooks ensure nothing falls through the cracks.


Obsidian Mind is open source (MIT license) and available at github.com/breferrari/obsidian-mind. Give your AI agent the one thing it’s always been missing — memory that lasts.


Edit page
Share this post on:

Previous Post
The Future of Cloud Computing: AWS vs Azure vs GCP Complete Comparison