obsidian-second-brain turns an Obsidian vault into persistent, searchable memory for Claude Code and other command-line coding agents, storing knowledge as linked Markdown notes. It is for developers, founders, writers, and researchers who want agents to retain project context across sessions. Its catalogue entries provide commands, hooks, a plugin, a skill, and instructions for capturing, finding, and maintaining that memory.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/eugeniughelbur/obsidian-second-brainWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-export)<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-export"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-export/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-export"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-export.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.01201 |
| Opus 5 | $0.00016 | $0.00600 |
| Sonnet 5 | $0.00006 | $0.00240 |
| Haiku 4.5 | $0.00003 | $0.00120 |
Grade A, and why
obsidian-export scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Use the obsidian-second-brain skill. Execute /obsidian-export $ARGUMENTS:
The optional argument is the format: json (default), markdown, or okf.
-
Read
_CLAUDE.mdfirst if it exists in the vault root -
Read
index.mdfor the full vault catalog -
Build a structured export by scanning the vault:
For each note in every note folder present, enumerating the vault's top-level note folders per
references/folder-map.md(wiki-style:wiki/; Obsidian-style:People/,Projects/,Ideas/,Knowledge/,Daily/, ... whatever exists on disk), extract:path: file path relative to vault roottitle: note title (first heading or filename)type: from frontmatter tags (entity, concept, project, daily, etc.)date: from frontmatterstatus: from frontmatter (if exists)summary: first paragraph or first 200 characters of bodylinks_to: list of all outgoing[[wikilinks]]linked_from: list of all incoming links (backlinks)tags: all frontmatter tagsfrontmatter: full frontmatter as key-value pairs
-
Output format:
JSON (default):
{ "vault": "Example Vault", "exported": "2026-04-07", "total_notes": 238, "notes": [ { "path": "wiki/entities/Ada Lovelace.md", "title": "Ada Lovelace", "type": "entity", "summary": "CEO of Currentscale Labs...", "links_to": ["Currentscale Labs", "Tide Gateway"], "tags": ["entity", "person"] } ] }Save to
_export/vault-snapshot.jsonMarkdown: A flat markdown file with every note listed with its metadata and summary. Save to
_export/vault-snapshot.mdOKF (Open Knowledge Format - Google Cloud's vendor-neutral "folders of markdown" standard): do NOT build this by hand. Run the deterministic exporter from the skill root (its absolute path was given at session start as Skill root; substitute it for
SKILL_ROOT):uv run --directory "SKILL_ROOT" scripts/export_okf.py --path "<vault path from _CLAUDE.md>"It writes an OKF v0.1 bundle to
_export/okf/: every note becomes an OKF concept doc (frontmattertype[required] /title/description/resource[only when the note has a real source URL] /tags/ ISO-8601timestamp;[[wikilinks]]converted to relative-path markdown links), plus a generatedindex.md(progressive disclosure) and a copiedlog.md. The vault's richer AI-first body (incl. the## For future agentpreamble) is preserved - OKF is minimally opinionated, so the extra content rides along. This makes the vault "OKF v0.1 compatible" without changing how it works natively. -
Append to the operation log: if
Logs/exists write**HH:MM** - export | Vault snapshot exported (format, N notes)toLogs/YYYY-MM-DD.md; otherwise append## [YYYY-MM-DD] export | Vault snapshot exported (format, N notes)tolog.md
This file is the bridge between your vault and any other AI tool, automation, or agent. They don't need to know your folder structure. They read the snapshot.
AI-first rule: Every note created or updated by this command MUST follow references/ai-first-rules.md - ## For future agent preamble, rich frontmatter (type, date, tags, ai-first: true, plus type-specific fields), recency markers per external claim, mandatory [[wikilinks]] for every person/project/concept referenced, sources preserved verbatim with URLs inline, and confidence levels where applicable. If that path does not resolve from your working directory, search upward for it; if you still cannot read it, say so before writing rather than producing a note that silently skips the rule. The vault is for future agent retrieval - not human reading.
Anti-fabrication: Search exhaustively before claiming any note, person, or file is absent - false absence is the most common failure mode - and never invent facts, entities, or dates (mark unknowns as TBD). See the anti-fabrication and search-completeness hard rules in references/ai-first-rules.md.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 72 lines · 32 tokens per session scan A 26976b44158a
obsidian-export is a command published in the GitHub repository eugeniughelbur/obsidian-second-brain (4,364 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 1,201 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
setup-vault-types
Configure which document types your vault uses (journals, books, meetings, clients, etc.) and scaffold extractors.
cierre
A sales call just ended: turn its transcript into the full follow-up (CRM, tasks, email draft, reminder, coaching).
daily-journal
Daily journal interview and entry creator with emotional floor tagging.
deconstruct
First-principles analyst: surface hidden assumptions, find foundational truths, rebuild from scratch.
diagnose
Run a self-check on your AI Brain Starter install (CLAUDE.md, Meta folder, skills, hooks, MCPs).
evolve
Cluster hardened instincts into a proposed Command / Skill / Agent (Instinct Engine).