obsidian-visualize

obsidian-visualize is a command for Claude Code from eugeniughelbur/obsidian-second-brain. It costs 20 tokens per session (1,707 once invoked), scanned A, original, MIT.

A command that creates a visual map of notes and their links in an Obsidian vault. Obsidian is a note-taking app that stores Markdown files and can connect them with links.

In plain words
What is it for?
Use it to map the whole vault or a specific note, project, or entity, including ordinary links and typed relationships such as dependencies.
Why use it?
It makes the structure of a knowledge vault easier to see than reading notes one by one, including links between projects, people, and topics.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the obsidian-second-brain plugin — 1 skill, 47 commands, 3 hooks shipped together

Good fit Use it to map the whole vault or a specific note, project, or entity, including ordinary links and typed relationships such as dependencies.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eugeniughelbur/obsidian-second-brain/obsidian-visualize
About the project

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.

eugeniughelbur/obsidian-second-brain · 4,364 stars · on GitHub · eugeniughelbur.github.io

Install

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.

Clone the repo
git clone --depth 1 https://github.com/eugeniughelbur/obsidian-second-brain

Made for: Claude Code.

Or install obsidian-second-brain, the plugin that ships this one along with the rest of its 1 skill, 47 commands, 3 hooks.

Wrote 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.

agentmods badge for obsidian-visualize

README.md
[![agentmods](https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/obsidian-visualize/github.svg)](https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/obsidian-visualize)
Your own site
<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.

agentmods 80×15 button for obsidian-visualize

Your own site · 80×15
<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>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,707 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash ba53a41e0fc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

commands/obsidian-visualize.md · 64 lines

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).

  1. Read _CLAUDE.md first if it exists in the vault root

  2. 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 from relations: frontmatter - {from, to, type} where type is supersedes, depends_on, caused, etc. per references/ai-first-rules.md Rule 6), typed_edge_problems (unhonored typed edges), and stats (node_count, edge_count, typed_edge_count, orphan_count, dangling_link_count, top_hubs, orphans). Pass --scope with an exact note title/alias (the script keeps that note plus its 2-hop neighborhood); omit it for the full vault. If the result has node_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.

  3. 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 a typed_edges entry 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)
  4. Save to vault root as atlas.canvas (or atlas-{topic}.canvas if scoped)

  5. Also generate a text summary with centrality ranking (use the scanner's stats and per-node degree/in/out directly - do not recompute by hand):

    • Total nodes and edges (stats.node_count, stats.edge_count), plus the dangling_link_count (wanted notes - links to unwritten notes).
    • Typed edges - if stats.typed_edge_count > 0, summarize the semantic overlay: count by relation type (from typed_edges), name the longest supersedes/depends_on/caused chains (these are the reasoning paths flat links can't express), and flag any typed_edge_problems as a nudge to run /obsidian-health for the full lint. If it's 0, note that the vault has no typed edges yet and point to references/ai-first-rules.md Rule 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.

Read the full file on GitHub · 64 lines

Changes

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.

  1. 9d ago First seen · 64 lines · 20 tokens per session scan A ba53a41e0fc7

Subscribe to this mod's changes

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.