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-visualize)<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-visualize"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-visualize/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-visualize"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-visualize.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.00020 | $0.01707 |
| Opus 5 | $0.00010 | $0.00853 |
| Sonnet 5 | $0.00004 | $0.00341 |
| Haiku 4.5 | $0.00002 | $0.00171 |
Grade A, and why
obsidian-visualize 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 — 64 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-visualize $ARGUMENTS:
The optional argument is a scope: an EXACT note title or alias (a project, an entity), or "full" for the entire vault. Default: full vault. A free-form topic phrase will not match - resolve it to a real note title first (e.g. via /obsidian-find).
-
Read
_CLAUDE.mdfirst if it exists in the vault root -
Build the graph deterministically with the scanner instead of reading every note into context (a full-vault read is O(read-everything) and burns the budget). Run 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/link_graph.py --path "<vault>" [--scope "<topic/project/entity>"]It returns JSON with
nodes(path, title,type, folder, in/out/degree),edges(resolved[[wikilink]]pairs, each{from, to, type: "link"}),typed_edges(the semantic overlay fromrelations:frontmatter -{from, to, type}where type issupersedes,depends_on,caused, etc. perreferences/ai-first-rules.mdRule 6),typed_edge_problems(unhonored typed edges), andstats(node_count,edge_count,typed_edge_count,orphan_count,dangling_link_count,top_hubs,orphans). Pass--scopewith an exact note title/alias (the script keeps that note plus its 2-hop neighborhood); omit it for the full vault. If the result hasnode_count: 0, the scope did not resolve to a note - find the real title and rerun. Use this JSON as the graph - only open individual notes if you need a label the scan did not provide. -
Generate a JSON Canvas file (
.canvas) compatible with Obsidian's native canvas viewer:Structure:
{ "nodes": [ {"id": "1", "type": "file", "file": "wiki/entities/Ada Lovelace.md", "x": 0, "y": 0, "width": 250, "height": 60}, {"id": "2", "type": "file", "file": "wiki/projects/Tide Gateway.md", "x": 300, "y": 0, "width": 250, "height": 60} ], "edges": [ {"id": "e1", "fromNode": "1", "toNode": "2"} ] }Layout rules:
- Hub nodes (most links) go in the center, larger
- Cluster by type: entities on the left, projects top-right, concepts bottom-right, daily notes bottom
- Color by type: entities = blue, projects = green, concepts = purple, daily = gray, sources = orange
- Edge labels = when two nodes connect through multiple links, record the count in the edge
label(JSON Canvas edges have no thickness property). When atyped_edgesentry connects the same pair, label the edge with the relation type instead (e.g.supersedes,depends_on) - a typed edge is more informative than a count - Orphan nodes placed at the edges with a red border (easy to spot)
-
Save to vault root as
atlas.canvas(oratlas-{topic}.canvasif scoped) -
Also generate a text summary with centrality ranking (use the scanner's
statsand per-nodedegree/in/outdirectly - do not recompute by hand):- Total nodes and edges (
stats.node_count,stats.edge_count), plus thedangling_link_count(wanted notes - links to unwritten notes). - Typed edges - if
stats.typed_edge_count> 0, summarize the semantic overlay: count by relation type (fromtyped_edges), name the longestsupersedes/depends_on/causedchains (these are the reasoning paths flat links can't express), and flag anytyped_edge_problemsas a nudge to run/obsidian-healthfor the full lint. If it's 0, note that the vault has no typed edges yet and point toreferences/ai-first-rules.mdRule 6 as the way to add them. - Hub nodes (centrality) - top 5 from
stats.top_hubs(already ranked by degree), each with its link count and a one-line "everything flows through this because..." note. A hub qualifies if its degree is at least 3x the median, or it sits in the top 1% of the vault - whichever surfaces fewer. - Bridge nodes - nodes that, if removed, would split a cluster. Rank by betweenness (approximate: count the shortest paths each node sits on between the top-10 hubs). These are the load-bearing connectors; surface the top 3 with the two clusters each one joins.
- Orphan nodes - no connections, listed by type. Flag any that are >30 days old (stale orphans are higher-priority cleanup targets than fresh ones).
- Clusters - groups of tightly connected notes, named by their hub. Note any cluster with <3 cross-cluster edges (those are silos).
- Centrality skew - if one node holds >25% of total edges, call it out as a single point of failure for navigation.
- Total nodes and edges (
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 · 64 lines · 20 tokens per session scan A ba53a41e0fc7
obsidian-visualize is a command published in the GitHub repository eugeniughelbur/obsidian-second-brain (4,364 stars, last pushed 2d ago), licensed MIT. It adds 20 tokens to every session and 1,707 once invoked, about $0.0001 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
patterns
Scan recent sessions for recurring patterns and turn them into captures (rules, concept notes, writing seeds).
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).